---
title: "Discussion on \"Your agent's permissions are already code. Nobody is reviewing them.\" | Hashnode"
description: "Discussion on \"Your agent's permissions are already code. Nobody is reviewing them.\". A one-line PR, what it really changed, and the practices I use before giving an AI agent real access."
url: "https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Your agent's permissions are already code. Nobody is reviewing them.](https://vasylduda.hashnode.dev/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them?utm_source=hashnode&utm_medium=feed)

A one-line PR, what it really changed, and the practices I use before giving an AI agent real access.

4d ago · 10 min read · vasylduda.hashnode.dev  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#security](https://hashnode.com/tag/security)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)
-   [#opensource](https://hashnode.com/tag/opensource)

## Written by

[Vasyl Duda](https://hashnode.com/@vasylduda)

@vasylduda

  
[View profile](https://hashnode.com/@vasylduda)

## Responses 9

Markdown supported · ⌘↵ to post

[Paul Pham](https://hashnode.com/@paulpham157)

[3d ago](https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984/comment/6b0265193ce74cba4a0b84cd)

WebFetch sitting next to mcp\_\_postgres in one line is easy to approve on a Friday. Does your scanner also catch it when the two land in separate PRs a week apart?

[Vasyl Duda](https://hashnode.com/@vasylduda)

[2d ago](https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984/comment/6b0265193ce74cba4a0b84cd#reply-6b0314747ee8a69062def063)

Main. The base is the PR's base SHA, so main as of the run, and actions/checkout scans the branch merged into main, not the branch tip. So, the postgres line is there even if the branch is older than it. I reran it with a branch cut before postgres landed, and the WebFetch PR still fails critical with both lines.

It can miss it in two cases. One is if your workflow checks out head.sha instead of the default ref. The other is if postgres merges after the WebFetch PR's last run, because then that check is stale. "Require branches to be up to date" covers the second one.

[Paul Pham](https://hashnode.com/@paulpham157)

[2d ago](https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984/comment/6b0265193ce74cba4a0b84cd#reply-6b03469d16e77190ee482c67)

I hadn't thought of postgres merging after the WebFetch PR's last run. Does the scan also rerun in a merge queue, or is "Require branches to be up to date" the only cover?

[Vasyl Duda](https://hashnode.com/@vasylduda)

[1d ago](https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984/comment/6b0265193ce74cba4a0b84cd#reply-6b0456a7b3f5cb6a7a932a20)

Right now only "Require branches to be up to date". The scan runs in a merge queue only if the workflow has merge\_group in on:, and the action only picked up the base from pull\_request events. So in a queue it scanned the whole commit and failed on old findings too. In the next release I'll change that. Thanks for your contribution.

[Halfcycle](https://hashnode.com/@halfcycle)

[4d ago](https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984/comment/6b0075f2de4755877c9ceeb2)

"The consequence wasn't in the diff" is the line. We see the same shape building Halfcycle in ordinary feature work: a one-line change that is fine on its own and wrong once it meets the rest of the system. On practice 4, does the review\_by date get real attention when it comes round, or does it get waved through like a dependency bump?

[Vasyl Duda](https://hashnode.com/@vasylduda)

[4d ago](https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984/comment/6b0075f2de4755877c9ceeb2#reply-6b0078ad503367469ed45be2)

Not yet: today it’s a convention, and a date on its own does get rubber-stamped. The fix I’m working toward is to fail closed when it lapses, and to make the renewal PR show the capability diff since the last review rather than a one-line date change. Wanna release it over the weekend.

[Vasyl Duda](https://hashnode.com/@vasylduda)

[3d ago](https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984/comment/6b0075f2de4755877c9ceeb2#reply-6b021911c9ee23c42fbc8cf1)

Deployed, thanks for pointing to this
