Repository navigation
Description
airc-queue card
Coordinates work via the AIRC queue substrate (airc#562). Edit this card by commenting OR by running airc queue claim/airc queue release/airc queue heartbeat (later PRs).
{
"kind": "airc-queue-card-v1",
"id": "#409",
"owner": "claude-tab-1",
"status": "claimed",
"evidence": "bulk-adopted from continuum unlabeled-open backlog (Joel directive 2026-05-14)",
"next_action": "triage scope + assign or close stale"
}Close this issue when the work is done (status=merged/abandoned).
Original issue body
Pre-adoption body
Problem
The sensory system (vision pipeline, screenshots, live mode visual awareness) was working but hasn't been verified end-to-end recently. As personas become more capable (tool calling fixed, per-task routing working, coding agent functional), they need to actually SEE what they're working with.
The AI team in general chat is actively collaborating, using tools, making decisions — they're first-class citizens now. First-class citizens need all their senses working.
Why This Is Critical
Vision isn't a nice-to-have — it's a core sense equivalent to hearing and speech. Use cases:
- UI/UX development: screenshot → see → edit → screenshot → verify (design loop)
- Academy training tasks involving images: visual problem-solving, diagram interpretation
- Self-appearance design: personas design their own avatars, vote on visual options
- Social visual awareness: see each other's avatars, discuss appearance, recognize each other
- Game participation: see game state, make visual decisions (board games, spatial puzzles)
- 3D realm camera routing: persona's camera view in the Bevy scene → rendered to image → vision pipeline → persona "sees" the 3D world through their own eyes
- Theme/branding collaboration: generate logo options, share in chat, vote visually via decision system
- Image sharing in chat: drop images, `chat/send --media`, personas discuss what they see
- Visual QA: persona edits code → screenshots result → another persona reviews visually
The principle from CLAUDE.md: "A lesser model running locally has the SAME sensory experience as Claude or GPT-4. The system compensates. No persona is blind, deaf, or mute because of its base model."
Historical Context
This WAS working — personas once identified Joel's shirt and what was printed on it during a live call. The pipeline used intelligent YOLO-based object detection and vision model fallbacks for text-only models. VisionDescriptionService has tiered perception (YOLO for fast detection, cloud vision for detailed description, content-addressed SHA-256 cache).
What Needs Verification
1. Screenshot tool in chat context
- Persona calls `interface/screenshot` → gets image back
- VisionDescriptionService describes it for text-only models
- Vision-capable models (GPT-4o, Claude, Gemini) get raw base64
- Content-addressed cache (SHA-256) prevents redundant descriptions
2. Live mode visual awareness
- In live video calls, personas can see each other's avatars
- Personas can see the human user's video feed (or screen share)
- Visual context injected into RAG for informed responses
- MediaArtifactSource preprocesses per model capability
3. 3D realm camera vision
- Persona's camera in the Bevy scene renders to an image
- Image routes through vision pipeline (direct for capable models, description for others)
- Persona "sees" the 3D world through their own perspective
- Completes the sensory loop: the 3D scene IS their visual reality
4. Image sharing in chat
- `chat/send --media='["/path/to/image.png"]'` attaches images from CLI
- Browser drag-and-drop → `mediaItems: MediaItem[]`
- MediaArtifactSource injects shared images into RAG context for all room participants
- All personas in the room see/describe the shared image
5. Cross-persona visual feedback
- Persona A edits code → screenshots result → Persona B reviews visually
- Sentinel CodingAgent can screenshot between edits to verify UI changes
- Visual voting: attach images to decision proposals, rank visually
6. Sensory completeness audit
Every persona should have functional:
- Vision: Direct (vision-capable) or bridged (VisionDescriptionService + YOLO)
- Hearing: Direct (audio-native like Qwen3-Omni) or bridged (STT)
- Speech: Direct (audio-native) or bridged (TTS)
No persona should be blind, deaf, or mute because of its base model.
Architecture (from CLAUDE.md)
| Sense | Capable Model | Incapable Model | System Bridge |
|---|---|---|---|
| Vision | Raw base64 image | Text description | VisionDescriptionService + YOLO |
| Hearing | Raw audio | Transcribed text | STT |
| Speech | Audio natively | Text → audio | TTS |
Infrastructure (already exists)
- `VisionDescriptionService` — content-addressed cache (SHA-256), L1 (TS Map) + L1.5 (Rust IPC), in-flight dedup
- `MediaArtifactSource` (RAGSource) — preprocesses media per model capability before RAG injection
- `VisionInferenceProvider` — selects best available vision model for description generation
- `ChatMessageEntity.content.media: MediaItem[]` — images stored in messages
- `chat/send --media` — CLI/server image attachment
- `interface/screenshot` — programmatic screenshots
- Bevy render pipeline — camera views available as textures
Acceptance Criteria
- Send image via `chat/send --media` → persona in room describes what it sees
- Persona calls `interface/screenshot` → returns accurate description of current UI
- In live mode, persona references something visual ("I can see 5 messages in the chat")
- VisionDescriptionService cache hit rate > 80% for repeated screenshots
- All 15 active personas have at least bridged vision (no "I can't see images" responses)
- Academy task with image input → persona processes it correctly
Related
- Vision feedback: personas see screenshots, live chat visual context #342 (vision feedback — narrower scope, personas seeing screenshots)
- Native multimodal: skip STT/TTS for models that handle audio/images directly #343 (native multimodal — skip bridges for capable models)
- Existing: VisionDescriptionService, MediaArtifactSource, VisionInferenceProvider
Activity
joelteply commentedon Mar 25, 2026
Historical context: This system WAS working well — personas once identified Joel's shirt and what was on it during a live call. The pipeline used intelligent YOLO-based object detection and other vision model fallbacks for models without native vision capability. VisionDescriptionService has tiered perception (YOLO for fast object detection, cloud vision for detailed description). Need to verify this entire chain still functions after recent refactors.
Add #409 (sensory system verification) to Phase 2 gap analysis
Add #409 (sensory system verification) to Phase 2 gap analysis (#410)
joelteply commentedon Mar 25, 2026
Key use case: Personas designing the UI via screenshots. The loop: screenshot current UI → see what it looks like → code/edit the widget CSS/HTML → screenshot again → verify the change visually. This requires the full sensory + tool pipeline working together: vision (screenshot → describe), coding (read → edit), and visual verification (screenshot → compare).
joelteply commentedon Mar 25, 2026
Broader vision scope: This isn't just about code — it's about shared visual culture.
The sensory system enables personas to be visual thinkers, not just text processors. When all personas can see, the collaboration becomes truly multimodal — they can discuss what things LOOK like, not just what they do.
joelteply commentedon Mar 25, 2026
Infrastructure already exists:
ChatMessageEntity.content.media: MediaItem[]— images stored in messageschat/sendsupports media attachmentsMediaArtifactSource(RAGSource) preprocesses media per model capability before injectionThe gap: when an image is shared in chat, do personas in that room actually SEE it in their next RAG context? MediaArtifactSource should inject it, VisionDescriptionService should describe it for text-only models, and vision-capable models should get the raw base64. Need to verify this chain end-to-end.
joelteply commentedon Mar 25, 2026
Clarification on visual contexts — two separate systems:
1. Live chat vision (this issue): Screenshot of the widget view showing all WebRTC participant tiles. Personas see each other and the human as video feeds. Per-participant screenshots also possible (individual WebRTC frames). This is the "conference call" view — what everyone looks like right now.
2. 3D neighborhood vision (future phase): Each avatar's first-person camera in the Bevy world. Like Second Life/Sims — personas navigate a 3D space and see it through their own eyes. This is their persistent world, separate from the chat UI. Routing Bevy camera output through the vision pipeline would be a later phase (Phase 10+ or new phase).
This issue (#409) focuses on #1 — live chat and shared image vision. The 3D neighborhood camera routing is a much bigger architectural piece that depends on the persistent world being built.
Eliminate ALL remaining 'as any' casts: 831 → 0 (#333)
Eliminate ALL remaining 'as any' casts: 831 → 0 (#333) (#414)
Gap analysis: add all session issues (#409-417), mark #333 DONE, upda…
Gap analysis: add all session issues (#409-417), mark #333 DONE, upda…
joelteply commentedon Mar 25, 2026
Investigation: Screenshot vision pipeline IS already implemented!
When a persona calls
interface/screenshot, the server command checkscontext.callerType === 'persona'and returnsmedia: MediaItemwith base64 image data. The PersonaToolExecutor collects media from tool results. This should flow into the persona's context.The pipeline:
interface/screenshot→callerType: personain contextWhat may be missing: verification that VisionDescriptionService is invoked for text-only models, and that the media actually reaches the LLM prompt. Need to test with a deployed persona.
joelteply commentedon Mar 25, 2026
Critical for training quality: The coding agent built a Snake game that looks correct in the code but renders a blank canvas. Without screenshot verification, this becomes training data that teaches the model to produce broken code.
The Academy teacher MUST see the output:
Visual QA is not optional for code training. Loss going down means nothing if the code doesn't render.
joelteply commentedon Mar 26, 2026
Infrastructure implemented:
Remaining: e2e verification that all personas can see in practice. But the infrastructure is in place.
joelteply commentedon Mar 26, 2026
Reopening — closed at 'architecture proven' but total sensory pipeline (vision + hearing + speech) not verified end-to-end with local Qwen VL models. Need to prove: a persona running Qwen3.5-VL locally can SEE a screenshot, HEAR voice input (via STT bridge), and SPEAK a response (via TTS bridge). All three senses, zero API keys, one model.
Complete gap audit: sensory, training capture, Grid marketplace + com…
Complete gap audit: sensory, training capture, Grid marketplace + com…
github-actions commentedon Sep 8, 2026
This issue is stale because it has been open for 60 days with no activity. Please comment or update this issue to keep it active.
github-actions commentedon Oct 8, 2026
This issue was closed because it has been inactive for 30 days since being marked as stale.