Skip to content

feat(sync): PRES-2 — main-side presence manager (relay bridge)#136

Merged
th3-br41n merged 1 commit into
mainfrom
feat/pres-2a-presence-manager
Jul 11, 2026
Merged

feat(sync): PRES-2 — main-side presence manager (relay bridge)#136
th3-br41n merged 1 commit into
mainfrom
feat/pres-2a-presence-manager

Conversation

@th3-br41n

Copy link
Copy Markdown
Contributor

The main half of presence (0.4.0, design 74). Per shared entity, a proxy y-protocols Awareness the dormant-no-longer 10.6 AwarenessBroadcaster tracks — bridging the renderer's light presence state map (PRES-1) to the DEK-sealed relay.

  • setLocal (renderer publish) → proxy local → broadcast; applyInbound (relay frame) → proxy remotes → onChange → renderer; remoteStates for the peer push; untrack/dispose broadcast a final null.
  • emit injectable → two managers loopback in-process, no relay/DEK stack needed to test convergence.
  • Display-only, persists nothing, inbound untrusted (render side hardens via peerFromState).

Tests: two vaults converge on each other's presence (not self), null clears, untrack drops immediately, onChange fires, entities isolated. sync suite 286 green.

Next — PRES-2b: the capability-gated presence broker + preload IPC route (the sandbox surface, driving setLocal/onChange) + broadcaster activation in the runtime. That's the surface PRES-4's security review gates on.

🤖 Generated with Claude Code

…lay bridge)

The main half of presence (design 74): per shared entity, a proxy y-protocols
Awareness the 10.6 AwarenessBroadcaster tracks, bridging the renderer's light
state map to the DEK-sealed relay. setLocal (renderer publish) → proxy local →
broadcast; applyInbound (relay frame) → proxy remotes → onChange → renderer;
remoteStates for the peer push; untrack/dispose broadcast a final null. emit is
injectable so two managers loopback in-process — no relay/DEK stack. Display-only,
persists nothing, inbound untrusted.

+5 tests: two vaults converge, null clears, untrack drops peers, onChange fires,
entities isolated. sync suite 286 green; typecheck + lint clean.

Next (PRES-2b): the capability-gated 'presence' broker/preload IPC route driving
setLocal/onChange from the sandbox + broadcaster activation in the runtime.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@th3-br41n th3-br41n merged commit 5bc9fa9 into main Jul 11, 2026
2 of 3 checks passed
@th3-br41n th3-br41n deleted the feat/pres-2a-presence-manager branch July 11, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant