I built AuthDrift, an open-source Python harness for one specific agent failure mode: authority is valid when a workflow observes it, then it is revoked and independently confirmed while the same run stays alive, and we check whether the later tool effect still commits.
I’m looking for one real LangGraph tool-calling workflow with an approval, ownership, permission, session, delegation, or expiring-capability boundary. The experiment would preserve the workflow’s existing authorization logic. A result of CLOSED is useful too.
v0.1 currently fits synchronous Python workflows where consequential work finishes before the run returns. The controlled demo has no model calls or paid dependencies.
If you maintain a suitable workflow, please reply with the repository and the consequential tool boundary:
Disclosure: I built AuthDrift. It is a testing harness, not an authorization layer or sandbox.
Nice harness. Heads-up on the sync constraint: the standard LangGraph approval flow is interrupt() with a checkpointer, and the resume comes in a second invocation through Command(resume=...). So the most interesting revocation window, while approval is pending, falls outside v0.1.
Inside a single invoke() there’s still a gap worth poking: between the permission check in a node or conditional edge and the actual ToolNode call. The “review tool calls” example in the HITL docs is small enough to adapt for that.
@cheerstopriya like the setup a lot, especially that CLOSED counts as a useful result and that you keep the workflow’s own auth logic intact. @capitaharlock’s point about the pending-approval window stood out to me too. that’s where i’d expect revocation to actually happen: someone approves, their role changes, and the resume comes a day later.
i’ve been testing the same failure from the defense side, a guardrail that re-reads the facts an irreversible action depends on right before it fires, and revoked authority is one of those facts. what i learned is that catch rate alone is misleading. a check that blocks on any permission change scores perfectly and also blocks a lot of runs that were fine, so i report catch rate and false-alarm rate separately: GitHub - rayyanmaan/agent-guardrail · GitHub. it’s not a langgraph workflow so probably not what you’re after, but the cases might be useful to compare against.
would you add a case where something unrelated gets revoked and the effect should still commit? and @capitaharlock, in meshkore do approvals carry an expiry, or stay valid until someone revokes them?
@rayyanmaan Whether that day-later resume gets caught depends on how the check is written. On Command(resume=...) the interrupted node restarts from its top, but state comes back from the checkpoint as it was, so nothing re-fetches the approver’s role. If the node re-queries live authority right before the tool call, the revocation is caught. If it gates on an approved field sitting in state, it commits anyway.
So one workflow of each kind would show the split, once the harness can span two invocations.
this is the split i care about, and i’m on the live-requery side of it. my recheck re-reads the facts the action depends on from the source right before the effect, not from the resumed state, so if revoked authority is one of those facts, a revocation during the pending-approval window is caught at that point. gating on an approved field sitting in state is the trap, since the checkpoint brings it back as it was.
on the two-invocation point, my harness already spans the interrupt: it pauses after approval, lets the world change during that window, and rechecks live on resume. so i can test the day-later revocation case directly, the approval sits, the role changes, and the live re-read at the effect catches it. the honest gap is a different one. my check answers did the facts change since approval, not was this allowed at approval in the first place. a revocation that predates the agent’s read just looks like the world being that way, so i’d miss it. that permission question is a separate check i’ve got as a known gap. does your invariant aim to cover both, or mainly the freshness half?