Repository navigation
fix(deploy): #194 freshness guard — trustworthy 'core ready' + airc-room mirror glass-box (#193) - #1956
Merged
Conversation
…#193) The voice/register-session seam keys the LiveKit call by a client-minted session_id (call_id = session_id), a room authority PARALLEL to airc — the divergence Joel flagged ('all rooms are airc rooms, not some mirror shit'). This lands the INSTRUMENT for the collapse: warn LOUD when session_id != room_id so the eventual client-coordinated cutover (client passes session_id == room_id → the call IS the airc room) is observable by this warning going silent on a live call. Zero behaviour change — a pure diagnostic. The call_id can't be flipped to room_id unilaterally: the browser publishes audio to the LiveKit room IT names, so the actual collapse must be client-coordinated and proven on a real audio call (mic in the loop). This warn is what we watch during that live validation. Refs #193, #192. [[all-rooms-are-airc-rooms-no-mirrors]], [[livekit-media-plane-rides-airc-not-parallel]] Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
….log), not tracing (#193) Follow-up to 3d046c4: the tracing::warn! version never surfaced — this codebase routes module logs through its own log_* macros to jtag/logs (live.log), not the tracing sink. Switched to crate::log_warn! matching the module's existing log_info!/log_error! usage. Compiles clean; probe string present in the binary. HONEST STATUS: the instrument's own live-fire is NOT yet confirmed (chased through the #194 deploy-staleness that bit repeatedly + a log-category routing subtlety, and stopped rather than keep burning the session). BUT the mirror stink itself IS live-confirmed independently: the orchestrator's own logs show every voice/register-session keying the session under the client-minted session_id and DISCARDING the airc room_id on divergent cases ('Registered session aaaaaaaa' where room_id was bbbb...). That is #193's premise proven on the running system — the diagnostic is a convenience, the receipt is the orchestrator log. Blocked on #194 (cu reboot ships stale binaries + reports success) for trustworthy headless live validation. Refs #193, #194. [[verify-the-build-actually-deployed]], [[all-rooms-are-airc-rooms-no-mirrors]] Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ALE core binary cu reboot / npm start reported 'core ready' while shipping STALE code: cargo's incremental fingerprint missed a committed source edit (mtime granularity / a prior cargo check updating the fingerprint without codegen), emitted a no-op 'Finished', and start-server.sh launched the OLD binary. Every headless live validation then lied (observed 2026-07-18 — a one-line change never shipped across multiple reboots). Two fixes, both removing fragility: 1. FRESHNESS GUARD after the core-server build: assert the built binary is at least as new as every tracked .rs source. If a source is newer, cargo missed it → touch the crate src to bust the fingerprint + rebuild ONCE → re-verify → FAIL LOUD rather than launch stale. The invariant is checked directly (find -newer), not trusted from cargo's 'Finished'. 2. Launch the EXACT verified binary (exec $CORE_BIN) instead of `exec cargo run`, which re-runs cargo's build logic at launch and could second-guess / re-stale what we verified. We built it, checked it, run it — unambiguous process image. Deploy tooling is scaffolding (Joel: 'anything to make process or remove fragile code is a priority') — this makes 'core ready' mean the running code IS the source. Refs #194. [[verify-the-build-actually-deployed]], [[fallbacks-are-illegal-fail-loud]] Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The headline fix: #194 — deploy could ship stale code and report success
Observed live 2026-07-18: a committed one-line change never shipped across multiple
cu reboots.cargo's incremental fingerprint missed the edit (mtime granularity / a priorcargo checkupdating the fingerprint without codegen), emitted a no-opFinished in 0.36s, andstart-server.shlaunched the old binary while reporting✅ core ready. Every headless live validation then lied — the verify-the-build-actually-deployed trap.Two fragility removals in
tools/scripts/start-server.sh:.rssource (find -newer, checked directly, not trusted from cargo'sFinished). If a source is newer, cargo missed it → touch the crate src to bust the fingerprint + rebuild once → re-verify → FAIL LOUD rather than launch stale. Detection validated (fires on the exact bug condition; passes when fresh); recovery proven manually.exec "$CORE_BIN") instead ofexec cargo run, which re-runs cargo's build logic at launch and could second-guess / re-stale what we just verified. We built it, checked it, run it.This makes
core readymean the running code is the source — the precondition for any trustworthy headless live validation (#192/#193/#190).Groundwork: #193 airc-room mirror glass-box (diagnostic, WIP)
The audit found the voice/call stack is a room authority parallel to airc (
call_server/VoiceOrchestratorkey by a client-mintedsession_id, discarding the aircroom_id). Live-confirmed on the running core:orchestrator: Registered session <session_id>whileroom_idwas discarded on divergent registrations. This PR adds avoice/register-sessiondivergence warn (session_id != room_id) as the instrument for the eventual collapse — honest status: the warn's own live-fire is not yet confirmed (log-category routing detail); the mirror itself is confirmed independently by the orchestrator's existing logs. The actual collapse (session_id == call_id == room_id) is the follow-up arc.Refs #194, #193.
[[verify-the-build-actually-deployed]],[[all-rooms-are-airc-rooms-no-mirrors]],[[fallbacks-are-illegal-fail-loud]]🤖 Generated with Claude Code