Installation
Download, extract, then install locally with Python 3.12.
Python 3.12 · local installation · no PyPI release
python -m pip install -r requirements.lock.txt
python -m pip install --no-deps .The host supplies the trusted request and tool definitions.
from control_layer_v0 import ControlRuntime
gate = ControlRuntime(tools, trusted_request)
result, error = gate.run_function(env, tool, arguments)EXECUTION-TIME AUTHORIZATION
Authorization for
tool-using agents.
A Python control layer that checks policy, identity, source and destination before a tool executes.
AGENTDOJO V1 / OFFICIAL SDK SCORING
AgentDojo benchmark results
A local development evaluation compares the R2 rules baseline with Control Layer V0 on the same tasks using Qwen3.5 4B.
Benchmark: AgentDojo · SDK 0.1.35 · 97 normal tasks + 54 fixed attacks per arm · Single full run, with selected repeats.
Three recovered tasks
Recorded baseline and V0 trajectories show the native calls and blocked proposals for each task. The replay displays these records without executing tools.
All three V0 tasks completed again in the six-episode smoke run. Candidate final states matched their reviewed references.
Inspect receipt ↗Channel-message authorization
The controls illustrate twelve channel-message cases checked against the Python runtime. Changing the channel or content updates the contract decision.
Execution architecture
The actor proposes an action. Deterministic checks bind it to trusted intent and host-observed evidence before a tool can execute.
Evaluation scope
Three recovered tasks, with limited generalization
Three semantic gains and zero losses on 97 paired tasks. Exact paired McNemar p = 0.25. The benchmark was reused during development; selected task repetitions do not establish population superiority.
Bounded contracts and observed security
Summaries use ordered original sentences, which can quote source instructions. General paraphrase, HTTP redirect constraints, final-answer privacy and real external delivery are outside the verified scope. Zero observed writes is not a universal safety guarantee.
Auditable artifacts, without a certification claim
Public evidence is redacted metadata and audit hashes. Full historical model conversations and states remain private. The ACM/NIST mapping is author-side self-assessment; no external certification has been awarded.
Artifact assessment ↗Planned decision-model integration
The planned model would suggest recovery steps for legitimate tasks that deterministic checks cannot resolve. The execution gate would continue to enforce the trusted user contract.
The current evidence establishes the deterministic V0 increment. It does not establish an independent benefit from a decision model. Model weights and classifier backends are excluded from the V0 download.
Decision points in failed tasks
Planned experiments will record the inputs at specific failed decision points and test whether a model suggestion changes task completion.
Authorization constraints
A model suggestion cannot create permission, override a denied policy or turn webpage instructions into user authority. The host checks every proposed effect before native execution. Uncertain decisions abstain.
Evaluation against deterministic V0
Compare deterministic V0 with the same V0 plus the decision model on newly sealed tasks, fixed and new attacks, and repeated candidate runs. Measure semantic task completion, unauthorized effects, model calls and actual warm cost. Retain the model only if it adds independent utility or reduces cost under the same safety gates.