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. Earlier tested head · Earlier stack verification.

Before and after

Before After
Folder before Folder after

December re-review

Current layer commit.

Same-name copy on base and head

I registered the same synthetic Fig team folder in two isolated test homes and attempted the same copy in Settings on both builds.

Base 33cd27718b. Submitting the existing name keeps the dialog open and displays “A library already contains this name. Choose another name.”

Refused same-name copy on base

Head b06f5048d5. The copy succeeds and the library entry displays “Overrides team folder.”

Fig library entry with the visible override label

Original evidence comment.

Historical submission and tests on earlier commits

The following records the original submission. The December re-review section above tracks current evidence.

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.

See the screenshot pair above.

@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 Dec 1, 2026 7:21pm 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.

@Jacksondr5

Copy link
Copy Markdown
Owner
  • Compatibility code (part of the feat(playbooks): assign steps to runtime holders #1088 item): drop the extra Playbook Author text variant that matches only an intermediate merge's text. Keep the trunk matcher.
  • Evidence: the team-folder override pair (copy refused on base; warning and label on head).

@BastiHu
BastiHu force-pushed the feat/playbooks-794-sol-331968a7 branch from 25d0f59 to 99ac588 Compare November 30, 2026 13:48
@BastiHu
BastiHu force-pushed the feat/playbooks-next-integrated-331968a7 branch from a93a9e6 to 11a10ad Compare November 30, 2026 13:48
@BastiHu
BastiHu force-pushed the feat/playbooks-next-integrated-331968a7 branch from 11a10ad to 5620e53 Compare November 30, 2026 13:50
@BastiHu
BastiHu force-pushed the feat/playbooks-794-sol-331968a7 branch from 99ac588 to 09b0de9 Compare November 30, 2026 13:50
@github-actions github-actions Bot added size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). size:L 100-499 effective changed lines (test files excluded in mixed PRs). and removed size:L 100-499 effective changed lines (test files excluded in mixed PRs). size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). labels Nov 30, 2026
@BastiHu
BastiHu force-pushed the feat/playbooks-next-integrated-331968a7 branch from 5620e53 to 33cd277 Compare November 30, 2026 16:15
@BastiHu
BastiHu force-pushed the feat/playbooks-794-sol-331968a7 branch from 09b0de9 to b06f504 Compare November 30, 2026 16:15
@BastiHu

BastiHu commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator Author

Same-name copy on base and head

I registered the same synthetic Fig team folder in two isolated test homes and attempted the same copy in Settings on both builds.

Base 33cd27718b. Submitting the existing name keeps the dialog open and displays “A library already contains this name. Choose another name.”

Refused same-name copy on base

Head b06f5048d5. The copy succeeds and the library entry displays “Overrides team folder.”

Fig library entry with the visible override label

This branch was successfully deployed

1 active deployment
Preview — 9d3126c0 Deployed Dec 1, 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.

2 participants