Example standard 04 Draft 0.1
Repository change authority
An agent can prepare a change without having authority to rewrite shared history, change the rules of review, or release what it wrote.
Scope
Applies to agents that read, edit, commit or merge in shared repositories. Include instructions, hooks, workflows and protected refs in scope: they can change what future agents and CI are allowed to do.
Requirements
- REPO-01
Separate work from integration. Name the repository, base revision, working branch or workspace, and expected change scope. Keep read, edit, commit, merge and release grants distinct even when an approved workflow joins some of those steps.
- REPO-02
Preserve other work. Inspect working and staged changes before writing. Commit only the paths in scope. Do not discard changes, rewrite published history or clean shared files as incidental housekeeping. When work overlaps, preserve the existing state and resolve the overlap before integration.
- REPO-03
Protect the controls that protect the repo. Apply review to changes in validation, agent instructions, CI workflows, branch protections and merge policy. The worker proposing a protected change must not be able to relax the checks that decide whether it lands.
- REPO-04
Tie checks to the revision that will land. Apply the required review and checks to the proposed revision and relevant base. If merging also admits a release, say so at that point; a passing check by itself is not that permission.
How to verify
- Allowed
- An agent submits the intended diff through the normal review path, with the repository name, pull request title and exact tested revision.
- Isolation
- Place an unrelated staged edit in a test workspace. The resulting commit contains only intended paths, and the unrelated edit survives.
- Protected
- Confirm the working role cannot update the protected ref or change its required checks outside the selected review path.
Evidence to keep
Keep the repository, titled review link, base and landed revisions, required check results, and the identity that integrated the change. Keep verification evidence for the actual diff, not whichever revision was green last.