Repository navigation
feat(server): the agent of a shared conversation is told who can write, and asks people in the thread - #599
Closed
Jacksondr5 wants to merge 8 commits into
Closed
Jacksondr5 wants to merge 8 commits into
Jacksondr5 wants to merge 8 commits into
Conversation
7 of 8 tasks
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Jacksondr5
force-pushed
the
j5code/share-4b-notes
branch
from
October 13, 2026 05:51
c08aa9c to
5f31473
Compare
Jacksondr5
force-pushed
the
j5code/share-4b-notes
branch
from
October 13, 2026 05:56
5f31473 to
038085d
Compare
7 of 8 tasks
Jacksondr5
force-pushed
the
j5code/share-4b-notes
branch
from
October 13, 2026 06:15
038085d to
b2e066f
Compare
Jacksondr5
force-pushed
the
j5code/share-4b-notes
branch
from
October 13, 2026 06:19
b2e066f to
99ac87f
Compare
Jacksondr5
force-pushed
the
j5code/share-4b-notes
branch
from
October 13, 2026 06:21
99ac87f to
d097009
Compare
Jacksondr5
force-pushed
the
j5code/share-4b-notes
branch
from
October 13, 2026 07:08
a69c244 to
81671f7
Compare
Jacksondr5
force-pushed
the
j5code/share-4b-notes
branch
from
October 13, 2026 07:28
81671f7 to
89c8d08
Compare
Jacksondr5
force-pushed
the
j5code/share-4b-notes
branch
from
October 13, 2026 20:00
151acda to
11d7ac7
Compare
Jacksondr5
force-pushed
the
j5code/share-4b-notes
branch
from
October 13, 2026 20:45
7dae9e6 to
c813e07
Compare
Jacksondr5
force-pushed
the
j5code/share-4b-notes
branch
from
October 13, 2026 23:45
e70e7ba to
6e59b0b
Compare
…e, and asks people in the thread An agent given a second human voice had no way to know whose it was or where each person stands, and could still put a private question to one person's inbox while everyone was in the thread. The agent now gets one platform note when its thread first has a guest collaborator: who can write, how to tell who wrote a message, and that members own the server while guests are invited and not fully trusted unless a member says so. It gets another when who can write changes. Notes are sent the way J5's Crew notices are, ahead of the next message a person sends rather than at the moment of the grant, so a grant on a whole project starts no agent by itself. The definition's AC3 and AC4 are reworded to say so. An agent's ask to a person's inbox from a shared conversation is refused, with words telling it to ask in the thread and name the person. The note and refusal wording await Jackson's approval. Refs #533 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… thread, not through the inbox The Crew launch report told every Captain to "ask the user through the inbox" for decisions it cannot make from the brief. In a shared conversation that ask is refused, so the notice sent the Captain the wrong way before the refusal corrected it. When the Captain's thread is a shared conversation that one line now reads "ask in this thread, naming the person". Any other Captain reads the report it always has, byte for byte. The wording awaits Jackson's approval. Refs #533 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s withdrawn A security review found that nothing cancelled a queued message when its author lost Collaborate, so the agent could act on a message from a guest who no longer had the right to send it, with no note in between. When a guest's grant is removed or lowered, the person is removed, or they leave, the messages they still have queued on threads they can no longer write to are withdrawn, through upstream's own cancelling of a queued run. It is called from the requests that make the change, with no watcher or sweep. Delivered messages stay under their name. A thread counts as a shared conversation only where a guest's Collaborate grant names the thread or its project, following the narrower write rule beneath this layer. Refs #533 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…real path is tested From the review of the collaborate layers. The change note compared names only, so a member changing why a guest is there was never told to the agent. It is compared now, and the note says the new line or that there is none. Withdrawing a guest's queued messages asked where they may still write in SQL of its own; it now asks the one rule for that. One test runs a shared conversation over upstream's real orchestrator and projections: the note is stored ahead of the first message, each person's message carries its author's line, a guest's message queues behind an active run, a guest edits its own queued message and not a member's, and lowering the guest withdraws that run before it starts. It is what fails if upstream reshapes the two fields J5 reads from a run by SQL. The definition's AC3 and AC4 no longer promise a single note, and say that a member's steer can reach the agent before it. Refs #533 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hat triggers it Jackson ruled on the notes layer (2026-10-13). The note is no longer a message of its own. When the people who can write to a thread differ from what its agent was last told, the note goes at the top of the next message a person sends, ahead of that message's author line, in the same stored text. No turn is spent on the note, the triggering message no longer queues behind it, and a member's steer carries it too. The message that carries a note is recorded as its carrier. If the carrier is queued and then withdrawn before it runs, the agent was never told: that is found when the next message arrives, from upstream's own record of the run, and that message carries the note instead. An edit of the carrier keeps the note. The note a message carries is kept with its author and served to clients, so a client can show the message without it. The first note says that every person's message has an author line, a member's included, that nobody types or can change that line, and that everything before it in a message is the platform's. The line saying what a guest is here for cannot be removed once set. The inbox refusal loses its example. The Crew launch report loses its clause about asking through the inbox, for every Captain. Refs #533 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a shared conversation From Bryant's review of the stack. A person's answer to a question the agent asked does not pass through a message of their own. On a provider where an answer becomes a message, upstream writes that message itself; on Claude it goes back as the result of the agent's tool call. Either way it reached the agent with no author, while the note told the agent every person's message has one, so a guest's free text could pass for a member's. In a shared conversation the server now puts the author on the answer's own words, "[Answer from Priya (guest)]", for a member's answer as well as a guest's, on text and on chosen options. The first note tells the agent so. A guest's answer that is not text or chosen options is refused. A thread only one person can write to is passed on untouched. Shared server AC8 now says a thread grant lets a guest write to the thread it names and read the agents beneath it. Refs #533 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… needs a member's say first The note said a guest is "not fully trusted unless a member says so". In a live test two models refused a guest's harmless request for want of a member's approval, and a Captain asked the owner to confirm a guest's roster approval. The paragraph now says a guest is worked with on the thread's ordinary work, that guests do not own the system, and that something sensitive needs a member's prior authorization, which the "here for" line can give (Jackson, 2026-10-13). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Jackson, 2026-10-13. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Jacksondr5
force-pushed
the
j5code/share-4b-notes
branch
from
October 14, 2026 18:39
864a34e to
7a76099
Compare
Owner
Author
|
Closed unmerged, by Jackson's decision (2026-10-17). The product was redefined from first principles in #631 (People and access, and a reworked Shared conversations), which reverses most of this stack's guest restrictions. The parts that still apply (the author line and note, the launch wrap, the answer records, the cards and notices) will be carried into a single rebuild PR against the new definitions, after the next upstream advance. The branch is kept for reference. 🤖 Generated with Claude Code |
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
Once two people can write to one agent, the agent has to be told who they are and where each stands, and its private question to one person's inbox works against a conversation everyone is in. Second of three server layers for #533.
What changed
The agent is told who can write, and again when that changes (AC3 to AC6). The note is not a message of its own. It goes at the top of the next message a person sends, ahead of that message's author line, in the same stored text, so no turn is spent on the note and the message does not queue behind it:
The last paragraph was changed after the live test of
3c2c3d02cf(Jackson, 2026-10-13). It used to say a guest is "not fully trusted unless a member says so". In that test Claude Haiku and GPT Luna both refused a guest's harmless request (create a one-word file) for want of a member's approval, and a Captain asked the owner to confirm a guest's roster approval.A later change, on whichever message is sent next:
A guest who stops being able to write gets
Sam (guest) can no longer write to this thread.When the last guest collaborator goes, the last line isOnly members can write to this thread now. After this message, their messages no longer begin with an author line., and the message that carries it is the last with an author line.What a client receives. A message's stored text is, in order: the note when it carries one, a line break, the author line, a blank line, what the person typed.
j5.sharing.listThreadAuthorsgives, per message a person sent,note: the exact text of the note that message carries, ornull. So a client shows the message by takingnoteplus one line break off the front, then the author line and blank line; and showsnoteas a notice on that message. A note begins<j5_shared_conversation>and ends</j5_shared_conversation>. No message iscreatedBy: "system"for this any more.An answer to the agent's question carries its author. A person's answer does not pass through a message of their own: on some providers upstream writes it into a message itself, on Claude it goes back as the result of the agent's tool call. In a shared conversation the server puts
[Answer from Priya (guest)]on the answer's words, for a member's answer as well as a guest's: before a typed answer, and as the first of a set of chosen options. The first note tells the agent so. A guest's answer that is not text or chosen options is refused. A client that shows the answer back has to take that prefix off. Tested by unit test only: there is no pending question without a real provider."Here for" cannot be removed once set (AC6). It is optional when a share is made.
putGrantwith thenotekey left out leaves the line as it is; with other text it changes it, and the agent is told; withnullon a grant that has a line it is refused: "What a person is here for can be changed to other words, and cannot be removed once it is set." The web Share dialog sendsnoteonly when the box is not empty, and the level controls send nonotekey, so neither clears it today.An agent in a shared conversation cannot ask a person through the inbox (AC13).
A2ASendServicerefuses the ask, so every caller gets the same answer:A reply to something a person asked the agent, and messages between agents, are unchanged.
The Crew launch report no longer tells a Captain where to ask a person, in any thread. It read "…coordinate with j5_send_message, and ask the user through the inbox for decisions you cannot make from the brief." It now reads
Your crew is running. Each seat has your brief and this roster; coordinate with j5_send_message.The line about what the platform raises in the inbox on provider sign-in and permission failures is unchanged. This changes text already onj5/main.A guest who can no longer write has their queued messages withdrawn. When a guest's grant is removed or lowered, the person is removed, or they leave, the messages they still have queued on threads they can no longer write to are cancelled through upstream's own
queued-run.cancel, called from the four sharing requests that make the change. Delivered messages stay under their name.Under a project Collaborate grant, every seat's thread in that project is a shared conversation: its messages carry author lines, its agent gets the note, and its inbox asks to a person are refused. Under a thread grant none of that applies to the seats beneath (#598). Noted on #534.
An inbox reply names its author too, as of #600:
[Message from Jackson (member) (human:…)]in a shared conversation. The first note gains the sentence "A member's reply from the inbox begins with the same line, with their id after their name." there.The definition:
shared-conversations.mdAC3, AC4 and AC6 are rewritten for the above, with a History line.Tested over the real orchestrator.
SharedConversation.integration.test.tsruns a shared conversation on upstream's real orchestrator and projections, with no provider: a message before sharing is stored as typed; the guest's first message is stored as note, author line, text, and nothing is sent by the platform; it queues behind an active run; edits by its author and by a member keep the note; withdrawn before it runs, the next message carries the note and the one after does not; lowering the guest withdraws its queued run before it starts; and the last note rides on the member's next message. It is what fails if upstream reshapes what J5 reads from it by SQL. It does not go through the socket.Live testing
Report:
test-reports/j5code-share-4c-prompts.md, Run 5 (a peer agent, on an isolated test server; real turns on Claude Haiku and GPT Luna; a member and a guest in two browser tabs).Verdict: pass on
9b380f8aea(the top of #600) for what was exercised.j5.inbox.listand on the Inbox page before sharing, after sharing and after the agent's next turn. The member answered it from the Inbox.From the earlier runs, on the delivery where the note was a message of its own: the inbox ask was refused in a shared thread and the agent then asked the member in the thread; a queued message was withdrawn when the guest was lowered and never ran. Neither was repeated in Run 5.
Not exercised live: the change note (a guest added, a purpose changed) and the last note when sharing ends, on the single-message delivery; mobile and desktop.
Checklist
noteon each message's author entry); providers unaffected. A client that does not take the note and author line off shows them rawClaude Opus 5.5, Claude Code in J5 Code.
🤖 Generated with Claude Code