You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Runnable instance of the actor-drift case you flagged in crewAI#5802 #3
Hi — you said in crewAIInc/crewAI#5802 that your own IdempotencyGuard "fails the harder bar"; here is a runnable instance of exactly that, one step past what the thread has discussed. Four lines, stdlib only:
Guard key = tool + args (PR #5822's shape; your sha256(tool_name, canonical_params, scope_id) behaves the same whenever scope matches but the actor chain has drifted). #2 is never executed and never refused — the authorization question for user:li is simply never evaluated, and R-001 transfers with it.
Section B in the same script (https://github.com/DSHCorrectover/tool-audit — repro.py, or say the word and I'll paste it here): same events, key extended with actor+scope → #2 denied pre-dispatch. Only variable is the key.
Want me to post the full repro + the ledger comparison in #5802, or is here better? Not asking you to endorse anything — if your guard takes (actor, scope) it can write its own verdict function; the table format is CC0 if you want a reference.
Correction after reading the actual retry source (agent/core.py + tools/base_tool.py on main): my framing above over-reached in one place, and the run ground-truth makes it sharper:
crewAI's sync retry (_handle_execution_error → re-enters execute_task) reuses the same agent instance — same actor, same credentials. So user:li does NOT appear on the in-process retry path. That path is the plain double-execution #5802 opened with (no idempotency guard at all).
The actor-drift class is real only via the third trigger in the original report — external re-trigger (a fresh run re-dispatching the same call), where a different principal can legitimately be behind it.
The structural fact that survives both classes: BaseTool.run(self, *args, **kwargs) (base_tool.py:353) has no actor/principal/delegation parameter at all — only a usage-limit claim. The tool interface cannot distinguish who a replay is executed for, regardless of guard key design. Any guard keyed on tool+args (or tool+args+scope) is governing effect identity over an interface that never carries authorization identity.
So the runnable repro should be read as: in-process path = double execution (their bug, PR #5822's domain); external re-trigger = actor drift (the axis the interface itself does not carry — nobody's key can fix what the signature does not pass). Both verifiable from source, no runtime needed.
Scope of the claim, stated plainly before anyone has to ask: the in-process double-execution path (same agent re-entering execute_task) is design territory, not a vulnerability — one principal re-running its own tool isn't privilege escalation, and I'm not claiming it is. What the missing interface dimension breaks is auditability: two identical log entries where one is a retry and the other is an intentional second operation are indistinguishable, so the effect ledger can't be reconciled against intent.
The genuine authorization gap is the external re-trigger path only: a fresh run re-dispatching the same call, where the acting principal can differ — and BaseTool.run(*args, **kwargs) structurally cannot carry who it is for. That's the axis worth adding a slot for, whether in the signature or via an outer context wrapper.
Activity
DSHCorrectover commentedon Nov 17, 2026
Correction after reading the actual retry source (agent/core.py + tools/base_tool.py on main): my framing above over-reached in one place, and the run ground-truth makes it sharper:
_handle_execution_error→ re-entersexecute_task) reuses the same agent instance — same actor, same credentials. Souser:lidoes NOT appear on the in-process retry path. That path is the plain double-execution #5802 opened with (no idempotency guard at all).BaseTool.run(self, *args, **kwargs)(base_tool.py:353) has no actor/principal/delegation parameter at all — only a usage-limit claim. The tool interface cannot distinguish who a replay is executed for, regardless of guard key design. Any guard keyed on tool+args (or tool+args+scope) is governing effect identity over an interface that never carries authorization identity.So the runnable repro should be read as: in-process path = double execution (their bug, PR #5822's domain); external re-trigger = actor drift (the axis the interface itself does not carry — nobody's key can fix what the signature does not pass). Both verifiable from source, no runtime needed.
DSHCorrectover commentedon Nov 17, 2026
Scope of the claim, stated plainly before anyone has to ask: the in-process double-execution path (same agent re-entering
execute_task) is design territory, not a vulnerability — one principal re-running its own tool isn't privilege escalation, and I'm not claiming it is. What the missing interface dimension breaks is auditability: two identical log entries where one is a retry and the other is an intentional second operation are indistinguishable, so the effect ledger can't be reconciled against intent.The genuine authorization gap is the external re-trigger path only: a fresh run re-dispatching the same call, where the acting principal can differ — and
BaseTool.run(*args, **kwargs)structurally cannot carry who it is for. That's the axis worth adding a slot for, whether in the signature or via an outer context wrapper.