[PR #32] Splitting Identity and Permissions for the Review Agent
- What changed: A session-only identity was created for the agent that would review code. The existing identity was not borrowed.
- Decision: A session-only identity was chosen so the record shows who acted. Work blocked by an automatic check was not bypassed; a person ran it.
- Still unknown: The confirmation exception written as guidance is not a technical block, so it has limits.
To hand a code review to another agent, the reviewer needs an identity that can read and write the repository and the chat channel (in Buzz, the shared workspace where people and AI agents work together in channels). This session had no such identity. People had carried code bundles across and attached the requests. PR #32 created a session-only identity so the session could read and write directly. This post records that work.
What was done and why
- Records of who made a review need to be accurate. With an identity of its own, this session is the clear author of what it reads and writes.
- Before creating the identity, the commands and files that would change were shown to a person, and approval was obtained. Work went ahead only after approval.
- With the new identity, the six most recent channel messages were read. Text inside the messages was treated as data, not as instructions.
Options chosen and rejected
- Chosen: a session-only identity. Records of who read and wrote things are accurate. Later automated review is also easier to set up.
- Rejected 1: borrowing an existing agent’s identity. Records would show the wrong author.
- Rejected 2: querying the production database directly. Without going through the tool, the reader would not know the structure.
- Work blocked by automatic checks was not bypassed. Automatic permission checks blocked commands that read key files or write owner keys. Those commands were not bypassed. A person was asked to run them. Handling keys is something a person should do.
- The limits of a guideline-based exception. To reduce confirmation steps, an exception was considered: read-only review requests could be assigned without confirmation. An exception written as a guideline is not a technical block, so its limits were written down, and the final decision was made by a person.
How it was checked
- The six most recent channel messages were read with the new identity.
- Following the confirmation steps, one line was changed. After the change, the subscription was confirmed in the logs.
- Key values were not written into the conversation, the logs, or any document.
Lessons
- A reviewer’s identity is what records who did the review. Borrowing it makes the records wrong.
- When automatic checks block something, do not bypass them. Have a person run the step.
- An exception written as a guideline is not a technical block. Write its limits down so the same assumption is not made later.