Repository navigation
feat(playbooks): use one environment-wide library - #621
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Comment |
|
@bryantderosier, four things from a review of 1. Workspace playbooks are no longer discovered at all. #613 proposed adding the environment library alongside 2. Agents can create playbooks but can't edit them. 3. The live-test rig's playbooks are no longer found. 4. The product definition contradicts the code (
Separately, the branch now conflicts with — Review by Claude Opus 5.5 (Claude Code), on Jackson's behalf |
|
@bryantderosier, a follow-up for your re-test: the live-test setup script ( — Claude Opus 5.5 (Claude Code), on Jackson's behalf |
| if ( | ||
| caller.limits.interactionMode === "plan" || | ||
| (assignment && | ||
| assignment.runtimeModeOverride !== "full-access" && |
There was a problem hiding this comment.
[P3] Check the effective runtime policy before saving shared definitions
This gate accepts a workspace-write persona even when its runtimeModeOverride is approval-required, although agentPersonaRuntime.ts:64-67 uses the override in place of the declared authority at runtime. For non-persona callers, the gate also never inspects caller.limits.runtimeMode. On Claude the existing MCP wildcard preapproves the tool, so this new environment-write path can save without the approval selected for the thread. Please base the decision on the effective runtime policy and explicitly gate or request approval for approval-required saves, with tests for an overridden writing persona and a non-persona approval-required caller. This is a low-severity source-level finding; live agent reproduction was not performed.
There was a problem hiding this comment.
I'm going to leave this one for now. It only matters for a persona that declares workspace-write but has an approval-required override, or a non-persona thread in approval-required mode. Worst case, an agent saves or edits a playbook in the library, and you can see, rename or delete that in Settings. Not worth more policy code for an edge that narrow. If it shows up in practice I'll change the gate to read the effective runtime mode.
…brary ones Workspace .j5/playbooks/ discovery is back alongside the environment library and configured folders, with a project's own definition winning inside it. Settings gets one Project menu that adds a project's playbooks to the list. Copying a playbook names the copy in a dialog instead of window.prompt, which Electron doesn't support. j5_playbook_read now returns the definition's source and digest, and j5_playbook_save replaces a library definition only when given that digest. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ae5237d to
40ece38
Compare
|
@bryantderosier, I re-reviewed at
The branch rebases cleanly, and CI is green on the head commit. Mobile now has Copy to environment too. What's left is the PR description, which still describes the environment-only version:
— Review by Claude Opus 5.5 (Claude Code), on Jackson's behalf |
J5's user guides (personas, playbooks, skills, artifacts, agent messages, peering, release-archive migration) lived in upstream's docs/user/, and its persona-library and mobile-distribution guides in docs/operations/. They now live in docs/j5/user/ and docs/j5/runbooks/, and every link to them follows. AGENTS.md and the docs/j5 process rules say where J5 user guides go. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@Jacksondr5 thanks for the second pass. I rewrote the description so it matches what the branch does now: the library plus I also re-ran the live test at The import video isn't in yet. I'll drag it into a comment so it plays inline instead of linking a blob. One more thing on the branch, |
Jacksondr5
left a comment
There was a problem hiding this comment.
Approving at 88708dc34a. All four review items are fixed, the description and evidence match the branch, and your Haiku live test covered the digest edit, the stale-digest refusal, and the workspace override across a restart. Jackson confirmed the docs move was his request and is fine with it as is. CI is green and the branch merges cleanly.
— Review by Claude Opus 5.5 (Claude Code), on Jackson's behalf
…laybook-library # Conflicts: # FORK.md
…laybook-library # Conflicts: # FORK.md
…ners change them Jackson's rule after #621. A narrowed person who holds Collaborator anywhere reads, exports and follows the library; a thread's runs stay readable at Viewer on the thread; every run on the server is a server-scope read. Saving, renaming, deleting, choosing folders and reading the library's folders now need settings:write, which only an Owner's level holds, on the server and in the client's guard alike, so a server-scope Collaborator is refused them too. People and access moves Playbooks out of the project's scope (the scope table, AC20, AC22) and FORK says the same. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cope, and several people work with one agent (#638) * feat(j5): levels and their permissions, and migration 039 onto them Co-Authored-By: Claude Opus 5.5 <[email protected]> * wip(j5): access core on levels: person access, renewal, gate, admission Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(j5): the access core's behaviour on levels Co-Authored-By: Claude Opus 5.5 <[email protected]> * wip(j5): renewal at startup, CLI revoke ends renewal, tests on levels Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(web): a session J5 ended for a change of level renews, and the page reloads once Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): a saved server's bearer session renews after a change of level Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): a narrowed person is listed the scheduled tasks and pages of what they reach Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(j5): lint fixes in the access core Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): FORK cases 37, 69, 70, 78 and 79, D33's service sessions, and the definition edits of the plan review Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): the wire for people, links and shared conversations, fixed for the web client to build against Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(j5): the narrowed view's comments speak of people and levels Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): a device pairs and its person's level changes one after the other, never between Reads the credential's intent and its person's level, checks them, issues and binds in one transaction, which holds the write lock from its start; a level change waits for it or goes first. A J5 link's credential with no intent pairs nothing, and a device that took everything its credential carried follows its level (review items 1, 5a, 15). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): removing a person revokes the links still waiting to pair their devices, in the same transaction (review item 5b) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): an MCP approval not yet issued is void once an Owner is lowered or removed (review item 2) The approval records how many times the Owners have changed; its session is issued only while that is unchanged, under the same lock as a change of level. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): a narrowed person is told an agent's name only for an agent they may know (review item 3) Its own thread is one they reach, or it sent a message to an agent whose thread they reach; any other comes back unknown, since an agent's name is its thread's title. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): the server does not start when it cannot renew devices into their level (review item 4) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): migration 039 leaves machine senders' sessions unbound (review item 6) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): a Viewer reads only the resource an MCP app in their thread was published with (review item 7) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): Viewers are told skills by name, and only Owners install from a catalog (review item 8) A server-scope Viewer is told every provider's skills, a project's Viewer the skills in its own folders, each by name and description with no path. Catalog install and update need Manage providers, which only an Owner's level gives. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): a Collaborator changes the scheduled tasks and Playbooks where they write (review item 9) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): a Viewer is listed a thread's preview tabs and does not watch them, for now (review item 10) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): a person's name holds no angle brackets (review item 11, People and access AC45) Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): the wire carries where a level is held, the stored prefix to strip, and its change signals (review item 12) Registers the access and people streams and the author list's change signal in the client's subscriptions, and guards the four commands on a connection's own place at read. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(j5): the scope roster says where each level is held Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): a hook inside every change of access, for recording that a thread gained a writer (review item 13) Also lands the test of an MCP approval voided by an Owner's change, which a reflowed anchor had dropped from item 2's commit. Co-Authored-By: Claude Opus 5.5 <[email protected]> * perf(j5): the first owner's and service sessions are told by subject, and admission reads whose a socket is once (review item 14) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): a Connections link whose maker cannot be recorded is revoked before the request fails (review item 16) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): the renewal watcher tries once more on the next refused phase (review item 17) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): renewal refuses a foreign origin by upstream's named message, not a copy of it (review item 18) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): FORK cases 69 and 70 name every group, stream and MCP edit; Fleet leaves removed people out (review item 19) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): FORK's path table lists McpOAuth.ts Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): a credential upstream took before its person was removed pairs nothing (re-check item 1) A removed person's pairing intents stay, so the issuer finds the credential was theirs and refuses it, rather than taking the device for one no one has claimed. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): an MCP sign-in is refused its session for an approval's life after an Owner is lowered (re-check item 2) Replaces the approval count recorded in McpOAuth.ts, whose read after validation could miss a lowering, with Opus's rule in J5's own decorator: no upstream edit, under the lock of a change of level. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(j5): hoist the auth error check Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): removing a person reads whether they are an Owner inside its transaction (re-check item 3) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): a scheduled task upsert addressed by its command is checked as that task (re-check item 4) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): the write hook runs for a claimed device, a rename and a removal too (re-check item 5) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): the inbox is the connection's own person's, and no request names one (re-check item 6) The three inbox requests lose their personId; the server takes the person from the session, and the web client stops sending it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): FORK case 78 says how admission is built now, and the gate says what it costs (re-check item 7) Also moves the origin message export above upstream's docblock, which stays on its function. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): the startup link's and desktop app's devices are bound to the first owner as they are issued (live test finding 2) Every list of devices then finds them. The subject still decides for the development credential, which upstream never stores, and for sessions from before. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): a device whose session was ended for good is sent to pair, not left on the old screen (live test finding 1) Renewal now says whether it renewed, found the session live, or refused it. A refusal reloads the page, and upstream's sign-in gate finds no session and sends the browser to pair. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): an MCP approval checked before an Owner was lowered is refused, however soon after the check the change lands (MCP window) The cooldown measured from the Owner change, so an approval checked just before it and minted just after could be exchanged once the cooldown ran out. J5 now decorates upstream's McpOAuth without editing it: approve reads which change of Owners it is, under the level-change lock, before upstream checks the approval, and ties it to the code in the redirect; the exchange gives it to the issue, which refuses under the same lock if the Owners changed. The cooldown is gone. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): one kind of link, and the people requests an Owner makes (People and access AC31 to AC43, AC26, AC49 to AC51) Migration 040 keeps a link's token so an Owner can copy it again. A device link adds a device for someone already on the server; an invite makes its person when used, at its scope and level, and for many at Viewer only. The describe and join routes refuse a browser paired as someone else, or as the link's own person, before anything is written, and answer every link that does not work alike. The j5.people requests are built over Access, and removing a person revokes their unused links in its transaction. A's interim adapter is kept as LegacyPeople until the web client moves off the old sharing requests. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): j5 pair and j5 auth pairing create name the person a device is for (D36, People and access AC4) Both commands refuse without --person and list the people on the server. A name that matches someone makes the link for them at their levels; a new name needs --level, with --project or --thread for a narrower scope, and the person, their level and the link commit together. Upstream's --scope keeps its meaning and becomes the device's ceiling. Each command says which it did. The upstream edit is a flag spread and one call in cli/pair.ts and cli/auth.ts (FORK.md case 79). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): the live-test rig pairs a named person, and guest adds one with j5 pair --person The rig ran a bare pair for the owner's URL and added guests over the old sharing requests; D36 refuses the one, and the other is going. The owner's URL now names the owner the home was built with, and a --fresh home, whose owner has no name yet, gives the server's startup link. guest runs pair --person with --level viewer|collaborator and --thread or --project, which adds the person and makes their link. The owner client is gone. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): guest says why pair refused a person, from the line the CLI logs it on Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): an Owner marks the retired-links notice seen, once for every browser j5.access.markRetiredLinksSeen records per person that the notice of 039, that links made before levels stopped working, was seen; retiredLinks then reads null for that person. It is guarded for clients like the other requests about a connection's own place (approved by the orchestrator as the one wire addition). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): a link that does not work says it may have been used, expired or revoked Still one answer for every such link (AC42), now naming the likely reasons, so someone whose link was spent by an abandoned pairing knows to ask again. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(j5): marking the retired-links notice seen is a command on the connection's own place Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): a bare j5 auth pairing create makes a link for a device the server asks about (D36, AC4, provisional) Upstream's desktop app runs auth pairing create on a host it reaches over SSH, and knows no one's name there; refusing it broke that connection. Now, without --person, the command makes upstream's own link with upstream's permissions and records no person, so the device that pairs answers AC5's name question before it can use anything. j5 pair still refuses without --person. Upstream's auth pairing create test is upstream's again. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): D36 and AC4 say what each pairing command does without --person, and no guide runs a bare j5 pair D36 and People and access AC4: j5 pair refuses without --person, and a bare auth pairing create pairs a device the server asks about (provisional, for Jackson). AGENTS.md, the test-t3-app skill and the user guides for remote access and the welcome wizard name a person; the live-test skill's guest takes the new level names. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(j5): the startup link's and the desktop app's devices are listed under the first owner, and end Paired through upstream's own exchange, composed as the server composes it, both appear on the People page under the first owner and an Owner ends them (review item 4). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): revoking a link stops a join already under way (review item 1) A join mints upstream's credential, which stayed usable for its five minutes after the link was revoked, and an exchange already begun still issued its session: an Owner's device link, revoked, could still pair a device with Manage access. Revoking now also revokes the credentials its joins are waiting on, in the same transaction, and the issue of a session refuses a credential whose J5 link was revoked, in the issue's own transaction, so one upstream already took pairs nothing either. A link the join spent still pairs its device, and no one who already joined is removed (AC39). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): only an Owner is told where someone's level on a scope is held (review item 2) The roster of who reaches a thread or project gave everyone each person's levels with where they are held, so a Viewer of one thread learned the id and title of a thread above it that was never shared with them. Anyone but an Owner is now told names and levels, with no via; the wire's comment says so. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): a device waiting to renew is listed under its person, and an Owner can end it (review item 3) A lowered device's session is ended so it can renew, and its binding kept, so it was in neither the People page nor Connections and could not be ended before it came back. Its person's list now shows it, from the session upstream stored, as not connected, and ending it cuts the binding, so it never renews. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): the CLI keeps --scope as a ceiling only when it was given, and refuses a link that gives nothing (review items 5 to 8) Whether a device has a ceiling was decided by comparing --scope with upstream's default, which breaks the day upstream reshapes it; both pairing commands now take --scope through J5's copy of upstream's flag, which also says whether it was given. A --scope wholly outside the person's level minted a link with no permissions and said it made one; it is refused. The link and the record of whose it is share one database client and commit together, and a test shows a link whose record fails is not left behind. FORK case 79 says a person the CLI adds reaches an open People page only when it next reads. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): the wire says a link's person is a device link's, and an invite has none (review note) Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): a person's message in a shared conversation reaches the agent under their name and level Ported from the closed collaborate stack onto levels: the author's line, the note at the top of the next message with its carrier rule, the launch wrap, the answer line and the answer claims read against upstream's log, and the withdrawal of a person's queued messages when they can no longer write. A thread is shared once more than one person can write to it, recorded by the access core's write hook and at admission, and stays so. A command goes as typed from anyone. Only the platform sends a context record of its own kind. Migrations 041 and 042. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): an agent asks someone who can write to its thread, or everyone here, and the first reply closes it An agent's address book lists the people who can write to its thread, and everyone here once the thread is shared; an ask to anyone else is refused. A person's inbox holds the asks to them and to everyone here whose asking agent's thread they can write to when it is read, so a Viewer has none. The first reply to an ask to everyone claims it, a later one is refused naming who answered, and the others' Replied shelf names them. A Crew's failure alert asks everyone here on a shared Captain's thread. A Captain whose thread is shared is told who decided its roster. Inbox AC14 to AC16, Crews AC23, Shared conversations AC11. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): a Crew's requests and a person's inbox reach the people who write to it, narrowed or not The inbox, a Crew's rosters, further seats and seat approvals are opened to narrowed people, each handler answering for the person on the connection alone: a Crew's requests are listed to, and answered or stopped by, whoever can write to its Captain's thread, and who answered a seat's approval from the inbox is kept for its prompt. A person's reply from the inbox reaches the agent under their name, and their level in a shared conversation (envelope version 27). Crews AC23, Inbox AC14, Shared conversations AC11 and AC13. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): every agent's standing instructions name the server's Owners The J5 instructions upstream's constant carries are a live binding the server sets when the Owners change, read by Codex at each turn, by Claude when its session starts and by Cursor on a thread's first run; Pi bakes its text in and is not told. The instructions also tell an agent it may ask everyone here. Shared conversations AC9. FORK case 8 records the re-export and the package export, case 78 the socket's J5 services. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(j5): the J5 server tests seed the first owner's level, and read upstream's tables where an ask now does Who an agent may ask is read from the levels covering its thread, so a test that records a person as the first owner gives them the Owner level the server gives them at startup, and runs upstream's migrations for the thread projection. The note also tells the agent that a message from another agent, a scheduled task or the platform was typed by no one here. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): who answered a question says exactly what to strip from the answer PromptAnswer gains storedPrefix, the answer line the platform put on a question's answer with its trailing space, or "" for an answer with none, as MessageAuthor's does for a message. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(j5): a person the CLI makes a Collaborator marks the threads they now write to as shared The CLI builds its own access core, with the shared-thread write hook installed, so the record is written in the CLI's own transaction; the running server never hears of the change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(web): the client reads a connection's person and levels, and a thread's menu follows them The web client asks the server what its connection is (j5.access.getConnectionAccess) and the level it holds over each thread, and reads both again when people or levels change. A Viewer of a thread gets upstream's read-only composer and no Mark unread; someone who is not an Owner loses Archive, Delete and Project settings and gets Leave where they hold a level on the thread itself. A narrow person's client still sends the reads their scope answers, the inbox and Crew requests among them. The guest-era sharing screens this replaces are removed. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(web): Settings is an Owner's, with a short list for everyone else Settings lists only the servers the person owns. Someone who owns no connected server sees Appearance, SnapShots, Open-source licenses and People, from a list of pages shown, so a page upstream adds later is an Owner's; search finds only those, and any other page's address opens Appearance (People and access AC27 to AC29). Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(web): one Share dialog, the People page, and leave and rename for everyone The Share dialog is the same for a thread, a project and the server: who reaches the thing and through which scope, level changes and removal where the level is held, the links in force with Copy and Revoke, and a form that makes a link for one person or for many, or gives someone already on the server more with no link. Raising anyone to writing says what it gives first. The People page picks among servers: everyone with their levels, devices and ceilings, and links on a server the person owns; their own row, with Leave and Rename, on one they do not. The project page loses its Sharing section. (People and access AC34 to AC41, AC46, AC48 to AC51.) Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(web): the name question, the first screen, the wizard and the old-links notice A device the server cannot place, and a first owner with no name, are asked "What should people and agents on <server> call you?" before anything else, with no way to put it off; a device picks from everyone on the server or names someone new (AC5, AC6). The setup wizard is offered only to an Owner of the server the client opened first, by that server's answer, and the browser flag goes (AC30). Someone who reaches less than the server lands on their one thread, a list, or "Nothing is shared with you". An Owner is told once per browser that links made before the upgrade stopped working. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(web): the join page opens the one kind of link The pairing page asks the server what a marked link opens (POST /api/j5/links/describe) and shows the server, the thing and the level; the person confirms or types their name and joins (POST /api/j5/links/join), pairing with the credential it returns. A browser already on the server joins a link for many as itself; a link for one person on a device that is someone else's, or already theirs, is refused and stays usable; a name in use is refused inline; every link that does not work shows one state (AC32, AC33, AC42, AC43). Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(web): a shared conversation shows each person's message as they typed it The timeline reads who sent each message and answered each prompt (j5.sharedConversation), again whenever the server says it changed. A message is shown without the platform's lines at its start, which the server names exactly, and a note it carried becomes a notice before it. Another person's message is upstream's bubble on the left with their initials and name and no level (AC17). A settled prompt says who answered; an inbox reply names its sender; a rewound message comes back as typed. A message whose author the server has not answered for yet is shown as typed here, or held back for the moment, so no line meant for the agent is drawn. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(web): anyone who can write answers a Crew roster, and a Viewer's prompts are disabled A roster can be resolved by anyone whose level lets them write to the Captain's thread, and the launch notice says who decided. A Viewer sees a dismissible question with its dismiss disabled too, as the rest of its controls already were (Shared conversations AC10 to AC12). Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(web): the inbox marks asks for everyone here, names who answered, and keeps an item being answered An ask to everyone who can write to the asking thread is marked so, and the Replied shelf says who answered it ("Priya answered", "You answered"). An item someone has typed into stays in place with their words when it closes, saying who answered or that it is no longer open, until they clear it or leave the page (Inbox AC15 to AC17). A server that sends a Viewer no questions says it is not shared with them. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): naming someone who already reaches a thing makes a link for one more device Add a person gives someone already on the server the level with no link only when it is more than they reach the thing with (AC35); otherwise it makes a link that pairs one more device as them, the way a person's further device is added (People and access, Links). Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(user): people and sharing What the levels mean, how to share and make links, People, the name question, and what changes for someone who is not an Owner. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): Leave thread carries no icon the web menu cannot draw Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): FORK cases 71 to 73 say how the web client is built now, and case 80 records the shared conversation's timeline Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): a client connected to no server keeps all of Settings Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(web): a question's answer can be shown without the server's mark, and FORK case 80 gives its exact size The timeline wires it in once PromptAnswer.storedPrefix lands. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): a join refused for want of a name asks for one The join route answers 400 invalid_request when a name is needed and none was sent, as for a browser joining a link for many as itself that turns out to be no one's; the page then shows the name field. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): a join whose pairing is refused shows the link does not work A link revoked between the join and the pairing it allowed is refused at pairing; the page then shows the one state for a link that does not work (AC42). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): a chosen-options answer drops the server's mark only when it is the mark exactly Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): no platform text in the queue, on a cold open or in an answer, and no store shared between timelines (review items 1, 2, 14) The queue shows and edits a shared conversation's queued messages as their authors typed them. Until the first read of who wrote what has answered or failed, every thread may be shared, so a server copy waits rather than drawing its lines for the agent. An answer to a question is shown without the server's mark, by PromptAnswer.storedPrefix, the field C adds (copied exactly). Rows, the queue and the rewind read the thread's own record by the thread they are in; only the timeline opens the read and the change feed. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): the name comes before setup, and only a named Owner reaches the wizard (review item 3) Setup is withheld until the primary server says this is its Owner and has their name, so a first owner is asked their name before the wizard can open. The wizard's own address sends anyone else to the first screen, where the name is asked. A failed or missing answer is not an Owner's. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): Settings offers only the projects of servers the person owns (review item 4) The project groups Settings builds, which its scope picker and the project panel both read, keep to owned servers. The Fleet page and the inbox, which name projects from any server, group every server's projects themselves. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): who has a thing shows the level they reach it with and where, and a further-device link stays listed (review items 5, 6) Each row says the level a person reaches the thing with and, when a wider scope gives it, that scope; a level held on the thing itself keeps its own control, marked "here" when something wider outranks it, and is the only one changed here (AC26, AC36). A further-device link is listed under its person with Copy and Revoke, in the Share dialog and the thread's People section alike (AC41). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): the security reviews of shared conversations (Fable C1 to C3, Astra 1 to 3 and 6) - A message id is its sender's own: a send naming one recorded for someone else, or one upstream holds that is no one's here, is refused; a retry of one's own send goes on (Fable C1). - An edit of a queued message no person is recorded for is stamped too: as the first owner's, edited by the editor, when they typed it before the thread was shared, else as the editor's own words. An edit never reaches the agent without the platform's front (Astra 1, Fable C2). - A carrier has told the agent only once its run has started; a queued, preparing or starting run, or no run, has not, so the next message carries the note again (Astra 2). - A command id upstream already took makes no answer claim, so an old settled prompt is never credited to whoever replays it (Astra 3). - Access's write hook runs before a change as well, while what the person held is known, so a thread created while a second writer could write stays shared after they lose it; starting a thread, an empty launch included, records it under a scope already shared (Astra 6). - The answer mark goes on the first chosen option's text, not in an option of its own; storedPrefix says so (Fable C3). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): an inbox answer that lost keeps its words, the row stays open, and a withdrawal says so (review item 7) An answer this client is sending keeps its words until the server confirms it; if someone else's answer won, the item stays with the words and who answered. Retention is decided in the render the item closes in, so its open row is not unmounted and drawn again closed. Once the answered asks have been read since it closed and do not hold it, it says the agent withdrew it (Inbox AC17). Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): a message on its way when its author's access ends may still reach the agent (Shared conversations AC16) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): someone who cannot write to a Captain's thread cannot edit its roster's seats (review item 8) Edit, Remove, Add member and the seat dialog follow the same answer as Approve, and an open seat dialog closes when writing is lost (Shared conversations AC12). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): the old-links notice is marked seen on the server, once per Owner (review item 9) Closing it, dismissing it or opening People from it calls j5.access.markRetiredLinksSeen and reads the connection's access again; the browser keeps no record of its own. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): anyone leaves what they hold, an Owner too, whatever their device manages (review item 10) The thread menu offers Leave on a thread the person holds a level on, Owners included, before Archive. On the People page a person's own row has Leave on each level they hold, and an Owner whose device cannot see who has access gets their own row. The first owner leaves nothing (AC48, AC51). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): the join page shows what the server said of a request it could not take (review item 11) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(user): sharing is not on mobile, and a phone is paired again after a change of level (review item 15) Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(web): an inbox reply's named header is read in the exact form the server writes (review item 16) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): FORK cases 72, 73 and 80 record the review fixes' upstream edits and their sizes Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): a chosen-options answer loses the server's mark from the start of its first option C writes the mark on the first option's text rather than as an option of its own; the answer is stripped by PromptAnswer.storedPrefix and nothing else, in the work log's preview and the expanded answer alike, which both read the entries the shared-conversation hook returns. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): a name holds no level in parentheses, so two people never speak as one (review C1) The author's line removed a parenthesised level word from a name, so "Pat" and "Pat (owner)" both reached the agent as Pat (collaborator). The name rule now refuses a name holding "(owner)", "(collaborator)" or "(viewer)" wherever a name is given or changed, and the line carries the stored name as it is. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): the code reviews of shared conversations and the inbox (review C2 to C11) - What the agent was last told is the carrier whose run started last, not the one sent last. - Each turn's runtime policy reads the Owners just before a provider reads the instructions, so a change made by the CLI in its own process is named too. - A Viewer of a Captain is listed its rosters and their outcome, and previews them; deciding still takes write. - A seat's approval is listed to, and answered by, whoever writes to the seat's thread. - A reply from the inbox in a shared conversation is recorded as it is accepted, with the name and level then and any note due, and is delivered with them. - The note: earlier messages "that carry no header of their own", a message from an agent, a scheduled task or the platform "was not sent by a person in this conversation", and the edited-by form explained. - Archiving a Crew is an Owner's, as archiving a thread is. - On a server one person uses, whether a thread is shared is one read; an inbox list reads whether its person writes everywhere once. - The prompt-stream watcher pauses before each resumption, so it cannot spin. - The retry comment says exactly which retries pass. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): an inbox reply in a shared conversation reads as its author's words, and the name rule names levels The server records a person's inbox reply in a shared conversation as an authored message whose stored prefix is the note and the named header. The timeline strips that prefix, as for any message, and the platform's closing sentence after the words, and another person's reply is their bubble on the left, marked "via Inbox". The name hint now says a level in parentheses is not part of a name, as isPersonName will refuse it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): an inbox reply in a shared conversation keeps its envelope for the inbox card The server now records an inbox reply's stored prefix as the note alone, so the timeline strips that and hands the reply's envelope to the inbox card as before; the special case for a reply without its header goes. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): a shared thread's queue shows nothing until its record has been read (final round item 2) While the thread's record of who wrote what has neither answered nor failed, the queue shows no server rows, as the timeline holds a message back, so no line meant for the agent is shown or loaded into the composer. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): an inbox reply strips to its note alone, and the note says plainly where unlined messages come from A reply's recorded prefix is the note and its line break, so a client draws the reply's envelope as the inbox reply it is. The note folds what it says of messages without an author's line into one sentence that holds wherever a scheduled task or earlier messages are, and shows the line's forms with placeholders rather than names. Co-Authored-By: Claude Opus 5.5 <[email protected]> * refactor(j5): the old sharing requests go, now that j5.access and j5.people replace each one J5SharingRpcGroup, its handlers, the interim People adapter that served them, their client guards, the gate's rows for them, and their registrations in contracts/rpc.ts and client-runtime's subscription tag (FORK case 69). contracts/j5/sharing.ts keeps only the rule for a person's name, the lifetimes a link can have, and the mark on a link's address. The web client's old sharing screens still import these: this lands with D's rebuild of them, not before. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): the join page starts again for a link opened in a tab already on it, and a name ending in a stop ends the sentence (browser pass) Opening another link in a tab already on the pairing page changes only the address's fragment, which loads nothing, so the page kept the last link's state. It now starts again for each new token. The made-link line no longer reads "Send it to Marco R..". Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): in the thread's narrow People section a level wraps under the name instead of squeezing it (browser pass) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): a person whose queued message someone else edited is told so above their own bubble (browser pass) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): an inbox item kept after someone else answered it no longer says how long it has been open (browser pass) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): a device paired with every permission is no longer badged limited on the People page (browser pass) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): on the People page each level a person holds names what it reaches beside its control (browser pass) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): a person is not told to pair again, and only someone who can install provider updates is told of them J5 sets and renews a person's permissions from their level, so upstream's legacy-permissions notice never applies to a connection J5 places. The provider updates notice offered nothing to a connection without Manage providers. Both are quieted from J5-owned code, one import and one or two lines in each upstream file (FORK case 73). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): Settings no longer shows an Owner's sections to someone else while it starts Until the catalog lists a server and one says the person owns it, Settings shows the list it shows anyone, and an Owner's page waits rather than sending them away. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): Settings shows a page while its server is still being asked, and a server that cannot answer counts as before 7b306bbb2c held every Settings page back while the answer was loading, which left a client whose catalog lists no server, or a server that never answers, on a blank page (settingsScopeRetention.test.tsx). Only an answer now sends someone away; loading changes the list alone. A server that settles with no answer, one from before people, holds the client to nothing again, and only one still being asked is unknown. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): a note steered into a running turn is told again with the next message A carrier counted as having told the agent once its run had started, but a steered message is recorded against the run it was steered into, which had started whether or not the provider took the steer. A carrier now counts only when it is the message its run was started for. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): an ask to someone who can no longer write to the agent's thread ends, and the agent is told When a person is removed, lowered or leaves, the access-change subscriber that withdraws their queued messages now also ends their open personal asks on threads they can no longer write to, as dropped with the receiver retired, and tells each asking agent. Asks to everyone here are left. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(j5): a person a link brings in as a Collaborator makes the thread shared as they join Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(web): someone who manages no access sees who reaches each project they reach, on People (AC26) Read-only, from the project's own list (listScopePeople), for each project they hold and every project when they hold the server. Changes, links and devices stay an Owner's. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(web): the filter that keeps upstream's pair-again notice from a person is tested as it runs Co-Authored-By: Claude Opus 5.5 <[email protected]> * refactor(j5): the people model's words replace a guest's in the pairing refusal, the composer's comments and isNarrow Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): FORK lists every upstream path the people model edits, and D33 and D36 say what they carry Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): a project's Collaborator can start a thread in it (People and access AC14) A draft is no thread on the server, so its thread level was always none and the composer said the person could only read. A draft now takes the level the person holds over its project, from the project or the server; a level on one of the project's threads still starts nothing there. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): a narrow person's new thread shows their message as typed and who reaches it at once The draft keeps the id its thread will have, and the server refuses a narrow person reads for a thread it does not have yet, so the refused author record and roster stayed with the thread after it was created: the platform's note was drawn in the person's own bubble until a reload. They are read again when the thread is first listed. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): FORK's ChatView row names case 80 Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): FORK's timeline and queue rows name case 80 Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): a new thread's composer stays writable for its project's Collaborator once the thread exists The server's answer of a thread's level is sent again only when people or levels change. The client asked it for the draft's id before the thread existed, got none, and kept that answer for the thread, so the composer went back to saying the person could only read until an unrelated change of access. A thread's level is now never taken as less than its project's, for a draft and a listed thread alike. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): the thread menu reads a thread's level by the composer's rule Both of the menu's reads took the thread level stream alone, so a thread that was a draft a moment ago kept the answer the server gave its draft id and the menu held its project's Collaborator back. They now read the thread's level never below its project's, as the composer and the details panel do. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): a non-Owner's People page shows who reaches their projects Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): a change of Owners refuses an MCP approval still waiting, and no longer ends every MCP client Jackson's review of #638: only an Owner approves an MCP client, but lowering or removing an Owner no longer revokes every MCP client session. The change still voids approvals not yet exchanged; ending only the clients the lowered Owner approved is Later (#639). An MCP client holds no person's level, so the docs no longer say a change of level makes it pair again. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): isServiceSubject says a change of Owners refuses a waiting MCP approval, not every client Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): the sharing UI draws its buttons as upstream's own surfaces do Upstream's Settings rows give secondary actions an icon with a tooltip, its setup wizard ends Continue with an arrow, its thread details sections head with an icon action, and it revokes with destructive-outline. The Share dialog, the People page, the thread's People section, the join page and the name dialog now do the same. Presentation only; every icon-only button keeps an accessible name. Co-Authored-By: Claude Opus 5.5 <[email protected]> * revert(j5): the Owners line is dropped from every agent's standing instructions It reached Codex at each turn, Claude only when its session starts, and no other provider, while the shared conversation's note already names everyone who can write, Owners included. The J5 instructions are a constant again, upstream's provider-core file and exports are back to how they were before it, and FORK case 8 says so. Shared conversations drops AC9 and renumbers what follows (former AC10 to AC20 are now AC9 to AC19), with every reference in code, FORK and docs. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): everyone here is offered and taken only while more than one person can write to the thread An agent's address book lists everyone here only when its thread has two or more writers now, not whenever it was once shared, and an ask to everyone here from a thread one person can write to is refused, naming that person to ask instead. A Crew's failure alert follows the same rule. The definitions say so in place (Inbox AC15, Shared conversations AC13). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): People says it is reading while a renewed session reloads, not to connect a server A client lists no server for a moment while it starts, as it does when a change of level renews the session and reloads the page. People now says it is reading, and asks to connect a server only when the client has no server of its own and the list has been read. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): the live-test rig's guest reaches every person and device state (#638) Testers edited the test database to fake an unknown device and minted an Owner by hand, because guest could not reach either. guest now takes --server, --project or --thread and --level viewer|collaborator|owner, Owner at the server only, refused in the server's words. guest "<name>" for someone already on the server makes a link for another device, as j5 pair --person does, and adds someone new only when pair refuses the name with its own tag, PairingPersonUnknownError. guest --unknown wraps a bare j5 auth pairing create, a device that names itself on first open (D36), on the same address pair's links open on. The output says which case it made, and the skill says how to reach each instead of editing the test database. guest also runs on a --fresh home: it refused there by build mode, even once the owner had named themselves. A fresh home has no test project, so a new person there needs a scope. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): Bryant's review of #638: T3 Connect, task webhooks, dropped changes, old members - T3 Connect's sessions are the first owner's (subject cloud-connect, which upstream mints only for the server's linked cloud account), bound as they are issued; tests that used it as an unclaimed device now use one-time-token. - A scheduled task keeps its webhook only for someone who writes where the task is at home, not for a Collaborator anywhere. - Access changes go through an unbounded PubSub, so a burst drops nothing. Withdrawal and ending asks stay after commit: withdrawal dispatches orchestration commands, which cannot run inside the access transaction. - Migration 039 makes every member a server Owner, the ledger people migration 006 recorded included. - The live-cut feed test waits for the feed to open before the level goes. - FORK's count is 81 entries. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): Playbooks are the server's: anyone who writes uses them, Owners change them Jackson's rule after #621. A narrowed person who holds Collaborator anywhere reads, exports and follows the library; a thread's runs stay readable at Viewer on the thread; every run on the server is a server-scope read. Saving, renaming, deleting, choosing folders and reading the library's folders now need settings:write, which only an Owner's level holds, on the server and in the client's guard alike, so a server-scope Collaborator is refused them too. People and access moves Playbooks out of the project's scope (the scope table, AC20, AC22) and FORK says the same. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): the People count stays on one line beside the server picker Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): a narrowed connection is told the server keeps J5's ledger, so a Viewer sees a thread's Playbook runs The reduced descriptor a narrowed connection gets kept only repositoryIdentity. Without j5ProjectLedger the client takes the server to have no J5 ledger and asks nothing J5 reads by thread or project: a thread's Playbook stages stayed empty for its Viewer, and a narrow Collaborator's inbox and Crew asks were treated as unsupported. The flag says nothing of the host, so it is passed through. Co-Authored-By: Claude Opus 5.5 <[email protected]> * refactor(web): the Fleet's Playbook runs name a narrow connection as the people model does Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): the mobile app is paired again after a change of level, and confirmed decisions say so Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(j5): people and sharing is a J5 user doc, and upstream's guides are upstream's again J5's user docs live in docs/j5/user/, and docs/user/ is upstream's. The people and sharing guide moves there, with a section for pairing a named person's device from the terminal, which upstream's remote access and welcome wizard guides had been edited to say; those edits are reverted. The docs index links the guide where it lives now. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): a scheduled task's run in a shared conversation names who scheduled it A Collaborator could schedule a task on a shared thread and its runs reached the agent with no author line. Who scheduled a task is now recorded as a person saves it: whoever creates it, or whoever changes its prompt. On a shared conversation its runs begin with "[Scheduled by <name> (<level>)]", by their name and level as it runs, recorded like a person's message so the web client strips it for display. A task no person set the prompt of (an agent's, or one from before) runs with no line, and the note says so. When the scheduler can no longer write there, the run is not sent: it fails with the reason as its run error in the task list, and each later run fails the same way until someone who can write changes the prompt and takes it over. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(j5): changing a Persona is an Owner's, as any setting is Jackson's ruling for #638. Every Persona write, and the reads of the files a Persona is imported from, now need settings:write, which only an Owner's level holds, on the server and in the client's guard, so a server-scope Collaborator is refused them. The catalog and reads are unchanged. People and access AC20 says so, and that a Collaborator's agent can still save a Playbook through its own tool, as it can change files. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): an Owner's Settings page reached by a link says it is coming soon instead of going nowhere A thread's "Manage scheduled tasks" sent someone who owns no server to a Settings page that is not theirs: by the link it showed an unavailable environment, by its address it bounced to Appearance. The gate now shows a notice in its place, naming the server and, for someone who can write to a thread, that they can ask an agent. The gate wraps upstream's scope boundary in routes/settings.tsx, which answered first for a server the person does not own. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): the coming-soon page names the server its link is for and drops a scope line that named none The notice sat under upstream's "Applying settings for … on Unavailable environment", which names servers the person does not own. It is now drawn without that line. It names the server the link carries, such as a thread's on another server, and the primary server otherwise. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(j5): the inbox's Crew questions from #669 reach the people who write to the seat's thread Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
Playbooks were tied to the project or thread workspace they lived in, so a workflow you wanted everywhere had to be copied into every repo. Now new definitions go into one environment-wide library that every project and worktree on that server can see. A project's own
.j5/playbooks/still works and wins over a same-named library one inside that project. Closes #613.Agents can edit library playbooks too.
j5_playbook_readreturns the definition'ssourceand adigest, andj5_playbook_savewithexpectedDigestreplaces a library definition only if it hasn't changed since the agent read it. Otherwise it fails withstale_digest. Without a digest, save never overwrites an existing name. Workspace playbooks are still edited in their own file.Settings > Playbooks uses the same environment picker as Personas, plus a Project menu that shows what a given project sees, including its workspace overrides. Import, step details, rename, and Copy to environment / Copy to library all open dialogs (no
window.prompt, which Electron doesn't support). Mobile has the same library, Copy to environment included.I also moved J5's own docs out of upstream's folders, since this PR rewrites two of them anyway. The user guides (personas, playbooks, skills, artifacts, agent messages, peering, release-archive migration) went from
docs/user/todocs/j5/user/. The persona-library and mobile-distribution guides went fromdocs/operations/todocs/j5/runbooks/. All the links to them were updated, andAGENTS.mdanddocs/j5/process/docs.mdnow say J5 user guides go indocs/j5/user/. @Jacksondr5 that's a change to your docs rule, so shout if you'd rather keep them where they were.Evidence
UI changes
release-checkoverrides the library copy in its projectCaptured at
40ece38f20at 1280×800 on the live-test rig's synthetic projects. The before shot is the PR basea2ab050af2(j5/main) with the same data.Tests
238 focused tests pass across 22 files at the head. The ones that matter most:
PlaybookStore.test.ts: save with a matchingexpectedDigestreplaces a library definition, a stale digest is refused withstale_digest, and save without one never overwrites.PlaybookStore.test.ts,playbookRpc.test.ts,mcp.test.ts: a workspace definition overrides a same-named library one in its own project only, and the library one still shows everywhere else.PlaybookCrewRelay.test.ts: Crews and retries keep their recorded definition path, including.j5/playbooks/paths from before the upgrade.Focused suite
vp test run \ apps/server/src/j5/playbooks \ apps/server/src/j5/a2a/CrewProposalService.test.ts \ apps/server/src/j5/a2a/mcp/tools.test.ts \ apps/server/src/j5/a2a/mcp/handlers.test.ts \ apps/server/src/j5/a2a/mcp/j5ToolPreapproval.test.ts \ apps/server/src/j5/a2a/mcp/codexToolApproval.test.ts \ apps/server/src/mcp/toolkits/worktree/registration.test.ts \ apps/server/src/j5/wsRpc.test.ts \ packages/client-runtime/src/j5/playbooks.test.ts \ packages/contracts/src/j5/playbook.test.ts \ packages/contracts/src/j5/clientRpcPermissions.test.ts \ apps/web/src/j5/playbooks/PlaybookRefresh.test.tsx \ packages/client-runtime/src/j5/state.test.ts \ packages/provider-core/src/j5/playbookInstructions.test.ts \ packages/provider-core/src/j5/orchestrationInstructions.test.ts \ packages/provider-core/src/server/orchestrationInstructions.test.tsCI is green on the head.
Live testing
Pass at
40ece38f20with Claude Haiku on the standardj5-live-testrig (--base a2ab050af2, thenrestart). Every turn was in a new thread, and I checked each one against the session's tool results and the stored files, not the agent's own summary.release-checkplaybook. The agent calledj5_playbook_saveand the file landed inuserdata/playbooks/.j5_playbook_read(sourceenvironment, digest = sha256 of the file) →j5_playbook_savewithexpectedDigest. It kept step IDstestandsummaryand addedrelease-notes.hold.shand renamed the title in Settings. Its save came backstale_digest. It re-read, kept my rename, and saved with the new digest.release-check.yamlin the test repo's.j5/playbooks/, the Settings Project view,@playbook:mentions, and the agent'sj5_playbook_list/j5_playbook_readall show the workspace copy ("Overrides library copy",overridesLibrary: true). A second synthetic project and "Library only" still show the library copy. The rig's owntwo-stepandadd-a-featureare discovered.The head is now
88708dc34a. The only change since the test is the docs move, so I didn't re-test.Two small things I noticed but didn't fix: Rename in Settings reflows the YAML (a long description wraps), and the Project menu goes back to "Library only" every time you open the page.
Report:
artifacts/test-reports/feat-environment-playbook-library.md(J5 artifact).Upstream impact
Everything lives in J5-owned modules. The one upstream-owned code file this changes is
apps/server/src/mcp/toolkits/worktree/registration.test.ts, which lists the J5 tool inventory. Its FORK.md file-table row lists cases 4, 45, and 48. The composer files (ChatComposer.tsx, mobileuse-composer-command-menu.ts) matchj5/mainagain. The docs move edits only links in upstream-owned docs (docs/README.md, andinstall.md,updating.mdandbackground-service.mdindocs/user/), anddocs/user/personas.mdcomes off FORK.md's file table because it's J5's now. No upstream product behavior or provider adapter changes.Not verified: a Codex turn (I only cleared Haiku for live turns), Copy to environment across two environments (the rig has one; I exercised the same dialog through Copy to library), configured source folders, native mobile and Electron, and relay/tunnel connections.
Merge Danger
Door: Two-way for code. A revert leaves behind any definitions saved to
userdata/playbooks/(they just stop being discovered), and Playbook Author instructions that were updated in place.Blast Radius: Playbooks only: discovery, saving, Settings > Playbooks on web and mobile, and the playbook MCP tools.
Workspace playbooks keep working as before, so nobody has to import anything. Running procedures and Crew starts keep the file they recorded. Two library sources with the same name fail visibly rather than one silently winning.
After merge: Update server and clients together, since the playbook RPC contracts changed.
Checklist
FORK.md(case text and file-table row) in this PRdocs/j5/product/upstream.md(n/a, no upstream product change)AGENTS.md)docs/j5/product/and user docs rewritten where this changes themBuilt with GPT-6.1-Sol in the Codex harness, with review follow-ups by Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code