Skip to content

fix(deploy): #194 freshness guard — trustworthy 'core ready' + airc-room mirror glass-box (#193) - #1956

Merged
joelteply merged 3 commits into
canaryfrom
feat/airc-room-purity-voice
Jul 18, 2026
Merged

joelteply merged 3 commits into
canaryfrom
feat/airc-room-purity-voice

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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 prior cargo check updating the fingerprint without codegen), emitted a no-op Finished in 0.36s, and start-server.sh launched 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:

  1. Freshness guard after the core-server build — asserts the built binary is at least as new as every tracked .rs source (find -newer, checked directly, not trusted from cargo's Finished). 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.
  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 just verified. We built it, checked it, run it.

This makes core ready mean 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/VoiceOrchestrator key by a client-minted session_id, discarding the airc room_id). Live-confirmed on the running core: orchestrator: Registered session <session_id> while room_id was discarded on divergent registrations. This PR adds a voice/register-session divergence 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

joelteply and others added 3 commits July 18, 2026 15:59
…#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
@joelteply
joelteply merged commit dcaaeee into canary Jul 18, 2026
3 of 4 checks passed
@joelteply
joelteply deleted the feat/airc-room-purity-voice branch July 18, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant