Skip to content

feat(playbooks): restrict shared saves to Owners and support team overrides - #1093

Open
BastiHu wants to merge 1 commit into
feat/playbooks-next-integrated-331968a7from
feat/playbooks-794-sol-331968a7
Open

BastiHu wants to merge 1 commit into
feat/playbooks-next-integrated-331968a7from
feat/playbooks-794-sol-331968a7

Conversation

@BastiHu

@BastiHu BastiHu commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #794.

Shared saves use existing attribution for the message that started the turn, including the first Owner’s private turn. Missing attribution refuses the save. Team-folder overrides show their effect and can be removed. The change adds no admission table or checks on later answers, steers or queued edits.

The port passed 83 server and 54 client tests, including the private Owner and missing-attribution cases. Rebased head · Stack verification and outstanding evidence.

Before/after browser captures are ready. Upload to this description is pending GitHub browser sign-in.

Original submission and earlier verification

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.

Before After
Copy a team playbook into the library Copy a team playbook into the library, before Copy a team playbook into the library, after
Confirm the team-folder override new Confirm the team-folder override, after

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Nov 24, 2026 11:01am UTC

Request Review

@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Nov 18, 2026
@github-actions github-actions Bot added the size:L 100-499 effective changed lines (test files excluded in mixed PRs). label Nov 18, 2026
BastiHu pushed a commit that referenced this pull request Nov 18, 2026
@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dae65e9f-d4d1-4362-8c55-5b7957b086db

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

Warning

.coderabbit.config.ts has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

Parsing errors: 1

Error while evaluating .coderabbit.config.ts
Configuration instructions

  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@Jacksondr5

Copy link
Copy Markdown
Owner

Direction for the whole stack, before the full review, is in this comment on #1086. We'll review once the stack is rebased onto j5/main after #1205.

@BastiHu
BastiHu force-pushed the feat/playbooks-next-integrated-331968a7 branch from 7b6f547 to e1aa6ba Compare November 24, 2026 11:00
@BastiHu
BastiHu force-pushed the feat/playbooks-794-sol-331968a7 branch from 79386a8 to 1f343c4 Compare November 24, 2026 11:00
@BastiHu

BastiHu commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator Author

@Jacksondr5, Shared saves use existing attribution for the message that started the turn, including the first Owner’s private turn. Missing attribution refuses the save. Team-folder overrides show their effect and can be removed. The change adds no admission table or checks on later answers, steers or queued edits. The port passed 83 server and 54 client tests, including the private Owner and missing-attribution cases. Commit · Stack-wide response and outstanding evidence.

This branch was successfully deployed

1 active deployment
Preview — 1f343c46 Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants