Repository navigation
test(sensory): Position 2 alpha-contract WebRTC sensory smoke - #1073
Merged
Merged
Conversation
Per #1072 sensory persona alpha contract: codifies the live sensory loop a STANDARD PERSONA must satisfy. Resolves multimodal model via cognition/resolve-model (Position 1 dependency), spawns LiveKitAgent, publishes test audio question + known image as video frame, asserts persona's TTS response + transcription mentions image content. Six typed loud-fail buckets per #1063 / #1067 pattern: no_qualified_model, persona_failed_to_join, no_audio_published, no_transcription, vision_blind, budget_exceeded Failing-loud test today; passes when Position 1 (resolver + RequirementProfile::StandardPersona IPC) and Position 3 (Qwen multimodal GPU kernels) land. Bar is the test, not the impl. No silent CPU fallback, no degraded text-only pass, no retry on failure (per #1070 / #1072 standing rules).
Codifies the fairness bar Mac+Windows smoke surfaced post #1057-1060: storm IS fixed (CPU stays flat) BUT first-claim-wins coordination is too sticky (only 1 of N personas replies). This test makes that failure mode explicit so the eventual fix has an executable green-vs-red signal. Five typed loud-fail buckets per #1063 / #1067 pattern: probe_not_persisted — chat/send returned ok but DB drop no_personas_replied — total silence (storm-fix overcorrection) first_response_budget_exceeded — first reply > 10s budget per #1062 all_response_budget_exceeded — full reply set > 30s budget per #1062 fairness_violated — only K of N replied where K < min Standing-rule alignment (#1070 / #1072): - Single attempt, no retry on failure - Loud-fail with typed bucket — operator greps result, doesn't dig logs - No silent fallback — reports what user-facing surface actually shows Uses ./jtag CLI via execFile to stay decoupled from in-process JTAGClient TS surface drift; matches the chat-probe pattern operators already use.
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.
Summary
Codifies the live sensory loop a STANDARD PERSONA must satisfy per #1072 sensory persona alpha contract. Failing-loud test today; flips green as Position 1 (RequirementProfile::StandardPersona resolver) and Position 3 (Qwen multimodal GPU kernels) land. The bar is the test, not the impl.
What it proves
cognition/resolve-modelIPCLoud-fail buckets (typed per #1063 / #1067 pattern)
no_qualified_model— resolver returned no Standard-Persona-capable modelpersona_failed_to_join— LiveKitAgent spawn errored or never joinedno_audio_published— persona was in room but no TTS track ever appearedno_transcription— STT listener never produced segmentsvision_blind— transcription doesn't mention any image content (text-only model)budget_exceeded— first response > 30s OR full response > 60sEach failure path categorized so an operator can grep instead of digging through logs.
Standing-rule alignment
Validation
tsc --noEmitclean (focused + repo-wide)Dependencies that flip this green
cognition/resolve-modelIPC +RequirementProfile::StandardPersona+ ResolutionError variants (TextOnlyModelRejected, SilentCpuFallbackRejected)live/spawn-persona-agentIPC (server-side participant bridge for resolved-model handle)live/publish-test-stimulusIPC (test harness — publishes audio + RGBA image into room)live/get-room-stateIPC (test harness — reports persona_audio_published + transcription_segments)Run
Today's run reports which dependencies are missing via the typed
dependenciesfield on the failure result.