Feedback request: schema for blocked agent tool calls / audit evidence

I’m looking for narrow technical feedback on a small schema/demo for blocked agent tool calls.

The core idea is to represent a denied tool call as a completed policy decision, not as a failed tool execution. For example: decision=block, outcome=not_executed, payload_executed=false, and side_effect_occurred=false.

The schema also separates policy-resolution evidence, such as match stage, matched policy key, match kind, priority, fallback reason, and candidate policy keys.

The demo cases cover a safe read-only tool, a blocked SQL mutation, ambiguous overlapping policy matches that fail closed, and an MCP-style file/network boundary case. It also avoids putting raw paths, env vars, request bodies, secrets, or raw args into default trace metadata.

Main question: can this schema represent real blocked tool-call / trace / audit cases you’ve seen in LangGraph/LangChain-style systems?

Release/demo:
https://github.com/MkaliezZ/dhms-engine/releases/tag/v0.1.0-agentfuse-evidence-schema

The one gap I see is treating outcome=not_executed, payload_executed=false, side_effect_occurred=false as one uniform state. side_effect_occurred=false is only provable when the block happened pre-dispatch. Once dispatch has started, it may be unknown, especially with dry-run or simulated execution where a payload is constructed and partially applied to the world but never committed. I’d add a block_stage field with pre_dispatch, post_dispatch, and unknown, then make side_effect_occurred tri-state rather than boolean.

Thanks, that’s a good point.

I agree that side_effect_occurred=false is only really safe when we know the block happened before dispatch. If the handler may already have started, then false is too strong and unknown is probably the more honest value.

I’ll probably keep NonExecutionEvidence strict for the cases where execution definitely never started, and represent the ambiguous cases separately instead of stretching that type too far.

Something like:

  • policy decision: denied

  • dispatch: not started / started / unknown

  • execution: not executed / executed / partial / unknown

  • side effect: none / observed / possible / unknown

The block_stage idea is useful too. pre_dispatch vs post_dispatch makes the boundary much clearer.

Thanks for catching this.

Ricart <notifications@langchain.discoursemail.com> 于2026年9月4日周五 22:55写道:

Thanks a lot. I ended up changing the schema based on your comment.

I kept NonExecutionEvidence strict for the cases where we really know dispatch never started, and added a separate lifecycle record for the messier cases where dispatch may already have begun or the execution state is uncertain.

The main change was separating block stage, dispatch, execution, and side-effect state instead of treating them as one combined “not executed” outcome. I also made post_dispatch explicitly mean dispatch had started, and kept unknown as a real state rather than turning missing evidence into false.

That felt cleaner than weakening the original non-execution record.

Your point about side_effect_occurred=false being too strong outside pre-dispatch was the thing that pushed the change and thanks again, bro.

Ricart <notifications@langchain.discoursemail.com> 于2026年9月6日周日 02:57写道: