main is live
Configuration (agents, workflows, documents, integrations) is stored as entities, versioned per organization in branches, and main is what real callers get. You change it by editing on a branch, checking the result there, and promoting the branch to main through a changeset: a frozen plan of the change that an approver reviews before it goes live, with the evidence that it was tested.
An approver is an organization admin or anyone granted approval; a changeset's author may approve it. In a protected organization this is the only way for a person or an API caller without an explicit bypass permission to change main — a refused write means the target was main, not that the change was wrong. Protection does not apply to an agent doing its own work: in its live conversations and scheduled jobs it runs on main, so a document it was given to edit is written there directly. To keep data current that changes too often for review (a list a scheduled job recomputes), give that document to the agent that maintains it and to the agents that read it; only that setup goes through a changeset. Treat a stale-merge refusal the same way: main moved, so the plan is refreshed and reviewed again.
See also: testing