Skip to content

Plan a route guard for the hosted viewer - #484

Open
benschac wants to merge 1 commit into
mainfrom
cairn/plan-route-guard
Open

benschac wants to merge 1 commit into
mainfrom
cairn/plan-route-guard

Conversation

@benschac

@benschac benschac commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

The hosted viewer tests the account in the shell and in each loader on its
own, and shows a signed-out visitor the sign-in card at every address but
/explore. A public PRD's address therefore never opens in the reader signed
out, which prd.launch.sharing#v1 asks for, and t224's "Sign in to comment"
has no signed-out reader to appear in.

spec.hosted-launch.route-guard adds guard(route, account), after the Effect
UI auth example: Open, SignInFirst, NotMember or Allowed from the route and
the account alone, read by the shell and every loader. Whether a person may
read or comment on one PRD stays the server's, from the access the document
comes with. A signed-out visitor keeps the address they opened, with no
/login redirect, so sign-in returns there.

Task t286 builds it from main. t224 now depends on it, and
comments-in-the-reader says its controls read the document's access.
spec.json gains the section's entry, other entries keep their recorded
hashes, and comments-in-the-reader's body hash follows its edit since it
was current before. The stack diagram and the demo trace are regenerated.

🤖 Generated with Claude Code

benschac commented Dec 1, 2026

Copy link
Copy Markdown
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

The hosted viewer tests the account in the shell and in each loader on its
own, and shows a signed-out visitor the sign-in card at every address but
/explore. A public PRD's address therefore never opens in the reader signed
out, which prd.launch.sharing#v1 asks for, and t224's "Sign in to comment"
has no signed-out reader to appear in.

spec.hosted-launch.route-guard adds guard(route, account), after the Effect
UI auth example: Open, SignInFirst, NotMember or Allowed from the route and
the account alone, read by the shell and every loader. Whether a person may
read or comment on one PRD stays the server's, from the access the document
comes with. A signed-out visitor keeps the address they opened, with no
/login redirect, so sign-in returns there.

Task t286 builds it from main. t224 now depends on it, and
comments-in-the-reader says its controls read the document's access.
spec.json gains the section's entry, other entries keep their recorded
hashes, and comments-in-the-reader's body hash follows its edit since it
was current before. The stack diagram and the demo trace are regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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