Catching steps your AI agent silently skipped: declare required actions per task

Ok-Machine7983 · reddit · 2026-11-30

A developer building an open-source verification layer for AI agents describes how the tool reads back systems the agent writes to (Postgres, Google Calendar) and checks whether the agent's claims match actual records.

In user conversations they hit a bigger problem: tools the agent should have called but didn't. Example: a refund flow has processrefund and notifyowner — the agent skipped the former yet called the latter, and existing verification only checks what was done, not what was omitted.

The proposal: let developers declare required actions per task type and flag missing ones at run end:

@verify.task("refund", requires=["processrefund", "notifycustomer"])

For flows known up front, encoding required steps in the LangGraph graph prevents skips by design, while read-backs still confirm each step's writes actually landed. The author asks how others catch skipped steps today and whether per-task declarations are too rigid.

Original post →

More from coding & agent

coding & agent channel →