Skip to content

Prism id on stitch again, with QR linking and apps that hear removals - #79

Merged
afflom merged 2 commits into
mainfrom
claude/project-thread-i4vn2z
Nov 14, 2026
Merged

afflom merged 2 commits into
mainfrom
claude/project-thread-i4vn2z

Conversation

@afflom

@afflom afflom commented Nov 14, 2026

Copy link
Copy Markdown
Member

Re-lands prism/identity/4, which #76 rolled back "for containment". Neither that PR nor foundry#189 names a defect: CI on #73 and #75 was green, and no issue or review is linked. The account owner asked to continue. The rollback changed only one thing for users: existing passkey sessions keep working until they expire. With this re-land they end, and the visitor creates or joins a Prism id. Nothing in Foundry or the template keys data by account, and no stored data is deleted.

On top of #73, this pins stitch's Prism id to 7c0cceb (afflom/stitch#2):

  • The link offer shows its QR code (linkQr), drawn as one SVG path with a quiet zone, dark on white in both themes.
  • Every share also publishes the id's public log (publishLog). verifySession, sign-in and recovery merge it (heardLog, verifyAction with bus). A session from a device removed elsewhere is refused, even when that device never synced.
  • The relay bus reads what the relay holds through retained(), stitch's bus contract.

PROTOCOL.md and README.md are updated. Still open in stitch: a replayed old kit forks the recovery chain (every frame that hears the public log refuses it; ordering the two needs stitch's witnessed time), and the relay keeps messages for 30 minutes.

Tests: npm run test:identity passes 16/16 in three consecutive runs, including the new QR check. frame-sync --check matches 18 of 18 files after --lock.


Generated by Claude Code

Restores prism/identity/4 (reverting the containment revert 7b5fbbc, whose
PR named no defect) and re-pins stitch's Prism id to 7c0cceb:

- the link offer shows its QR code (stitch's linkQr), drawn as one SVG path
  with its quiet zone, dark on white in both themes;
- every share also publishes the id's public log (publishLog), and
  verifySession, sign-in and recovery merge it (heardLog, verifyAction's
  bus), so a session from a device removed elsewhere is refused even when
  that device never synced;
- the relay bus reads what the relay holds with retained(), stitch's bus
  contract.

identity/test.mjs also checks the QR code. npm run test:identity: 16/16,
three runs. frame.lock re-locked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3NdLCxdzL1iQw9rg5T
@afflom
afflom enabled auto-merge November 14, 2026 06:49
@afflom
afflom disabled auto-merge November 14, 2026 07:07
@afflom
afflom enabled auto-merge November 14, 2026 07:07
@afflom
afflom merged commit 892f3ad into main Nov 14, 2026
4 checks passed
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.

2 participants