Repository navigation
feat(perception): perception/look — a persona's own eyes on the live video call (#187) - #1962
Merged
Merged
Conversation
…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
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.
What
Adds
perception/look— the persona-facing PULL side of live-call video perception, converged with the existingperception/observesurface (#187) as one Perception namespace, two Surface implementations (the doctrine's polymorphictrait Surface):perception/observeProvidedperception/lookBarePerceptionBuffer(frames already flowing via LiveKit ingest #192), resolved by authenticated identity — no URL, no DOM, no adapterThey genuinely can't collapse into one command (different wire shape,
ObserveResult.structure: ProbeNodeis meaningless for a video frame). ButlookreusesObservedImageas its pixels channel, so a persona and every renderer see onePerceptshape 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 isctx.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:
lookis forperception/observefor a URLAdded 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+ targetedcargo testclean; 4 new TS bindings committed (no drift).Next in the arc
LiveKit
video_rx → observeingest (#192, needs live validation) → room warm-loop + tiled grouped-describe → durable governed record (+ResourceKind::Diskconsumer).🤖 Generated with Claude Code