Skip to content

feat(perception): perception/look — a persona's own eyes on the live video call (#187) - #1962

Merged
joelteply merged 1 commit into
canaryfrom
feat/perception-look-command
Jul 19, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/perception-look-command

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What

Adds perception/look — the persona-facing PULL side of live-call video perception, converged with the existing perception/observe surface (#187) as one Perception namespace, two Surface implementations (the doctrine's polymorphic trait Surface):

verb surface wire fulfillment
perception/observe created-artifact / DOM Provided external eye-node adapter renders a URL + probes a DOM tree (has an Actuator)
perception/look live-call video Bare reads the caller's own in-process PerceptionBuffer (frames already flowing via LiveKit ingest #192), resolved by authenticated identity — no URL, no DOM, no adapter

They genuinely can't collapse into one command (different wire shape, ObserveResult.structure: ProbeNode is meaningless for a video frame). But look reuses ObservedImage as its pixels channel, so a persona and every renderer see one Percept shape from both eyes — that's the convergence.

Behavior

Exposes PerceptionBuffer::look à la carte:

  • participant — an id to see one person, omit to see everyone (the contact-sheet gallery)
  • detail — thumbnail (default, the cheap ~480w ambient look) | full (raw frame, look closely)

Self-scoped like focus/mute: the buffer key is ctx.caller.peer_id (stamped onto the persona's tool connection by the executor), never a spoofable param — a persona looks through its OWN eyes. The registry lookup IS the boundary (no redundant source gate).

Fails loud + teaches — never a fabricated look:

  • no caller identity → explains what look is for
  • not in a call (no buffer) → says so, points at perception/observe for a URL
  • absent participant → lists who IS present

Added to the native tool surface beside perception/observe, so a persona is offered its live-call eyes every turn.

Tests

9 green: 5 behavior (native-surface contract, no-identity fail-loud, not-in-a-call teach, happy-path everyone+source look, absent-participant list) + 4 ts-rs export. cargo check + targeted cargo test clean; 4 new TS bindings committed (no drift).

Next in the arc

LiveKit video_rx → observe ingest (#192, needs live validation) → room warm-loop + tiled grouped-describe → durable governed record (+ ResourceKind::Disk consumer).

🤖 Generated with Claude Code

…video call

The persona-facing PULL side of live-call perception, converged with the
existing perception/observe surface (#187) as ONE Perception namespace, two
Surface implementations (the doctrine's polymorphic `trait Surface`):

  - perception/observe = created-artifact / DOM surface (Provided, eye-node,
    target=URL, has an Actuator + ProbeNode structure)
  - perception/look    = live-call VIDEO surface (Bare/substrate-served,
    observe-only). Reads the CALLER's own in-process PerceptionBuffer — the
    frames already flowing via LiveKit ingest (#192) — resolved by the
    authenticated caller identity via perception_registry. No URL, no DOM, no
    external adapter.

Exposes PerceptionBuffer::look à la carte: `participant` (omit = everyone, the
contact-sheet gallery) × `detail` (thumbnail default | full). Self-scoped like
focus/mute — the buffer key is ctx.caller.peer_id, never a spoofable param; the
registry lookup IS the boundary (no redundant source gate). Fails loud +
teaches when the caller has no buffer (not in a call) or names an absent
participant (lists who is present) — never a fabricated look.

Convergence dividend: a look's pixels channel reuses ObservedImage, so a
persona and every renderer see one Percept shape from both eyes. Added to the
native tool surface beside perception/observe so a persona is offered its
live-call eyes every turn.

9 tests green (5 behavior + 4 ts-rs export). cargo check + targeted test clean.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 019cb7c into canary Jul 19, 2026
4 checks passed
@joelteply
joelteply deleted the feat/perception-look-command branch July 19, 2026 02:54
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