Repository navigation
feat(server): record guests, their grants, and which person a session belongs to - #536
Merged
Merged
Conversation
… belongs to Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The subject a guest link carries is what marks a guest. Sessions without it skip the person lookup, so guests cost members nothing per request. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 12, 2026
Main took 33 for outside agents. This migration has not run on any database outside a test, so it is renumbered. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 12, 2026
Jacksondr5
marked this pull request as ready for review
October 13, 2026 01:11
Jacksondr5
added a commit
that referenced
this pull request
Oct 13, 2026
Rebased onto guest sharing (#536, #561, #577). The guest gate refuses every J5 read by default; the client now skips them for a connection it knows is a guest's, as it did for the HTTP reads, and hides the playbook boards. Co-Authored-By: Claude Opus 5.5 <[email protected]>
7 of 8 tasks
Jacksondr5
added a commit
that referenced
this pull request
Oct 13, 2026
* feat(j5): J5's client reads run over WebSocket methods J5's client reads called J5's own HTTP routes, each with its own authentication, error shape and "is this route missing" probe. Upstream's rule is that a small read is a socket query and a large, compressible payload goes over HTTP. Fourteen reads move to RPC methods: the Inbox list and open count, Crew proposals, runtime requests and memberships, the Fleet, spawned children, the archive preflight, participant identities, the peer list, the three playbook reads and the artifact list. Their routes are removed. Reading one artifact's content stays on HTTP, because it can be megabytes. Part of #506 (step 3). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): the Artifacts page waits for the socket before listing The list is read over the socket now, which comes up after the prepared connection the page waited for, so a direct visit to /artifacts failed as "not connected" until Try again. Found in live testing. Review fixes: FORK.md no longer names deleted route files, and says which views skip an unsupported server. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(server): drop an unused import Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): a known guest is sent none of J5's socket reads Rebased onto guest sharing (#536, #561, #577). The guest gate refuses every J5 read by default; the client now skips them for a connection it knows is a guest's, as it did for the HTTP reads, and hides the playbook boards. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(mobile): the playbook board calls its hooks unconditionally Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This branch was successfully deployed
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.
Problem
Share links need a server that knows who a guest is and what they were granted, before anything can enforce it. Today J5's person table holds one row, the server's own operator, and nothing ties a connection to a person. This is the first of four stacked pieces (#531, then #532, #535, #533).
What changed
Everything here is J5-owned. No upstream file is edited, and nothing a person or an agent can reach creates a guest yet: after this lands a guest exists only in a test.
PersonAccessservice (apps/server/src/j5/sharing). It records guests, grants and session bindings, and answers what a connection may do with a thread or a project:member,collaborate,viewornone.Three decisions a reviewer should check:
auth_sessions(Jackson, 2026-10-11, on Share links 1: people, grants, and recognising a guest connection #531). J5 migrations never run in upstream's lane, and upstream's migration 031 dropped and recreated its auth tables once already.j5:guest), which upstream copies onto every session made from the link and which no client can change. The J5 table then says which guest. A marked session with no person recorded reaches nothing. A session without the mark is a member's own device and is never looked up, so a member's requests cost no extra query. Checked: a guest cannot create a session, because every path that issues one needs Manage access, a shell on the host, or the dev token.Verified
vp test run apps/server/src/j5/sharing apps/server/src/j5/a2a/Migrations.test.ts: 31 pass. Also ran the send, roster, inbox and persistence tests that read the person registry: pass.VACUUM INTOsnapshot of a real database at J5 migration 32 at the time (1 person, 180 memberships): it applied, the person stayed a member, and the registry still listed them. The snapshot was deleted afterwards.Not done here: the service is not yet provided in the server's runtime, because nothing calls it until #532.
Checklist
FORK.md(case text and file-table row) in this PR: none editeddocs/j5/product/upstream.md: nothing upstream does changes in this piece; the entries come with Share links 2: a guest views one thread, enforced by the server #532 and Share links 3: the Share action, the People page and the link #535AGENTS.md): server only; a grant can be put, changed and removeddocs/j5/product/and user docs rewritten where this changes them: the definition merged in docs(j5): define members, guests, grants and shared conversations #529; nothing user-visible yetRefs #531.
Opus 5.5, Claude Code in J5 Code.
🤖 Generated with Claude Code