Skip to content

[Admin Governance] Restore editorless agent authors - #32975

Open
philipperolet wants to merge 6 commits into
mainfrom
pr/922-restore-editorless-agent-authors
Open

philipperolet wants to merge 6 commits into
mainfrom
pr/922-restore-editorless-agent-authors

Conversation

@philipperolet

Copy link
Copy Markdown
Contributor

Description

Related to https://github.com/dust-tt/tasks/issues/9481

Follows #32904.

Removing author-based permissions exposed active agents with no active editor. For those agents, the current version's author can no longer maintain a configuration they previously owned.

This PR adds a dry-run-by-default backfill that grants the current author an editor grant when the agent is active, the author is still an active workspace member, and nobody currently has an editor grant. Each repair is rechecked under the same lock as live editor changes, making execution safe to rerun without overwriting a concurrent admin repair.

The script uses keyset batches with a resume cursor, logs each affected workspace, agent, and author, refreshes agent search after a repair, and performs a final scan before reporting successful completion. If an eligible agent remains, it fails and asks for another pass from the start.

Risks

Blast radius: Manually running the backfill adds one editor to active agents that currently have no active editor.

Risk: standard

Deploy Plan

  • deploy front
  • run 20260922_restore_editorless_agent_authors.ts without --execute in each production region and inspect the planned grants
  • run it with --execute in one region at a time and save the logs
  • confirm the script reports successful final verification in each region

Test

  • focused migration test covering dry run, repair, exclusion of agents with another editor, and idempotent rerun

@vercel

vercel Bot commented Sep 22, 2026

Copy link
Copy Markdown

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

2 Skipped Deployments
Project Deployment Actions Updated
playground Ignored Ignored Preview Sep 22, 2026 1:44pm UTC
storybook Ignored Ignored Preview Sep 22, 2026 1:44pm UTC

Request Review

@philipperolet
philipperolet force-pushed the pr/922-restore-editorless-agent-authors branch 4 times, most recently from a61e358 to 8e179cf Compare September 22, 2026 13:12
@philipperolet
philipperolet force-pushed the pr/922-restore-editorless-agent-authors branch from 8e179cf to b4d50ec Compare September 22, 2026 13:44
@philipperolet

Copy link
Copy Markdown
Contributor Author

temp closing as we got no support comeback

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant