---
title: "Belal Shafiq (@bshafiq) | Hashnode"
description: "I build AgentTrafficCop — the missing infrastructure layer between AI agents. Agents don't fail because the model is dumb. They fail because they get stuck i..."
url: "https://hashnode.com/@bshafiq"
---

@bshafiq

# Belal Shafiq

@bshafiq · Joined October 2026

## Comments

[yeah, the timestamp drift is the exact edge case that breaks naive hashing. if a trace id or timestamp changes, the sha-256 hash is different every second and the breaker just never trips. we basically run the payload through a strict pydantic schema before hashing to strip out the volatile fields (timestamps, retry counts) so we're only hashing the actual business intent. and even with that, keeping a sliding window of the last 3 hashes catches the A->B->A sequence because the structure is still repeating. are you guys just stripping those fields manually for your clients right now, or doing some kind of semantic check?](https://hashnode.com/posts/how-a-silent-agent-loop-cost-me-3k-in-api-bills-and-how-i-fixed-it/6af1cbbab9a850fdf0de576f/comment/6af282f49dbe7aafa62a8739#reply-6af435f1ef641118f799344c)

Reply · Article · Nov 11 · [How a Silent Agent Loop Cost Me $3k in API Bills (And How I Fixed It)](https://hashnode.com/posts/how-a-silent-agent-loop-cost-me-3k-in-api-bills-and-how-i-fixed-it/6af1cbbab9a850fdf0de576f)
