Skip to content

Automated git backup of Tokens Studio tokens via studio CLI #5154

Description

@pomfrida

Why

The Tokens Studio platform currently has no undo, rollback, or restore functionality — only a read-only version history of releases (version history docs). Designers have already made mistakes that were permanently applied, and since plugin changes push to Studio in real time, errors propagate immediately.

Until the platform ships undo, we need our own safety net outside the platform.

What

Set up a scheduled job that pulls all token sources from Tokens Studio into a git repository, so we get diffs, history, and recovery independent of the platform:

  • studio tokens pull on a schedule (e.g. GitHub Actions cron), committing changes with a timestamped message
  • Authentication via service account token or OIDC (--ci), see service account tokens — prefer OIDC, otherwise store the token in the CI provider's secret store
  • Decide target: dedicated backup repo vs. a directory in this monorepo (note: .studio.json config model and safety rubric are documented in documentation/agent-instructions/TOKENS_STUDIO.md, added in chore: add tokens studio agent and cli setup #5151)
  • Recovery path documented: how to restore token state in Studio from a given backup commit

Notes

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions