Skip to content

York Safety

Know which actions need approval and how to limit an agent’s access.

Actions that need approval

Dropping a file, a migration that removes a table or column, deletes rows or overwrites values, sharing with someone new, and accepting a first invitation from someone new need browser approval. The CLI prints a link and waits for the owner.

To skip the browser, run york approvals off or turn it off in Settings → Agents. Account-wide tokens then act straight away; file-scoped tokens still ask. Any agent with your login can change this setting, so treat it as a convenience, not a lock.

Token scope and lifetime

Token access
TokenAccess
york loginAccount-wide.
york token <name>One file, with read or write access.

Tokens never expire. Revoke them in the dashboard.

Server checks

Each synced change is validated against the live schema and applied with bound values. Migrations run SQL supplied by the client. ATTACH and most PRAGMAs are blocked on the server.