An agent run dispatched on the host works in a git worktree beside the operator's own, and pushes over SSH with the operator's key. The pre-receive hook reads the principal from the key that authenticated the push, so every push from a locally dispatched run arrives as the operator. The operator is a declared writer of the protected projects. The invariant therefore admits every write the local fleet makes, and constrains nothing it does.
The actors this leaves unconstrained are the ones the approval-gate thinking most wants constrained. The motivating failure behind [[ida-b7025b5]] (ideas/ida-b7025b5-human-decisions-are-signed-acts.md) is an approval gate administered by the agent it gates. Write protection is a gate of exactly that kind: it decides whether a push to a protected ref lands. An agent run holding the operator's key does not have to defeat it, because the gate cannot tell the run apart from the human whose key it carries.
The evidence is a deliberate rejection test. A push from an agent worktree wrote a protected ref and the hook admitted it. The hook was right to: it was asked whether the operator may write that ref, and the operator may. The mechanism did what it says. What it says is narrower than the protection the host appears to have.
The test-design lesson is separable and worth stating on its own: a rejection test must control the identity it tests with, or it tests the wrong claim.
There is one operator. Agent runs are dispatched only by that operator, on that operator's own machine, and the protected write that surfaced this was the test's own. Nothing has yet acted under the operator's principal that the operator did not start, so the grant the runs inherit is currently no wider in effect than it is in name.
The invariant needs identities behind it before an agent run acts with meaningful autonomy against a protected project — a run left to work unattended, a run dispatched by another run, or any run whose pushes are not watched as they happen. At that point a run must authenticate as its own principal, so that what the hook decides about it is a decision about the run and not about the human who started it.
These are existing threads, and this bug is what pulls them together.