Language-Based Agent Control
Timothy Zhou, Loris D'Antoni, Nadia Polikarpova
NeurIPS 2026
TL;DR. Use language-based security to control AI agents.
Abstract. This paper introduces language-based agent control (LBAC), a new programming model for agentic applications that brings techniques from programming languages and language-based security to the problem of agent control. In conventional programming, combinations of static typing and runtime enforcement have long been used to guarantee that well-typed programs satisfy user-specified policies, including policies for access control, information flow, data provenance, and more. The key idea behind LBAC is to extend these guarantees to agentic applications by requiring agents to generate programs that are themselves well-typed in the context of the surrounding scaffolding code. Unsafe programs are rejected by the typechecker before execution, allowing policies to apply uniformly across the entire application, including both agent-generated behavior and developer-written scaffolding. At the same time, LBAC preserves substantial expressiveness: agents may perform arbitrary side-effect-free computation and recursively invoke subagents, which retain full tool access subject to the same—or potentially more restrictive—policies. We demonstrate LBAC with three case studies: I/O sandboxing via filesystem capabilities, data provenance, and information-flow control.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:42 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper has some very interesting ideas -- introducing typed language for agent behavioral control. I actually think this is a great area of research and works such as this should be actively encouraged.
I do think this paper might have been written for a PL (programming language / systems) conference but somehow got submitted to NeurIPS.
Please:
- Expand your related work to address comments from ZRZ9 -- compare to other systems.
- Please evaluate on one or two LLM agent tasks (even if it's small or you only evaluate on 10-20 tasks from a bigger dataset).
- Please address xxvM's W7 -- what can your system do but other alternative safe-execution mechanisms cannot solve?
I want to support more systems papers in AI conferences. Agent space is actually a fantastic space for PL/Sys researchers.
Final justification
I have read through all reviews and the authors' responses and I have read the paper myself.
This is an extremely difficult decision -- during the discussion period, reviewer ZRZ9 suggested that the authors reframe and change their contribution to the following:
Overall a contribution like "here is a well-motivated solution to a real problem; it improves upon method X but involves fundamental tradeoff Y" has a good shape in theory. However, this is sort of me putting a feasible frame around the authors' results--they don't exactly frame them this way themselves.
PL/Type Theory, due to the lack of automated "learning" capability, will have limits. Safety mechanisms will have costs. I think this paper can spark debates and bring new insights into a community (LLM agents).
I find this work not matured and many changes and explanations should be done (as they're promising) which is too much for a rebuttal in our domain.
I agree with reviewer xxvM that this paper is written in a different style, hard to read. However, I think the quality and maturity have greatly improved during the rebuttal. I suggest the authors collaborate with other AI researchers in the future to make sure their submission is accessible to the broader AI community.
I choose to accept this paper on the strict condition that the authors include all the rebuttal materials in the final camera ready and revise the paper to make it easier for the predominantly AI audience at NeurIPS. I would also suggest them to reframe the paper according to reviewer ZRZ9's comment.
Read meta-review
Meta-review
The paper has some very interesting ideas -- introducing typed language for agent behavioral control. I actually think this is a great area of research and works such as this should be actively encouraged.
I do think this paper might have been written for a PL (programming language / systems) conference but somehow got submitted to NeurIPS.
Please:
- Expand your related work to address comments from ZRZ9 -- compare to other systems.
- Please evaluate on one or two LLM agent tasks (even if it's small or you only evaluate on 10-20 tasks from a bigger dataset).
- Please address xxvM's W7 -- what can your system do but other alternative safe-execution mechanisms cannot solve?
I want to support more systems papers in AI conferences. Agent space is actually a fantastic space for PL/Sys researchers.
Final justification
I have read through all reviews and the authors' responses and I have read the paper myself.
This is an extremely difficult decision -- during the discussion period, reviewer ZRZ9 suggested that the authors reframe and change their contribution to the following:
Overall a contribution like "here is a well-motivated solution to a real problem; it improves upon method X but involves fundamental tradeoff Y" has a good shape in theory. However, this is sort of me putting a feasible frame around the authors' results--they don't exactly frame them this way themselves.
PL/Type Theory, due to the lack of automated "learning" capability, will have limits. Safety mechanisms will have costs. I think this paper can spark debates and bring new insights into a community (LLM agents).
I find this work not matured and many changes and explanations should be done (as they're promising) which is too much for a rebuttal in our domain.
I agree with reviewer xxvM that this paper is written in a different style, hard to read. However, I think the quality and maturity have greatly improved during the rebuttal. I suggest the authors collaborate with other AI researchers in the future to make sure their submission is accessible to the broader AI community.
I choose to accept this paper on the strict condition that the authors include all the rebuttal materials in the final camera ready and revise the paper to make it easier for the predominantly AI audience at NeurIPS. I would also suggest them to reframe the paper according to reviewer ZRZ9's comment.
1 comment
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This manuscript introduces a programming language for LLMs and a corresponding agentic architecture in which the type system of the language provides guardrails on agent behavior. In their system, LBAC, the user writes a program which:
- Specifies a concrete type for an agent-written program; for example, this program could have a type which indicates that it performs IO operations
- Invokes the agent to produce a program which passes the type checker; if it does not, then the program is not executed The key idea is that a sophisticated type system is able to guarantee a rich set of possible invariants for the agent-written program. The concept is instantiated in a Haskell-based language, TYPEGUARD.
Strengths and weaknesses
This is a conceptually appealing and novel solution to an important problem. The approach of “give your agent a tool for every thing it might need to do” has been falling out of favor because a million custom tools cause context bloat, and agents often fail to select the right tool in practice. Thus the emerging paradigm is something like “bash/python is all you need” – just give the agent one tool, code execution, with arbitrary capabilities. However, making such an agent secure or producing any kind of guarantee about its behavior is a nightmare. It is well motivated to address this at the programming language level, and in particular using type systems is a natural approach which could leverage some really sophisticated tools that have been developed in the PL world for producing guarantees about the behavior of programs.
An additional strength is that some of the specific language design choices in TYPEGUARD are well-considered. It is a good choice to build upon Haskell and its type system, which seems to have the right combination of properties: it is statically typed, which is clearly a necessity here; it has robust type inference, which likely makes the system more ergonomic (although I wouldn’t say this is demonstrated empirically); and functions in the language are typed according to their side effects, which is basically the key idea of the paper.
An interesting choice is that the agent function does not hard-code an agent loop, and instead the agent calls itself recursively with a new prompt to give itself its next turn. This is an elegant approach. It is reminiscent of RLMs (which should probably be cited), but different in that the “recursive agent” is not really a subagent but properly a successor turn to the same agent – or maybe more precisely, there is no proper distinction between these things the way there is in RLMs. I actually like this approach better than the RLMs approach to recursion. However, my enthusiasm for this choice is diminished by the lack of evidence that LLMs can actually make use of it effectively (see below).
I have the following major concerns.
-
There are almost no empirical results. Are existing LLMs actually able to use the language to perform nontrivial work, and what is the performance cost of doing so? Currently, the only empirical results in the manuscript are a methods comparison against CaMeL, a prompt-injection avoidance method I had not heard of, on a task designed to test prompt injection robustness. It is great that the system succeeds in avoiding prompt injection, which I guess it guarantees formally although I didn’t follow this argument. However, what is the cost to performance? The comparison against CaMeL makes it seem the tradeoff is similar, but what about a comparison against a system without guarantees? This is a key question because the central pitch is that LBAC gives “expressiveness and control”, i.e., that control does not come with its usual drawbacks. Expressiveness may not be the same thing as performance exactly, but this pitch would definitely look less appealing if it turns out that the tradeoff in performance is severe.
-
Prior literature does include several competing systems (besides CaMeL) which the authors should cite or discuss. None of these systems are equivalent to LBAC, and subjectively I prefer LBAC conceptually, but they challenge the way the authors frame the state of the art: it isn’t the case that right now one must choose between tool use and arbitrary code execution. Here are papers I found in my literature search: https://arxiv.org/abs/2403.04960 https://arxiv.org/abs/2310.08535 https://arxiv.org/abs/2309.09919 https://invariantlabs.ai/theme/research/ai_agents_with_formal_security.pdf
Questions
If I wanted to use this approach on a real agentic task – say, do some internet search, create some data visualization, write a report – would LBAC actually work? How would it compare against a traditional harness with (a) constrained tool use and (b) unconstrained code execution? I would be more supportive in my evaluation if benchmarking analyses showed limited performance degradation versus traditional agent harnesses on multi-turn agentic tasks not oriented specifically toward safety.
What kinds of constraints can and cannot be enforced? Say a developer begins with an informal constraint, like “my agent shouldn’t exfiltrate user data to untrusted servers”. How might they formalize this into a type system, and what limitations are there to this approach? It would benefit the clarity of the manuscript to provide some clear guidance, intelligable to users not familiar with Haskell and its type system, about what constraints can be implemented.
Limitations
It is not currently clear either the theoretical limitations of the approach or the practical limitations of an agentic system which uses it.
Final justification
The authors' rebuttal addresses some of my concerns: the system can complete tasks involving several turns (even though most tasks were indeed one-shot), and the performance penalty on AgentDojo is fleshed out, particularly the insight that the policy makes many of these tasks impossible to complete. This is not exactly encouraging as far as how practical the system is, but at least it begins to address the question of what fundamental limitations or tradeoffs it has.
I remain concerned that existing systems, although different from this one, do not fit the description of what is currently SOTA; I am also concerned that this approach has fundamental tradeoffs which are now at least partially explored.
I would not recommend acceptance but also would not object to it. If the paper is ultimately accepted, I would urge the authors to be maximally transparent in paper-ready manuscript about these tradeoffs. In particular, the fact that some of the AgentDojo problems are theoretically impossible under the policy is a real tradeoff in the system.
Formatting concerns
None
3 comments
Rebuttal
We thank the reviewer for the detailed feedback. We address each weakness and question. Because our update evaluation is contained in the answer to aNKY, we often refer to it.
It is reminiscent of RLMs (which should probably be cited), but different in that the "recursive agent" is not really a subagent but properly a successor turn to the same agent – or maybe more precisely, there is no proper distinction between these things the way there is in RLMs.
Thank you for pointing out the omission, we will cite and discuss RLMs. As the reviewer points out, the fact that agent can generate programs which recursively call agent is one of the the main novelties of LBAC.
There are almost no empirical results. Are existing LLMs actually able to use the language to perform nontrivial work, and what is the performance cost of doing so?
See our updated utility results (Table A, answer to aNKY) and our new BibTeX data (Table E, answer to aNKY) — in short, TypeGuard achieves higher utility than CaMeL, completing roughly twice as many tasks with policies enforced and ~15% more without. The total runtime of TypeGuard on AgentDojo is about 3x that of CaMel's: this is primarily due to the fact that CaMeL generates a single program upfront, whereas TypeGuard agents perform additional LLM calls to generate programs in response to data (which increases expressiveness, and ultimately, utility).
Prior literature does include several competing systems (besides CaMeL) which the authors should cite or discuss. None of these systems are equivalent to LBAC, and subjectively I prefer LBAC conceptually, but they challenge the way the authors frame the state of the art: it isn't the case that right now one must choose between tool use and arbitrary code execution. Here are papers I found in my literature search: <removed url as per rebuttal instructions>
We thank the reviewer for these pointers; we will cite and discuss these and other relevant work, and we agree they show the state of the art is not a binary choice between tool use and arbitrary code execution. LBAC provides formal guarantees which apply to the whole-system (across agent and scaffold).
- IsolateGPT is a systems-level defense which sandboxes different apps with separate LLM instances. Its app-level boundaries cannot express information flows within an application: moreover, flows between applications are mediated by a hub whose planning is itself LLM-based and carries no formal guarantees. Our IFC policies are enforced by LIO within the application, and inherit language-level guarantees.
- PASS, Safety Chip, and Invariant each enforce properties of a single agent call. PASS and Safety Chip use Linear Temporal Logic (LTL) formulas to restrict the allowed execution traces of agents, via constrained decoding and runtime checks respectively. Invariant uses taint tracking to check an agent's execution against dataflow policies. While all three provide formal guarantees, they are not whole-system, and each is tied to a single purpose-built mechanism and cannot reuse existing language-based defenses as with LBAC.
If I wanted to use this approach on a real agentic task – say, do some internet search, create some data visualization, write a report – would LBAC actually work? How would it compare against a traditional harness with (a) constrained tool use and (b) unconstrained code execution?
A pattern that works well with LBAC is defining a safe API around the operations the agent needs, where the API enforces the desired properties. The reviewer's tasks fit this pattern: report writing can enforce data provenance (our BibTex example) and web search can carry IFC policies against prompt injection (our AgentDojo example).
For unconstrained code execution, we evaluated this on our AgentDojo benchmark with the no-policy variants. For a comparison to tool use, see our BibTex evaluation (Table E, answer to aNKY) which gives an example of a prototypical task one might implement an agent for.
What kinds of constraints can and cannot be enforced? Say a developer begins with an informal constraint, like "my agent shouldn't exfiltrate user data to untrusted servers". How might they formalize this into a type system, and what limitations are there to this approach? It would benefit the clarity of the manuscript to provide some clear guidance, intelligable to users not familiar with Haskell and its type system, about what constraints can be implemented.
Following the reviewer's example, they could use the LIO library like we did in our AgentDojo evaluation. In particular, LIO allows the user to mark sources/sinks of data with labels: one would then define an API exposing write operations which perform runtime checks based on these labels. In general, a strength of LBAC is that it can integrate natively with well-developed libraries like LIO.
In general, LBAC can enforce any property that can be encoded into a type. Note that a type can enforce its property through runtime checks in its underlying implementation, not only statically: guarantees can arise as a combination of type-level and runtime enforcement. Some examples from the literature include: sandboxing untrusted code [1], capability-based access control [2], enforcing that operations follow a state-machine protocol [3], avoiding data races [4], and enforcing predicates on values [5]. The reviewer is right that such guidance could benefit the manuscript: we will add some high-level discussion about how/what types of properties have been enforced in the language-based security literature.
Citations
[1] D. Terei, S. Marlow, S. Peyton Jones, and D. Mazières, "Safe Haskell," Haskell Symposium, 2012.
[2] M. S. Miller, "Robust Composition: Towards a Unified Approach to Access Control and Concurrency Control," PhD thesis, Johns Hopkins University, 2006.
[3] R. Pucella and J. A. Tov, "Haskell Session Types with (Almost) No Class," Haskell Symposium, 2008.
[4] T. Harris, S. Marlow, S. Peyton Jones, and M. Herlihy, "Composable Memory Transactions," PPoPP, 2005.
[5] N. Vazou, E. L. Seidel, R. Jhala, D. Vytiniotis, and S. Peyton Jones, "Refinement Types for Haskell," ICFP, 2014.
Kudos to the authors for performing new analyses on a short timeline. The new benchmark numbers partially address my concerns and show clearly that LBAC outperforms CaMeL. I remain concerned about performance overhead: in benign scenarios, does using LBAC cause severe degradation, especially with policies but also without them? This echos my initial review, where I asked about whether this would work for a real agentic task, and the AC's request, for an evaluation on one or two agent LLM tasks. I feel that this question is not adequately addressed by describing how the LBAC agent might solve tasks, and the empirical data presented is also not sufficient because it hints at a potentially-severe penalty without fleshing out how serious the problem actually is. In particular, the AgentDojo utility comparison between policy vs. no-policy LBAC shows significant degradation (nearly 50%). This could be because this particular policy is particularly challenging, or it could be because using LBAC is generally onerous. (Also, the bibtex comparison doesn't measure utility, e.g., some measure of citation relevance or search efficiency). What does utility look like on these tasks with a traditional ReAct-style harness? I gather that many AgentDojo tasks require just 1-2 agent turns; is LBAC able to solve tasks that require several turns?
In light of AC guidance, I'd be willing to support acceptance even if utility results are weak, but if this is the case then it would be important for these limitations to be fleshed out: what is the performance cost, what failure modes are predominant, what are prospects for addressing them?
I remain concerned about performance overhead: in benign scenarios, does using LBAC cause severe degradation, especially with policies but also without them?
We analyzed the benign data for different types of failures. Without policies, there were 20 failures out of 84 benign runs:
- 9 were model refusals.
- 1 was a response that failed to compile within the retry limit
- 10 were utility failures
With policies, there were 47 failures out of the 84 benign runs:
- 26 were policy violations
- 1 was a model refusal
- 1 was a response that failed to compile within the retry limit
- 19 were utility failures
In summary, out of the 84 benign runs, LBAC is potentially accountable for 11 failures without policies and 46 failures with policies.
In particular, the AgentDojo utility comparison between policy vs. no-policy LBAC shows significant degradation (nearly 50%). This could be because this particular policy is particularly challenging, or it could be because using LBAC is generally onerous.
Our policies are necessarily conservative to guarantee security: we estimate at most ~52% of the benign runs could have completed and accomplished the task. The number of completable tasks is limited by the fact that some AgentDojo tasks require inherently hazardous data flows, such as performing tasks described in messages or external websites. Averaging across all models, TypeGuard achieves ~84% of the theoretical maximum utility under our policies.
Also, the bibtex comparison doesn't measure utility, e.g., some measure of citation relevance or search efficiency.
Each of the 100 tasks asked for 10 papers relevant to a CS topic. As a rough proxy for relevance, 97% of the conventional agent’s papers mentioned the task topic in the title or abstract, compared to 93% of the papers for TypeGuard. The TypeGuard agent sometimes returned fewer than 10 citations but produced no hallucinations, compared to the conventional agent's 19 hallucinated citations.
What does utility look like on these tasks with a traditional ReAct-style harness?
We agree that, excepting model refusals, current models under standard agent harnesses are unlikely to fail on the tasks in AgentDojo. Since 9 of TypeGuard's failures on benign tasks were due to model refusals, at best a ReACT-style harness would complete ~89% of tasks vs TypeGuard's 76%.
I gather that many AgentDojo tasks require just 1-2 agent turns; is LBAC able to solve tasks that require several turns?
Across all AgentDojo runs that TypeGuard successfully completes, the distribution of the number of agent calls is:
- 1: 2993
- 2: 1001
- 3: 457
- 4: 169
- 5: 76
- 6: 64
- 7: 4
- 9: 1
- 10: 1
The distribution of the number of tool calls (some tasks have high numbers due to iteration over large collections) is:
- <5: 1456
- <10: 1249
- <20: 689
- <50: 983
- 50+: 389
To summarize, TypeGuard successfully completes runs using 3 or more agent calls (16% of successful runs) and 20 or more tool calls (29% of successful runs).
It would be important for these limitations to be fleshed out: What is the performance cost, what failure modes are predominant, what are prospects for addressing them?
We will add the failure mode and performance analyses described above to the paper. We also expect that some basic fine-tuning using an LBAC-style harness would reduce failures.
Apart from performance, while LBAC is flexible in the sense that it enables agents to inherit any language-based guarantees, it of course relies on such guarantees being present in the first place. As the reviewer correctly notes, depending on the domain, encoding guarantees may either require developer effort or rule out legitimate agent behavior. We will update the paper to acknowledge this limitation explicitly.
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper suggests a language-based agent control (LBAC), a framework for programming agent control in agentic applications. The authors argue that current agents suffer from the tradeoff: restricted tools are safer, yet less expressive while code interpreters are more flexible, yet harder to steer. To enforce users' policies (the agent control), the LBAC requires agents to generate programs that are themselves well typed in the context of the code, means that instead of controlling the agent only through free texts (prompts) or tool restrictions, we should force an agent to generate code in a typed programming language, and reject any generated code that violates the typed policy. The implementation is based on: typed language is Haskell, and system name is TYPEGUARD.
Strengths and weaknesses
Strengths:
S1. The paper addresses a timely and important problem: code-generating agents are expressive, but their execution is difficult to control safely.
S2. The paper makes a useful connection between agent control and programming-language mechanisms such as types, effects, capabilities, and information-flow control.
S3. The motivating examples are intuitive. In particular, the bibliography example helps explain why unrestricted code interpreters are unsafe, while tool-only systems can be too ackward for solving the same task.
S4. The idea of treating the LLM as a typed-code generator, and using the host language as the safety boundary, is interesting and potentially useful.
S5. The recursive-subagent setting is one of the stronger parts of the paper: if subagents inherit the parent’s policy context, this could provide a clean way to control multi-step agent workflows.
Weaknesses:
W1. The paper flow is not clear enough. The motivation is too high level IMO, and I was not fully convinced why this framework is the right or practical solution for general agent control.
W2. The paper's novelty is not stated explicitly. Much of the safety seems inherited from existing Haskell mechanisms such as purity, abstract data types, EDSLs, Safe Haskell, and LIO. The paper should better separate what TYPEGUARD contributes from what the underlying host language already guarantees.
W3. The paper is difficult to read for an ML audience. Important concepts such as EDSLs, effect types, type-level policies, and information-flow control are introduced too quickly, without enough intuition/ reference/ examples.
W4. I'm concerned about the the evaluation. The comparison to CaMeL is limited to AgentDojo, and the results show comparable performance rather than a clear advantage, which raise the question why should one use TYPEGUARD. Under the important instructions attack, CaMeL even has slightly higher utility than TYPEGUARD, which is not discussed elaborately.
W5. The paper's motivation is that only tool use is ackward and too restricted while open code interepreter is too expressive. Therefore I find this as major limitation that these two options weren't evaluated in the paper, to deduce whether this motication is true in practice.
W6. The paper does not provide enough analysis of the benchmark results. It is unclear which attacks are actually prevented by TYPEGUARD, which tasks fail, how often the model fails to generate valid Haskell, how many retries are needed, and where the utility loss comes from.
W7. I'm concerned about the comparison to alternative safe-execution mechanisms, which seems too thin. The paper should discuss and ideally compare against other approaches such as sandboxed interpreters, OS/container sandboxes, WebAssembly/WASI-style capability sandboxes, runtime policy enforcement, and agent-specific verification frameworks (probably there are more, the idea is that this domain is well researched, and it should be addressed so we can take observations from it).
W8. The framework depends heavily on the developer correctly encoding the policy, exposing only safe functions, disabling unsafe language features, and implementing correct runtime checks. These assumptions deserve more explicit discussion / acknoledgement in limitation / or a suggestion that an agent will encode this, preventing human writing Haskell.
W8. The practical adoption story is unclear. Requiring developers to write Haskell scaffolding and policy encoded libraries may be a high barrier, especially for the broader ML/agent community.
Notes for clarity:
N1. Please clarify the term “programming model,” since some ML readers may confuse it with a learned model.
N2. Please add a clearer "what is new vs. inherited" table. This would help distinguish TYPEGUARD from Haskell, Safe Haskell, LIO, EDSLs, and prior PL/security work.
N3. Please add a short running example before introducing formal terminology. The paper currently assumes too much PL background.
N4. Please clarify the threat model. Is the goal to prevent prompt injection, unsafe code execution, data leakage, filesystem escape, or all of these?
N5. Please report more detailed benchmark results, including per-task failures, retries, type-check failures, latency, and ablations.
N6. Please compare more directly to alternative safe-execution approaches, not only to CaMeL.
Questions
Questions:
Q1. What exactly is the novel contribution of TYPEGUARD beyond wrapping LLM-generated code in existing Haskell type-system mechanisms and safe libraries?
Q2. In the Important Instructions setting, CaMeL obtains higher utility than TYPEGUARD. Do the authors have an explanation for this difference?
Q3. How often does the LLM fail to generate type-correct Haskell code, and how many retries are typically required? - or its not even a barrier.
Q4. What is the runtime and latency overhead of TYPEGUARD compared to CaMeL and standard tool-using agents?
Q5. Which AgentDojo tasks fail under the policy-enforcing version, and are these failures caused by over-restrictive policies, model errors, type errors, or implementation limitations?
Q6. How much developer effort is required to define a new policy and safe EDSL for a realistic agent application?
Q7. Can TYPEGUARD prevent unsafe behavior when the unsafe action is expressible through an allowed function but semantically undesirable?
Q8. The idea is that a developer is wiring the safe functions. What will happen is a developer exposes a more permissive function?
Q9. Its not clear if and how Haskell essential to the approach, or could the same framework be implemented in more similar languages?
Limitations
L1. The limitations are only partially addressed. The paper should more clearly discuss the dependency on developers correctly encoding policies in types and exposing only safe functions.
L2. The paper should better discuss practical adoption barriers, especially the requirement to write Haskell scaffolding and policy-specific safe libraries.
L3. The paper should also discuss the limited empirical scope, including the narrow comparison to CaMeL and the lack of evaluation against open interpreters, tools-only agents, or other safe-execution mechanisms.
Final justification
I am raising my score from 2 to 3 because the rebuttal provides new evidence on several key concerns, including stronger results over CaMeL, negligible retry rates, quantified implementation effort, and a clearer explanation of how TypeGuard inherits language-level guarantees while supporting incremental, data-dependent agent execution. However, I cannot raise the score further because the novelty relative to existing language-based mechanisms is still not sharply established in the paper, several clarity improvements are deferred to revision, and the evaluation does not yet convincingly show how much capability is sacrificed for safety on genuinely complex, multi-step agentic tasks.
Formatting concerns
Have'nt noticed.
1 comment
Rebuttal
We thank the reviewer for the detailed feedback. We address each weakness and question. We often refer to our updated evaluation in the answer to aNKY.
W1. The paper flow is not clear enough.
We will improve the flow by restructuring Section 2 (see W3) and clearly stating upfront why our non-standard definition of agent is novel (see W2).
W2. The paper should better separate what TYPEGUARD contributes from what the underlying host language already guarantees.
The core feature of TypeGuard is a non-standard definition of agent that 1) inherits arbitrary language-level guarantees and 2) allows observation of data. Property (2) is what separates agent from generating a program upfront: each agent call generates a program that may itself contain recursive agent calls, so generation unfolds incrementally in response to observed data rather than committing to a complete program before execution. Property (1) holds because every generated fragment is an ordinary program in the host language, and therefore subject to its guarantees.
W3. The paper is difficult to read for an ML audience.
We will make the following changes:
- We will restructure Section 2 so the definition of EDSL is in its own paragraph and introduced with the example.
- For specific language-based mechanisms (effect types, IFC, etc.), we will start the corresponding subsections with examples and the properties they illustrate, and emphasize the definitions of these terms as they are introduced.
W4. The comparison to CaMeL is limited to AgentDojo, and the results show comparable performance rather than a clear advantage.
We have significantly improved the scope of our evaluation and our results (Table A, answer to aNKY). TypeGuard now achieves higher utility than CaMeL across nearly all models and attack settings, completing roughly twice as many tasks with policies enforced and ~15% more without. We also evaluate the BibTex case study empirically (Table E, aNKY): a TypeGuard agent hallucinates 0% of citations, versus 2% for an ordinary tool-calling agent with web search.
W5. The paper's motivation is that only tool use is ackward and too restricted while open code interepreter is too expressive. Therefore I find this as major limitation that these two options weren't evaluated in the paper
Our "no-policy" setting for both CaMeL and TypeGuard (Table A, aNKY) allows the agent to write arbitrary code, and hence represents the open-code interpreter baseline. For a tool use baseline, see our BibTex evaluation (Table E, aNKY), a prototypical agentic task. The tool use baseline is not only less safe (it hallucinates citations), but also far less resource efficient than TypeGuard, because the model cannot outsource computation to the programming language: it uses ~4x more LLM calls, 2.5x more output tokens, and a whopping 65x more input tokens — since the model needs to read the data instead of just passing it to a program.
W6. It is unclear which… tasks fail, how often the model fails to generate valid Haskell, how many retries are needed, and where the utility loss comes from.
In practice retries are negligible: an average of 0.1 and a maximum of 3 retries per agent call (Table D, aNKY).
W7. I'm concerned about the comparison to alternative safe-execution mechanisms, which seems too thin. The paper should discuss and ideally compare against other approaches such as sandboxed interpreters, OS/container sandboxes, WebAssembly/WASI-style capability sandboxes, runtime policy enforcement, and agent-specific verification frameworks.
This is a great point, thanks for the opportunity to clarify. OS-based and language-based approaches provide orthogonal and complementary guarantees. Language-based approaches benefit from being finer-grained, because they can be specific to the application's logic: for example, our IFC and data provenance examples cannot be done with pure OS-level defenses. Conversely, OS-based defenses offer simpler and more robust protection when granularity is not needed: they are independent of any language-level machinery, and are the natural choice for whole-cloth restrictions such as fully blocking network or filesystem access. We will expand the LBAC vs systems-level defenses paragraph to add this comparison.
Compared to existing language-based mechanisms, a unique benefit of LBAC is that guarantees apply across agent-scaffold boundaries. Existing agent verification approaches generally apply to one agent call; because LBAC inherits its guarantees from the host language, they apply uniformly across the whole application.
W8. The framework depends heavily on the developer correctly encoding the policy, exposing only safe functions, disabling unsafe language features, and implementing correct runtime checks. These assumptions deserve more explicit discussion / acknoledgement in limitation / or a suggestion that an agent will encode this, preventing human writing Haskell.
We will explicitly clarify these points to make it clear that LBAC is about inheriting language-based guarantees, and still requires someone to correctly encode a guarantee in the first place.
Q1. What exactly is the novel contribution of TYPEGUARD beyond wrapping LLM-generated code in existing Haskell type-system mechanisms and safe libraries?
See our answer to W2: the core feature is a non-standard definition of agent that 1) inherits arbitrary language-level guarantees and 2) allows observation of data.
Q2. In the Important Instructions setting, CaMeL obtains higher utility than TYPEGUARD. Do the authors have an explanation for this difference?
This is no longer true: in our updated eval (Table A, aNKY), TypeGuard outperforms CaMeL across the board. The only exception is the no-policy setting with GPT 5.4 under tool instructions, where the difference is statistically insignificant.
Q3. How often does the LLM fail to generate type-correct Haskell code, and how many retries are typically required? - or its not even a barrier.
Retries are negligible: see our answer to W6.
Q4. What is the runtime and latency overhead of TYPEGUARD compared to CaMeL and standard tool-using agents?
Our overhead data (Table D, aNKY) shows that checking policies has negligible runtime overhead. TypeGuard's total runtime is about 3x CaMeL's, primarily because CaMeL generates a single program upfront, whereas TypeGuard performs additional LLM calls to generate programs in response to data (which increases expressiveness, and ultimately, utility).
Q5. Which AgentDojo tasks fail under the policy-enforcing version, and are these failures caused by over-restrictive policies, model errors, type errors, or implementation limitations?
We have updated our results with less restrictive but still secure policies (Table A, aNKY). Failures are almost all caused by policy violations, which must be conservative.
Q6. How much developer effort is required to define a new policy and safe EDSL for a realistic agent application?
This varies with the strength of the desired guarantee. Our safe Slack API for AgentDojo has about 200 lines of wrapper code, covering 16 API operations (sending messages, getting channel information, etc.), plus about 200 lines of generic code (calling out to Python functions, etc.) that can be reused across agentic applications.
Q7. Can TYPEGUARD prevent unsafe behavior when the unsafe action is expressible through an allowed function but semantically undesirable?
No—but note that language-based techniques can be much more expressive than banning unsafe functions: they can constrain sequences of operations (as in IFC, where reading untrusted data restricts later writes) or the specific arguments passed. If the unsafe action is still expressible within these constraints, TypeGuard cannot prevent it. Additionally, language-based defenses can be layered with probabilistic (model-level) or systems-based ones to get the best of both worlds.
Q8. What will happen if a developer exposes a more permissive function?
As an example, consider the BibTex EDSL from Sec. 2. Recall that it only provides one function for writing to a file, appendToBibFile :: FilePath -> Trusted Bib -> BibIO (), which prevents the agent from writing arbitrary (hallucinated) text to the bibliography file. A developer could "expose a more permissive function" in two ways:
- If we merely make the standard, unrestricted file write function (
writeToFile :: FilePath -> String -> IO ()) available to the agent, it won't break the no-hallucination guarantee: this function has the wrong return type —IOinstead ofBibIO— so thanks to Haskell's type system, the agent cannot call it inside theagentcall that is required to returnBibIO. - If, on the other hand, the developer adds a function
unsafeAppendToBibFile :: FilePath -> String -> BibIO ()to the EDSL (i.e. one that takes an unrestricted string, but returns aBibIO), then the no-hallucination guarantee will be gone. But adding such a function is an explicit policy decision by the EDSL developer.
This illustrates that policies are defined not merely by the set of functions available to the agent, but also by how their type signatures interact, and by any runtime checks the EDSL implements (illustrated in our LIO case study, Sec 4.3).
Q9. Its not clear if and how Haskell essential to the approach, or could the same framework be implemented in more similar languages?
This is a key strength of LBAC: nothing is specific to Haskell! Haskell's strong guarantees and language-based mechanisms made it a good implementation choice, but other languages with language-based enforcement could also be used (e.g., Lean).
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The combinations of static typing and runtime enforcement are used to guarantee well-typed programs satisfy user-specified policies. Thus, authors introduce a programming model for agent application to the problem of agent control that brings techniques programming languages and language-based security (strong control with high expressiveness). Specifically, the authors treat agent controls as a programming-language enforcement problem and agent generate code in typed pure host language and the code must type-check against a policy encoding type before execution. Authors conduct experiments with three cases such as filesystem capabilities, data provenance, and information-flow control.
Strengths and weaknesses
Strength:
-
Relying on the set of LLM instruction (Prompt), authors frame agent safety or control as typed language problem. This is good framing and motivation. Because LLM behaviors are prompt level constraint. As authors mentioned, type checker becomes an external verifier that rejects policy violation generated by programs before execution.
-
LBAC leverages the shared language to provide unified guarantor across the entire agentic application beyond their original focus on prompt injection. This supports wide range of agent behavior without compromise security. The same framework can express and control data provenance, filesystem capabilities, and information-flow control.
-
The proposed approach is kind of hierarchical and recursive to control the agent, which is strong design for multi-agent systems. Specifically, subagents inherit the surrounding policy, and the parents can impose strict policy on a child subagent.
-
LBAC utilized dual-LLM pattern against prompt ejection by partitioning the agent into privilege LLM, which is important concept tools access is controls unseen untrusted data and quarantine LLM.
Weaknesses:
-
The main limitation of this approach is its limited empirical evaluation, although the authors refer to Tables 1 and 2 in the main paper (presented in the appendix). It is mentioned in line 38 that the proposed approach is supporting wide range of polices such as fine-grained capabilities. However, this is not supported by experiments. The evaluation is somehow narrow. A single benchmark and three illustrative examples are not very convincing that the approach scales to diverse, real-world workflows. More varied tasks, longer chains of agent interaction, and different policy combinations would be needed to back up the claims.
-
Authors claims that their method provides a general programming model for agent applications or systems, however, the evaluation is limited and does not sufficiently cover code agents, browser agents, multi-agent systems, or RL-style settings. As a result, the evidence is insufficient to establish the method’s broad practical applicability.
-
In the appendix, Tables 1, 2, and 3 compare the no-policy and with-policy settings. TypeGuard completes only 36/105 and 33/105 tasks, suggesting that the practical overhead of enforcing strict policies remains substantial.
-
The paper presents recursive, hierarchical agents as a key strength, but there is no clear stress-testing of that feature. It would be important to have experiments that explicitly probe how subagent outputs are prevented from leaking information and how recursion depth is bounded to avoid infinite type-checking loops.
-
Tying the implementation to Haskell and its advanced type-level machinery could be a practical obstacle. It is not clear if developers without deep functional-programming expertise could easily adopt this, and the paper doesn’t discuss a credible path to more mainstream languages.
-
What happens when the LLM repeatedly fails to produce type-correct code? There is no failure rates, typical retry counts, and the effect on overall completion time. Without that, the reliability of the whole pipeline is an open question.
-
The quality of the writing needs careful revision. As example authors repeated define abbreviation that have already introduce (“EDSL” is defined on line 88 and then defined again on line 142).
Questions
Q1. How can the authors justify broad application of the proposed approach without strong evaluation across code, browser agents, multi-agent systems and RL style setting?
Q2. How does the proposed approach support a wide range of policies (line 38), such as fine-grained capabilities, given that this claim is not supported by the experiments?
Q3. Given Table 1 and Table 2 (appendix), the TypeGuard (proposed approach) completes only 36/105 and 33/105 tasks in some settings, does enforcing strict policies introduce a substantial practical cost?
Q4. What happens when the LLM repeatedly fails to produce type-correct code?
Limitations
Yes
Final justification
I appreciate the new results added in the rebuttal and acknowledge the significant effort made in such a short time. The authors have answered several of my comments satisfactorily.
However, concerns remain regarding the broader practical applicability and the operational overhead required to enforce strict policies in real-world settings.
I updated my evaluation accordingly.
Formatting concerns
No
1 comment
Rebuttal
We thank the reviewer: their questions helped us sharpen the evaluation claims. Tables A-E contain our new results.
limited empirical evaluation
We expanded our AgentDojo evaluation and obtained considerably stronger results. Our changes fall along three axes:
- New models (Opus 4.7, 4.8, Sonnet 5) and baselines (security/utility for no-policy variants of CaMeL and TypeGuard).
- Adversarial security evaluation: we simulate worst-case injections by forcing compromised subagents to directly attempt attacker instructions. TypeGuard's policies block all exfiltration attempts; up to 42% succeed without policies.
- Substantial utility improvements from simplified policies that follow a classical "low-watermark" [1] principle in security: when an agent reads untrusted data, its privilege lowers to the privilege of the data's source.
We ran our experiments with three additional models (Opus 4.7, 4.8, Sonnet 5). We evaluate both TypeGuard and CaMeL with and without policies enabled. The Slack suite consists of 21 user tasks and 5 injection tasks. Attacks in AgentDojo use every possible (user task, injection task) pair for a total of 105 possible tasks. Our new results are below. Best scores are bolded.
Table A - Utility (Tasks Completed, Higher is Better)
| System | Model | No Attack (/21) | Direct (/105) | Important Instr. (/105) | Tool Instr. (/105) |
|---|---|---|---|---|---|
| Ours | Opus 4.7 | 10 | 52 | 51 | 50 |
| Opus 4.8 | 9 | 49 | 47 | 45 | |
| GPT 5.4 | 10 | 51 | 48 | 49 | |
| Sonnet 5 | 8 | 43 | 46 | 40 | |
| Ours (no policy) | Opus 4.7 | 18 | 88 | 84 | 92 |
| Opus 4.8 | 16 | 93 | 90 | 92 | |
| GPT 5.4 | 16 | 84 | 80 | 79 | |
| Sonnet 5 | 14 | 78 | 78 | 79 | |
| CaMeL* | Opus 4.7 | 5 | 24 | 23 | 22 |
| Opus 4.8 | 6 | 30 | 29 | 30 | |
| GPT 5.4 | 5 | 23 | 26 | 25 | |
| Sonnet 5 | 4 | 25 | 23 | 23 | |
| CaMeL (no policy) | Opus 4.7 | 15 | 69 | 69 | 73 |
| Opus 4.8 | 16 | 78 | 82 | 82 | |
| GPT 5.4 | 17 | 82 | 82 | 84 | |
| Sonnet 5 | 13 | 56 | 58 | 55 |
*We ran CaMeL in both "strict" or "normal" mode, and found essentially no difference (all cells within 4% of each other). We report strict mode.
In terms of attack resistance, across all systems, models, and injection types, every configuration resisted all 105 attacks. This includes our system, our system without policies, CaMeL, and CaMeL without policies, evaluated with Opus 4.7, Opus 4.8, GPT 5.4, and Sonnet 5 on direct, important-instruction, and tool-instruction injections.
TypeGuard achieves higher utility than CaMeL across nearly all models and attack settings, completing roughly twice as many tasks with policies enforced and ~15% more without. TypeGuard's utility failures without policies are mostly due to model refusals.
Current models resist all attacks in AgentDojo even without any policies. However, as Simon Willison [3] argues, security is a binary property: a system that leaks data in 1% of scenarios is insecure, not "99% secure". Indeed, prompt injection attacks are constantly evolving, and GPT-Red, an automated red-teaming system from OpenAI, consistently circumvented the defenses in GPT-5.5 [2].
Motivated by this insight and by the reviewer's feedback, we ran an adversarial security evaluation that shows that TypeGuard's policies prevent data exfiltration even when subagents are fully compromised.
experiments that explicitly probe how subagent outputs are prevented from leaking information
We conducted an adversarial evaluation with deliberately compromised agents. In TypeGuard, all data is read through recursive calls to agent, which receive prompts of the form "Task: {task} Input: {input data}". We modified TypeGuard's code so that whenever a subagent receives input data containing the string "TODO:" (the AgentDojo direct injection format), the prompt is replaced with only the input data. This simulates a worst-case injection: the subagent executes the attacker's instructions directly, rather than merely being exposed to them. We ran all 105 (injection, task) pairs in the Slack suite 7 times. Our results are below:
Table B - Adversarial — Security (Injections Resisted, Higher is Better)
| System | Model | Resisted (/735) |
|---|---|---|
| Ours | Opus 4.7 | 734* |
| Opus 4.8 | 731* | |
| GPT 5.4 | 725* | |
| Sonnet 5 | 722* | |
| Ours (no policy) | Opus 4.7 | 425 |
| Opus 4.8 | 460 | |
| GPT 5.4 | 670 | |
| Sonnet 5 | 540 |
Table C - Adversarial — Utility Under Attack (Tasks Completed, Higher is Better)
| System | Model | Utility Under Attack (/735) |
|---|---|---|
| Ours | Opus 4.7 | 351 |
| Opus 4.8 | 312 | |
| GPT 5.4 | 290 | |
| Sonnet 5 | 294 | |
| Ours (no policy) | Opus 4.7 | 523 |
| Opus 4.8 | 557 | |
| GPT 5.4 | 256 | |
| Sonnet 5 | 494 |
*All violations with policies enabled occur in one injection task where AgentDojo's scoring has a false positive: it counts accessing a static URL as a successful injection. TypeGuard does not prevent accessing the URL itself; it is not a security violation. It would deny the request if the URL contained a parameter leaking data, as well as subsequent privileged actions based on the page's contents (due to the possibility of prompt injections). We manually reviewed all 28 cases and found no security violations.
Without policies, up to 42% of injections succeed depending on the model. With policies enforced, TypeGuard resists all injections; the few flagged violations are scoring false positives (see Table C note). The same evaluation is not possible with CaMeL: in CaMeL the agent is unable to read data altogether (at the cost of utility, as shown in the non-adverserial evaluation).
Tying the implementation to Haskell and its advanced type-level machinery could be a practical obstacle.
EDSLs can be thought of as APIs that encode security invariants in types. These APIs can be defined once by an engineer with domain expertise (e.g. a security engineer could create an EDSL wrapper for the Slack API) and used by agent developers with no expertise. Coding agents also make it easier to code in Haskell.
no failure rates, typical retry counts, and the effect on overall completion time.
We report per-run aggregates on our AgentDojo results below. Retries are negligible: an average of 0.1 and a maximum of 3 retries per agent call (there may be multiple agent calls per run).
Table D - Number of Retries
| Model | Avg retries per run | Runs exceeding retry limit | % of time on retries |
|---|---|---|---|
| opus-4.7 | 0.05 | 0/672 | 0.7% |
| opus-4.8 | 0.14 | 5/672 | 5.0% |
| sonnet-5 | 0.14 | 2/672 | 2.3% |
| gpt-5.4 | 0.19 | 0/672 | 4.4% |
| all | 0.13 | 7/2688 | 3.4% |
Q1. How can the authors justify broad application of the proposed approach without strong evaluation across code, browser agents, multi-agent systems and RL style setting?
We agree with the reviewer that evaluation across code, browser, multi-agent, and RL settings would strengthen the paper. However, evaluating a policy-based defense in a new domain requires deciding what policies to enforce there. We could do this systematically in AgentDojo benchmarks because these came with clear policies, but other domains would require making these decisions from scratch, which is an open research question in itself. TypeGuard's guarantees are inherited from the host language, so mechanisms transfer across domains: only policies are domain-specific. We think our paper opens the opportunity to design a new family of agent benchmarks with clearly specified policies, and will discuss this as future work.
Q2. How does the proposed approach support a wide range of policies (line 38), such as fine-grained capabilities, given that this claim is not supported by the experiments?
The two case studies (data provenance and filesystem capabilities) illustrate different properties TypeGuard can enforce, and both are implemented in the provided code. We did not include empirical results for these cases because the properties are deterministically enforced by the programming language with no failure rate to measure
We have run an additional experiment with the BibTex case study. We evaluated on 100 tasks where an agent must search the web and write a BibTeX file of citations for a computer science topic. A citation is hallucinated if its authors, year, or DOI are incorrect. We compared 1) an agent implemented in TypeGuard using opaque types to enforce data provenance (from CrossRef) 2) a vanilla pydantic_ai agent with a web search tool. Both agents used Sonnet 5. The pydantic-ai agent writes the citations itself from search results and memory, so it can invent details such as DOIs. As expected, TypeGuard prevents citation hallucinations.
Table E - BibTex Evaluation - Lower is Better
| Hallucinated Citations | |
|---|---|
| pydantic-ai agent + web search tool | 19/1002 |
| TypeGuard | 0/925 |
Q3. Given Table 1 and Table 2 (appendix), the TypeGuard (proposed approach) completes only 36/105 and 33/105 tasks in some settings, does enforcing strict policies introduce a substantial practical cost?
Under our new policies, TypeGuard outperforms CaMeL. While there is still a drop in utility, this is a fundamental limitation of any policy-based deterministic defense. Recent work [4] at ICLR 2026 argues that even though they have false positives, deterministic defenses can still be useful as a safe way to avoid user approvals in human-in-the-loop systems.
Q4. What happens when the LLM repeatedly fails to produce type-correct code?
If the LLM repeatedly fails to produce well-typed code, a runtime error is thrown. This happened for a negligible amount of runs in our experiment (0.26%). LIO may also throw runtime errors because it is a dynamic information-flow control system (policies are not checked statically). See Table D for data on failure rates and retries.
Citations
[1] K. J. Biba, "Integrity Considerations for Secure Computer Systems," MITRE ESD-TR-76-372, 1977.
[2] OpenAI. "GPT-Red: Unlocking Self-Improvement for Robustness." 2026.
[3] S. Willison, "You can't solve AI security problems with more AI," 2022.
[4] Optimizing Agent Planning for Security and Autonomy. ICLR26.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We sincerely appreciate the Area Chair’s positive assessment of the paper and, more broadly, the view that PL and systems approaches to agent control should be encouraged at AI conferences. We believe we have addressed all comments. If we misunderstood any of the questions, please let us know and we will address any further feedback.
We expanded the discussion to compare TypeGuard with IsolateGPT, PASS, Safety Chip, and Invariant, as well as with OS-, container-, and capability-based sandboxes. We clarify that these approaches are complementary and can be used together. Systems-level mechanisms provide simple and robust enforcement of coarse restrictions, such as disabling network or filesystem access, while TypeGuard provides finer-grained, application-specific guarantees, such as information-flow control, data provenance, restrictions on operation sequences, and constraints on function arguments. A system can therefore use OS-level isolation as an outer boundary while using TypeGuard to enforce policies within the application. Unlike approaches whose guarantees apply only to a single agent execution, TypeGuard’s guarantees hold across recursive agent calls and the surrounding scaffold.
We substantially expanded the existing AgentDojo evaluation and significantly improved our results. We use the same 21-task Slack benchmark, but added three models, no-policy data for both TypeGuard and CaMeL, and new, less restrictive policies based on a low-watermark principle. Across all 105 task–injection pairs and four models, TypeGuard completes roughly 2× as many tasks as CaMeL with policies enabled and about 15% more without policies.
Because current models resisted the standard AgentDojo injections even without policies, we also added a stronger adversarial evaluation. We directly simulate compromised subagents by replacing their prompts with attacker-controlled input and run all 105 task–injection pairs seven times. Without policies, up to 42% of attacks succeed. With TypeGuard’s policies enabled, all exfiltration attempts are blocked; the few benchmark-reported violations are scoring false positives that we manually verified.
We also added a separate 100-task BibTeX evaluation. TypeGuard produced 0 hallucinated citations out of 925, compared with 19 out of 1002 for a standard tool-calling agent. The tool-calling baseline also used about 4× more LLM calls, 2.5× more output tokens, and 65× more input tokens.
We clarified that OS and container sandboxes are effective for coarse restrictions such as disabling network or filesystem access. TypeGuard can additionally enforce application-specific properties that are difficult to express at the systems level, including information-flow policies, data provenance, restrictions on operation sequences, and constraints on function arguments. These guarantees apply across agent calls and the surrounding scaffold. TypeGuard can also be layered with systems-level defenses so that each mechanism enforces the properties for which it is best suited.
We will incorporate these comparisons, results, and clarifications into the revised paper.