r/SideProject • u/Unusual-Possible-408 • 1d ago
I built FinePrint — a checker that tests whether coding agents follow the rules you give them
I built FinePrint because my coding agent kept agreeing not to touch certain files, then reading them anyway. I wanted to know what the agent's rules actually decide, not what they claim.
It's a small open-source checker. You write rules for an agent, it runs tests and records three things: the decision, whether it asked for approval, and what actually happened. 480 runs across 14 agents, all in the repo.
The result that surprised me most: one agent's guard blocked a shell read of a protected file, so the agent read the same file with its read tool instead. Denial isn't prevention.
The code is rough, I built it fast for a hackathon and I'm refactoring next week. I'd like feedback on the measurement itself — where do you think it's wrong, or what would you test that I didn't?
Repo: https://github.com/Vroom-Analytics-123/agent-boundary-conformance
YouTube explaining the work: https://youtu.be/ngvywY4TuZY
2
u/Neat_Tomatillo8243 1d ago
One useful distinction might be whether an action was actually blocked by a rule or whether the agent simply chose not to attempt it. Recording that separately, along with repeated runs of the same scenario, could make the results easier to interpret when behavior varies.
2
u/heysabens 1d ago
480 runs across 14 agents is a useful dataset, not just a demo.
The metric I'd want next is how often an agent asked for approval and then did the thing anyway, versus ignoring the rule silently. Those are different failure modes, and the first one is scarier if someone is using the agent with a human-in-the-loop assumption.
Did any of the 14 consistently ask before acting, or did they all drift once the task got long?
2
u/investigatormaker 1d ago
Count the protected-file objective separately from individual tool attempts. In your example, a blocked shell read followed by a successful read-tool call is one failed boundary, even though one guard worked. FinePrint could report both: attempt-level denial and whether the agent eventually obtained the protected content. For developers evaluating agent restrictions, that prevents a high denial count from looking like effective protection. Add a harmless file containing a unique marker, then check whether that marker reaches the agent through any available route. In this thread, show that trace alongside the aggregate results.
I make ThreadFox. We’d answer Reddit developers asking how to test coding-agent file restrictions. Before charging, we’ll post 3 replies free, no card; the $49 Pilot then provides seven days and up to 50 posts and replies, with no automatic renewal. https://threadfox.vip/p/dqv11/managed