Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
A collaborator or an agent could edit an Owner's queued message, or answer the agent's question during an Owner's turn, and the turn still passed the Owner check for j5_playbook_save. The check now requires that a settings-write Owner's command wrote the current text, attachments and context of every message in the turn, that no other person's accepted command wrote to those messages, and that every answer or approval feedback given since the turn was requested is an Owner's. Queued edits and runtime answers are claimed at admission in the existing j5_human_message_command table; no schema change. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
An answer or approval feedback now counts against a library save only for the turn its request belongs to, through the request's node. A request whose node names no run still counts from when the turn was asked for, so unknown provenance stays refused. Adds regressions for an earlier turn's collaborator feedback, a request of no known turn, and attachment-only edits of a queued message. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
An Owner's words-only edit of a queued message keeps the attachments and context already there. When an agent had replaced those through its own tools, the Owner's edit matched the current content and the retained fields passed as Owner-authorized. A message that any accepted queued-run.edit without a settings-write Owner's claim has written is now refused, as a non-Owner person's edit already was. A message the Owner sends afresh still authorizes a save. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The fixture ended the first turn with a plain interrupt and then sent the queued message itself. A plain interrupt leaves the queue free to start that message on its own, so the explicit send could find it already running. The fixture now sends Stop (interrupt with holdQueue), which holds the queue in the same command, and asserts the stored run status at each step. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
Direction for the whole stack, before the full review, is in this comment on #1086. We'll review once the stack is rebased onto |
Problem
An agent could save a shared playbook without establishing that the person behind the turn had permission to change the environment library. Teams also could not keep a local library override of a playbook supplied by a configured folder. Closes #794.
What changed
The save tool checks the initiating message against authenticated command admission and the person's current Owner grant. Collaborators can draft playbooks for an Owner. The authoring guidance asks for the full draft and destination to be approved before saving.
An Owner can create a same-name library override after seeing how it affects future team updates. Deleting that copy restores the folder version. Workspace definitions retain priority. Existing library edits still use a digest to catch concurrent changes.
Verification
In an isolated web Settings session, copying a team-folder playbook showed the override warning and then the “Overrides team folder” label. Deleting the copy restored “From source folder.” Focused tests exercised save authorization through MCP and RPC, command admission and thread launch, source precedence, and Playbook Author migration. Native mobile interaction and paid model authoring remain unverified.
At commit 6b6f456, check:changed against the #1091 base passed all 190 tests in 9 files, all 36 affected package typechecks, and the format, lint, Knip, GraphQL, context-budget and React compiler checks.
Stacked on #1091. Implemented by a J5 Crew using GPT-6.2 Sol through Codex.