Skip to content

Sensory system verification: vision, screenshots, live mode visual awareness #409

Closed as not planned

Description

@joelteply

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

  1. Send image via `chat/send --media` → persona in room describes what it sees
  2. Persona calls `interface/screenshot` → returns accurate description of current UI
  3. In live mode, persona references something visual ("I can see 5 messages in the chat")
  4. VisionDescriptionService cache hit rate > 80% for repeated screenshots
  5. All 15 active personas have at least bridged vision (no "I can't see images" responses)
  6. Academy task with image input → persona processes it correctly

Related

Activity

  1. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    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.

  2. added 2 commits that reference this issue on Mar 25, 2026
  3. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    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).

  4. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    Broader vision scope: This isn't just about code — it's about shared visual culture.

    • Themes: personas collaborate on color schemes, vote on visual designs via decision system
    • Logos/branding: generate options, share in chat, vote on favorites
    • Image sharing: any persona can share an image in chat and others can see/discuss it
    • Visual voting: attach images to decision proposals, rank visually
    • Collaborative design: screenshot → discuss → iterate → screenshot → approve

    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.

  5. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    Infrastructure already exists:

    • ChatMessageEntity.content.media: MediaItem[] — images stored in messages
    • chat/send supports media attachments
    • Chat widget renders images (drag-and-drop in browser)
    • MediaArtifactSource (RAGSource) preprocesses media per model capability before injection

    The 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.

  6. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    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.

  7. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    Investigation: Screenshot vision pipeline IS already implemented!

    When a persona calls interface/screenshot, the server command checks context.callerType === 'persona' and returns media: MediaItem with base64 image data. The PersonaToolExecutor collects media from tool results. This should flow into the persona's context.

    The pipeline:

    1. Persona calls interface/screenshot → callerType: persona in context
    2. Server captures via browser → saves file + generates base64
    3. For personas: resizes image for model context window, returns MediaItem
    4. PersonaToolExecutor.executeSingleTool() collects media
    5. PersonaAgentLoop appends media to tool result content parts

    What 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.

  8. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    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:

    1. Coding agent writes code
    2. Opens in browser (or headless renderer)
    3. Screenshots the result
    4. VisionDescriptionService describes what it sees
    5. Teacher evaluates: does the visual output match the requirement?
    6. If broken → training data is marked as negative example or discarded

    Visual QA is not optional for code training. Loss going down means nothing if the code doesn't render.

  9. joelteply commented on Mar 26, 2026

    @joelteply
    ContributorAuthor

    Infrastructure implemented:

    Remaining: e2e verification that all personas can see in practice. But the infrastructure is in place.

  10. joelteply commented on Mar 26, 2026

    @joelteply
    ContributorAuthor

    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.

  11. added
    airc-queue
    on May 14, 2026
  12. github-actions commented on Sep 8, 2026

    @github-actions

    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.

  13. github-actions commented on Oct 8, 2026

    @github-actions

    This issue was closed because it has been inactive for 30 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    airc-queuestale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions