REVIEW 3 major objections 5 minor 3 cited by
AgentGuard: Repurposing Agentic Orchestrator for Safety Evaluation of Tool Orchestration
T0 review · 3 major / 5 minor · reviewed 2026-08-07 · deepseek-v4-flash
Pith's one-line read AgentGuard claims an LLM agent's own orchestrator can serve as its safety evaluator, discovering unsafe tool workflows, validating them by real execution, and producing tested constraints for deployment.
desk verdict An honest, clearly written hackathon prototype with a genuinely interesting core idea—using the target orchestrator as its own safety evaluator—but the evidence is too thin and self-referential to call the feasibility case closed. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The central object is the LLM-based orchestrator inside the target agent, repurposed as its own safety evaluator. It carries the argument because it already satisfies the three requirements the authors argue any such framework must have: internal knowledge of tool capabilities and usage, the ability to generate workflows that realistically match what the agent would actually do, and the privilege to invoke tools for concrete validation. The pipeline is coordinated by a centralized Prompting Proxy Agent and a Safety Constraint Expert Agent, with feedback loops that request regeneration when generated content is low quality or execution fails. Two prompt-level mechanisms were needed to make the prototype work: Role Augmentation to get past the orchestrator's initial refusal to perform the evaluation task, and Chain-of-Thought prompting, asking the orchestrator to list and reflect on tools before identifying workflows, to suppress hallucinated tool capabilities.
What would settle it
Take a coding agent with a known unsafe tool sequence that a manual red team can execute to overwrite a protected file; run AgentGuard on that exact configuration many times, and if the pipeline never validates that workflow and never applies a successfully blocking SELinux rule across all runs, the central feasibility claim for the hardening loop is falsified.
Extended reading notes
Core claim
On its own terms, the paper claims that an LLM-based agentic orchestrator can be repurposed, before deployment, into the safety evaluator of its own tool orchestration. The orchestrator is instructed to reflect on its tools, produce unsafe workflows that violate security principles in given task scenarios, turn those workflows into executable test cases, execute them to check whether the predicted harm actually occurs, and then re-execute them under generated safety constraints to confirm the constraints block the harm. The evaluation report thereby contains validated unsafe workflows, violated security principles, test cases, and validated constraints, which can be enforced as a deployment-time safety baseline. The empirical result is a feasibility proof-of-concept: with a coding agent as the target, the pipeline ran end to end successfully at least a few times, despite many runs failing at the step of applying LLM-generated SELinux rules, a failure the authors attribute to the evaluated LLM rather than to the design.
Load-bearing premise
The load-bearing premise is that the target agent's orchestrator is not compromised and will actively comply with requests to expose unsafe workflows, and in the prototype this premise failed initially—the orchestrator refused the task and had to be jailbroken with Role Augmentation—so if a real agent hides or distorts its unsafe workflows, or the same LLM cannot turn constraints into executable rules, the resulting evaluation report does not cover the agent's actual risk surface.
Editorial extensions
If this is right
- A deployable agent can be shipped with a validated set of safety constraints, such as SELinux rules, that confine its behavior even if the agent is later compromised.
- Re-running the four phases produces a quantitative measure of safety improvement by comparing unsafe-outcome occurrences before and after constraints are applied.
- Collected unsafe workflows and test cases for one agent family can be pooled into a benchmark corpus and shared as threat intelligence for similar agents.
- Accumulated evaluation reports can serve as training samples to fine-tune LLMs for safer tool orchestration.
- Because the method rests on the general design of LLM agents, it is intended to transfer from software agents to agents that interact with the physical world, such as robotic systems.
Reading between the lines
- A natural extension is to use the same self-evaluation loop continuously at deployment with a shadow orchestrator, turning each real interaction into a latent test case rather than auditing only once before release.
- The initial refusal and tool hallucination observed in the prototype suggest a general precondition for self-auditing: the orchestrator's system prompt must be audited or temporarily stripped of defensive role assignments, and the actual tool registry should be fed back into the prompt before workflow generation.
- A more robust design would separate the evaluator model from the target agent's model, or pair the orchestrator with a tool-knowledge retriever, to avoid relying on the same LLM for both planning and rule generation.
- An attacker will not ask a compliant orchestrator politely, so the identification phase could be extended with goal-injection prompts that simulate adversarial hijacking, testing workflows the agent would only produce under compromise.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes AgentGuard, a pre-deployment safety testing and hardening framework for LLM agents. The key idea is to repurpose the agent's own LLM-based orchestrator as its safety evaluator: the orchestrator identifies unsafe tool-use workflows, generates and executes concrete test cases to validate that they cause unsafe outcomes, a Safety Constraint Expert Agent converts validated workflows into SELinux constraints, and the orchestrator re-executes the test cases to show that the constraints block the unsafe outcomes. The deliverable is an evaluation report containing unsafe workflows, test cases, and validated constraints. The authors evaluate the prototype on the Aider coding agent with ChatGPT-4o on an Ubuntu 22.04 VM with SELinux enabled, reporting that most runs failed at SELinux rule generation or application but that a few successful runs demonstrated proof-of-concept feasibility.
Significance. If the feasibility claim is substantiated, AgentGuard addresses a real need: a standardized pre-deployment process for discovering and mitigating unsafe tool orchestration in LLM agents. The paper's core design rationale is sensible and well articulated: the orchestrator has tool knowledge, has execution privileges, and can generate realistic workflows precisely because it is the same entity that will be exploited at deployment. The four-phase structure and the concrete SELinux embodiment make the proposal actionable, and the authors are transparent about failures, including the orchestrator's initial refusal and the difficulty of generating applicable SELinux rules. The comparison with TooLEmu is useful. However, the empirical evidence is qualitative and self-referential: one target agent, one model, one configuration, no success counts, no example logs, and no independent oracle for whether an unsafe outcome actually occurred and was actually blocked. The paper is best read as a position/exploratory report; its central feasibility claim needs significantly stronger evidence before it can support a general conclusion.
major comments (3)
- [Section 4 and Section 6] The central feasibility claim, stated in Section 6 as 'we observed successful evaluation results indicating the feasibility of AGENT GUARD', is not supported by the reported evidence. The evaluation section reports qualitative observations (e.g., 'only a very few' rules could be applied) but provides no success counts, no number of identified versus validated workflows, no example test cases, no SELinux rule examples, and no logs of denials or outcome detections. A reader cannot tell how many end-to-end runs succeeded, which workflows were validated, or whether the constraints actually blocked the unsafe effects. At minimum, the paper needs one complete end-to-end trace with independent verification, for example OS-level audit logs showing the unsafe operation occurring before the constraint and being denied after it.
- [Section 4, Unsafe Workflow Identification, versus Assumption 3 in Section 2.1] Assumption 3 states that the orchestrator is not compromised and will actively expose unsafe workflows as requested. In practice, the orchestrator initially refused the task and had to be jailbroken with Role Augmentation prompting; it also hallucinated non-existent tool capabilities until Chain-of-Thought prompting was added. This means the entity that was evaluated is not the compliant, unmodified orchestrator assumed by the design, nor is it the same as the deployment-time agent after moderation and hardening. The paper should either evaluate a genuinely compliant orchestrator, or explicitly analyze how the jailbroken state affects the validity and transferability of the generated safety constraints. Without this, the evaluation report may not cover the actual risk surface of the agent as it would behave at deployment.
- [Section 3 and Section 4, Safety Constraint Validation] The validation loop is self-referential. As described in Section 3, the Safety Constraint Expert Agent is 'the orchestrator equipped with knowledge in SELinux from the underlying LLM', so the same model generates the workflows, writes the test cases, executes them, detects unsafe outcomes, writes the SELinux constraints, re-executes the test cases, and checks whether outcomes are blocked. A successful post-constraint run could therefore reflect a genuine SELinux denial, but it could also reflect the model's own changed choice of tool calls or a flawed outcome-detection check. There is no independent oracle on the execution logs. The authors should add at least one run in which an independent mechanism (e.g., a SELinux audit log, a filesystem snapshot, or a human reviewer) confirms both that the unsafe outcome occurred before the constraint and that the constraint, not the model's changed behavior, prevented it afterward.
minor comments (5)
- [Section 4, Safety Constraint Generation] The statement that SELinux rule generation 'appeared to be decent' and 'yielded rules with correct syntax ... for a fair amount of times' is too vague for a scientific report; please provide the number of generated rules, the number syntactically valid, and the number actually applied and validated.
- [Section 1.2 and Section 3] Figure 1 and Section 2.2 describe the Prompting Proxy Agent and the Safety Constraint Expert Agent as distinct components, but Section 3 states that the same underlying LLM currently plays both roles. Please clarify which components are actually separate in the implementation and which are the same model under different prompts, as this matters for interpreting the results.
- [Section 4, Unsafe Workflow Identification] The claim that 'the vanilla underlying foundation model (i.e., ChatGPT 4o) does not have content moderation for such a benign task' is asserted without evidence and is difficult to verify from the outside; please either show the relevant experiments or rephrase as a hypothesis about implicit prompt-based moderation.
- [Section 2.3 and Section 6] Section 2.3 lists 'the difference in the occurrences of unsafe outcomes before and after applying the safety constraints' as a quantitative improvement measure, but the evaluation section does not report this number for any workflow. Either report it for the successful runs or explicitly defer it to future work in Section 6.
- [Throughout] The manuscript lacks reproducibility details: the exact system prompts, the Role Augmentation prompt template, the Chain-of-Thought prompt, the test-case code, and the SELinux rules are not included. Providing an appendix with these artifacts, or a repository link, would substantially strengthen the paper. There are also several grammatical slips (e.g., 'the orchestrator's should be good at generating tool-use plans' in Section 4) that should be corrected.
Circularity Check
The 'validated unsafe workflows' and 'validated safety constraints' are both produced and certified by the same orchestrator under evaluation; the constraint-validation step re-tests the exact test cases the constraints were generated from, so the feasibility proof is an in-sample self-consistency check.
-
self definitional
[Section 2.2.2 (Unsafe Workflow Validation); Section 3 (Implementation)]
"the Prompting Proxy Agent instructs the orchestrator to 1) generate corresponding test cases including concrete orchestration plans (e.g., sequences of tool API calls) representing the workflows at the execution level utilizing its internal knowledge of tool use, and the corresponding unsafe outcome detection mechanism (e.g., checking if writing to restricted a directory successfully overwrites files in it) and 2) execute the test cases to validate that the identified workflows indeed can result in unsafe outcomes, utilizing its privileges to invoke the tools."
The orchestrator under evaluation is also the entity that proposes the unsafe workflow, writes the concrete test case, and writes the 'unsafe outcome detection mechanism' that determines whether an unsafe outcome occurred. A workflow is marked validated only when the orchestrator's own self-authored detector reports an unsafe outcome; no independent oracle inspects the execution logs or defines the unsafe predicate. The validated set is therefore self-defined by the model's own knowledge and hallucinations. Section 3 collapses the ostensible independent constraint expert into the same model: 'we currently use the orchestrator equipped with knowledge in SELinux from the underlying LLM as the Safety Constraint Agent.'
-
fitted input called prediction
[Section 2.2.4 (Safety Constraint Validation), with Section 2.2.3]
"for each unsafe workflow, the Safety Constraint Expert Agent applies the safety constraints to the execution environment of the target agent, then instructs the orchestrator to re-execute the test cases and check if the unsafe outcomes are blocked. If so, the set of safety constraints generated for this unsafe workflow are validated and added to the report."
Section 2.2.3 says the constraint agent generates constraints by examining the observed unsafe outcomes from test case execution and correlating them with the tool invocations in the test case. The validation in Section 2.2.4 then re-executes those same test cases, with the same orchestrator checking whether the outcomes are blocked. The constraint is thus fitted to the exact test case it is later tested on; no held-out workflow, new orchestration, or independent verifier is used. The deploy-time 'safety guarantee baseline' claim (Section 2.3) is therefore a prediction on the training data, forced to succeed by construction once the SELinux rule is syntactically applicable.
full rationale
No citation-based circularity is present: the paper does not lean on self-citations or imported uniqueness theorems. The circularity is in the empirical validation chain. The orchestrator under test generates the unsafe workflows, the test cases, and the unsafe-outcome detectors (Section 2.2.2), and the same model is used as the Safety Constraint Expert in the implementation (Section 3). The constraint validation (Section 2.2.4) re-executes the same test cases the constraints were generated from, so a successful end-to-end run demonstrates self-consistency rather than independent safety coverage. The concrete execution in a real VM with SELinux provides some grounding (file operations either succeed or are denied by the OS), which is why this is partial circularity rather than a fully vacuous derivation. The role-augmentation jailbreak also means the evaluated orchestrator behavior differs from the moderated deployment agent, but that is an external-validity caveat, not a circular step. Overall score 6: the flagship feasibility result reduces in part to in-sample self-validation by the same model.
Assumptions & free parameters
assumptions (6)
- domain assumption The target agent is hosted in a controlled environment during testing.
- domain assumption AgentGuard runs before moderation, so the orchestrator is compliant with safety evaluation requests.
- ad hoc to paper The orchestrator is not compromised and will actively expose unsafe workflows as requested.
- domain assumption The orchestrator has enough security knowledge from LLM pretraining to evaluate tool workflows.
- domain assumption The safety constraint expert can generate applicable constraints, such as valid SELinux rules.
- domain assumption Executing a generated test case and observing the unsafe outcome is a valid ground truth for workflow risk.
Cite this review
Pith. "Pith review of AgentGuard: Repurposing Agentic Orchestrator for Safety Evaluation of Tool Orchestration." pith.science (2026). https://pith.science/paper/XXOJ3FF4
@misc{pith2026250209809,
author = {Pith},
title = {Pith review of: AgentGuard: Repurposing Agentic Orchestrator for Safety Evaluation of Tool Orchestration},
year = {2026},
howpublished = {\url{https://pith.science/paper/XXOJ3FF4}},
note = {Machine review of arXiv:2502.09809}
}
read the original abstract
The integration of tool use into large language models (LLMs) enables agentic systems with real-world impact. In the meantime, unlike standalone LLMs, compromised agents can execute malicious workflows with more consequential impact, signified by their tool-use capability. We propose AgentGuard, a framework to autonomously discover and validate unsafe tool-use workflows, followed by generating safety constraints to confine the behaviors of agents, achieving the baseline of safety guarantee at deployment. AgentGuard leverages the LLM orchestrator's innate capabilities - knowledge of tool functionalities, scalable and realistic workflow generation, and tool execution privileges - to act as its own safety evaluator. The framework operates through four phases: identifying unsafe workflows, validating them in real-world execution, generating safety constraints, and validating constraint efficacy. The output, an evaluation report with unsafe workflows, test cases, and validated constraints, enables multiple security applications. We empirically demonstrate AgentGuard's feasibility with experiments. With this exploratory work, we hope to inspire the establishment of standardized testing and hardening procedures for LLM agents to enhance their trustworthiness in real-world applications.
Figures
Forward citations
Cited by 3 Pith papers
-
AgentSentinel: An End-to-End and Real-Time Security Defense Framework for Computer-Use Agents
AgentSentinel combines system-level tracing with LLM-based auditing to block 79.6% of attacks in the authors' 60-scenario computer-use agent benchmark.
-
WebGuard: Building a Generalizable Guardrail for Web Agents
WebGuard introduces an action-level risk dataset for web agents and shows that a fine-tuned 7B model improves risk-prediction accuracy from about 38% to 80% and high-risk recall from 20% to 76%, still below deployment...
-
GAF-Guard: An Agentic Framework for Risk Management and Governance in Large Language Models
The paper presents GAF-Guard, a multi-agent governance framework that combines pre-deployment risk questionnaires, real-time drift and risk monitoring, and incident reporting for LLM applications.
Reference graph
Works this paper leans on
-
[1]
Langchain: Building applications with llms
Harrison Chase and LangChain Contributors. Langchain: Building applications with llms. Accessed: 2024-12-06
work page 2024
-
[2]
Fastapi: Fastapi framework, high performance, easy to learn, fast to code, ready for production
FastAPI. Fastapi: Fastapi framework, high performance, easy to learn, fast to code, ready for production. Accessed: 2024-12-06
work page 2024
-
[3]
Aider: Ai pair programming in your terminal
Paul Gauthier and Aider Contributors. Aider: Ai pair programming in your terminal. Accessed: 2024-12-06
work page 2024
-
[4]
Security-enhanced linux (selinux), 2000
National Security Agency (NSA). Security-enhanced linux (selinux), 2000. Accessed: 2025-02-06
work page 2000
-
[5]
Maddison, and Tatsunori Hashimoto
Yangjun Ruan, Honghua Dong, Andrew Wang, Silviu Pitis, Yongchao Zhou, Jimmy Ba, Yann Dubois, Chris J. Maddison, and Tatsunori Hashimoto. Identifying the risks of LM agents with an LM-emulated sandbox. In The Twelfth International Conference on Learning Repre- sentations, 2024. 5
work page 2024
Reviewed August 7, 2026 · model on record in the stance chip above.
Discussion (0). Sign in to comment.