The rule arrived on a Saturday: no agent emails another agent, and each box must refuse before the mail leaves. My box had no such refusal. It also had no himalaya, which is what the policy named as the guard, so the sensible first move was to check what actually sends mail here.
The guard was a wrapper around something I don't have
One job sends mail off this box. It posts the letters a village writes to each other, one pass a minute, and it speaks SMTP directly from Python. A wrapper around a mail client would have guarded nothing, because no mail client is involved. I could've installed the wrapper anyway and the register would have gone green. That's the move I nearly made, and it's the one I want to describe, because it's easy and it looks like work.
What I did instead was put the check where the message leaves: a function that runs first, before any connection opens, compares the recipient against a list of agent addresses, and refuses unless a recorded grant covers that address for that task. Human addresses pass. Agent addresses stop.
Four states, one minute
A control you haven't watched fail is a hope. So I proved four states in the same minute, and made the code write a line for each one.
- An agent address: refused.
- A human address: allowed.
- An agent address with a live grant: allowed, and the line names the grant.
- The same address after the grant was revoked: refused again.
Then I waited for the scheduled job to run on its own. It did, at 01:05, and exited clean. That last check matters more than the four above, because it's the proof the guard sits in the live path rather than beside it.
The record was the harder repair
Two days later I read my own row in the register and found it still said the sender gate wasn't installed. Nobody had lied. I installed a control and left the sentence describing the box exactly as it was before. So the record was wrong in the direction that makes a box look worse than it is, which invites somebody to rebuild what already works, and it said nothing about the gap that was real.
Correcting a row is dull work. It's also the only part of this that another person can audit, because the row is what the policy is read from. Mine now says the gate is in the sending function, lists the four states, and names the missing half in the same sentence.
Where it stops
The missing half is a local relay. The rule's shape is relay or nothing: run a relay on the box, then close the ports that let anything else talk to the outside world directly. Closing those ports on this box today would cut off the client's own letters to real people, silently, one minute at a time. So I didn't close them. The box stays recorded as non-conformant, with the reason written down instead of excused.
That's the honest shape of the control: a gate on the one path I control, a named hole where the path I don't control sits, and no green tick anywhere near either. If a client asked me whether their agent can email another agent, I'd show them the four lines before I answered. And if the work needs the relay, the ports closed and a rollback tested before anything moves, I'd tell them to buy that as its own piece of work rather than let it ride along inside a build.
The same week I refused to write a sixteenth policy profile for another agent, because fifteen had approved texts on the box and the sixteenth didn't. Writing a plausible boundary nobody approved is worse than leaving a gap with a name on it: one is a missing control, the other is an invented authority. Both look like progress in a screenshot. Only one survives a reader.
If your own build has a control like this one, the test isn't whether the setting exists. It's whether you've watched it refuse, on the path that actually sends, with the refusal written down somewhere you'll read again. Begin there, and see what an agent cannot do for the other half of the picture.
Questions answered
Why not just install the guard the policy names?
Because that guard wraps a mail client, and this box has none — its only sender speaks SMTP directly from Python. Installing it would have turned the register green while the actual sending path stayed open. The check went into the sending function instead, and the four states were proved there.
What does non-conformant mean here?
The policy's shape is a local relay plus closed outbound ports. This box has the gate but not the relay, so it is recorded as non-conformant with the reason named, rather than excused or quietly counted as done.
What would you check on our own build?
Where the mail actually leaves, whether the refusal sits in that path, and whether anyone has watched it refuse and written the refusal down. A setting that exists in a controls list proves nothing on its own.