Skip to content

test(sensory): Position 2 alpha-contract WebRTC sensory smoke - #1073

Merged
joelteply merged 2 commits into
canaryfrom
fix/webrtc-sensory-smoke
May 11, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fix/webrtc-sensory-smoke

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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

  • Resolves a multimodal model (Chat + Vision + AudioInput + AudioOutput) via cognition/resolve-model IPC
  • Spawns LiveKitAgent into a real WebRTC test room
  • Publishes a TTS question + a known test image (RGBA quadrants: red/green/blue/white)
  • Polls for persona's TTS response track + transcription
  • Asserts transcription mentions image content (proves vision was wired)
  • Within budget: first response < 30s, full response < 60s

Loud-fail buckets (typed per #1063 / #1067 pattern)

  • no_qualified_model — resolver returned no Standard-Persona-capable model
  • persona_failed_to_join — LiveKitAgent spawn errored or never joined
  • no_audio_published — persona was in room but no TTS track ever appeared
  • no_transcription — STT listener never produced segments
  • vision_blind — transcription doesn't mention any image content (text-only model)
  • budget_exceeded — first response > 30s OR full response > 60s

Each failure path categorized so an operator can grep instead of digging through logs.

Standing-rule alignment

Validation

  • tsc --noEmit clean (focused + repo-wide)
  • Normal precommit hook passed (TypeScript build + browser ping)
  • Normal pre-push hook passed (TypeScript clean + ESLint baseline-tolerant)

Dependencies that flip this green

  • Position 1 (sibling Codex): cognition/resolve-model IPC + RequirementProfile::StandardPersona + ResolutionError variants (TextOnlyModelRejected, SilentCpuFallbackRejected)
  • Position 3 (continuum-8e97): Qwen multimodal GGUF actually loadable on Mac M-series + RTX 5090 hosts with full vision/audio paths
  • live/spawn-persona-agent IPC (server-side participant bridge for resolved-model handle)
  • live/publish-test-stimulus IPC (test harness — publishes audio + RGBA image into room)
  • live/get-room-state IPC (test harness — reports persona_audio_published + transcription_segments)

Run

npx tsx src/tests/integration/sensory-persona-roundtrip.test.ts

Today's run reports which dependencies are missing via the typed dependencies field on the failure result.

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.
@github-actions github-actions Bot added size: XL and removed size: L labels May 11, 2026
@joelteply
joelteply merged commit 593d25c into canary May 11, 2026
3 checks passed
@joelteply
joelteply deleted the fix/webrtc-sensory-smoke branch May 11, 2026 21:11
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