Manuscript Offprint

arXiv:2610.05563

G-CARB: Graph-Localized Conformal Agent Risk Budget for Compositional Harm

Zijun Yu, Yu Gu, Vahid Partovi Nia, Masoud Asgharian

Zijun Yu ∗^{*}

Department of Mathematics and Statistics

McGill University

Montréal, QC, Canada

zijun.yu@mail.mcgill.ca

Vahid Partovi Nia

Department of Mathematics and

Industrial Engineering

Polytechnique de Montréal

Montréal, QC, Canada

vahid.partovinia@polymtl.ca

Yu Gu ∗^{*}

Department of Mathematics and Statistics

McGill University

Montréal, QC, Canada

yu.gu4@mail.mcgill.ca

Masoud Asgharian

Department of Mathematics and Statistics

McGill University

Montréal, QC, Canada

masoud.asgharian2@mcgill.ca

Abstract

Small language model (SLM) agents need safety controls that track consequences across tool calls with little monitoring overhead. A private read, for example, becomes a leak when a later action sends that data outside the system. We introduce CARB (Conformal Agent Risk Budget), which calibrates when to stop an agent using a ledger of harm incurred before stopping. Under exchangeable episodes, standard conformal risk control bounds this declared loss in expectation over calibration and a future episode. G-CARB selects scorer evidence along observable dependencies from private sources to outgoing actions. The ledger still covers the entire executed history, and computing the gate score requires no additional language-model inference. On AgentDojo replay with two 14B backbones, G-CARB roughly halves scorer-input records at intermediate risk budgets while improving autonomous task completion relative to full-prefix scoring; random context of the same size achieves similar gains. Controlled examples show how retaining the relevant dependency can further avoid stopping benign work.

1 Introduction

An agent reads a private certificate, copies a field into a note, and later emails that note outside the organization. Together, these actions leak the private field. Preventing the leak requires connecting the proposed send to the earlier read. Tool-using language models routinely act across such multi-step trajectories [Yao et al., 2023, Schick et al., 2023, Zhou et al., 2024, Deng et al., 2023]. Prompt-injection studies, agent-safety benchmarks, and workflow audits expose the risks of these linked actions [Greshake et al., 2023, Debenedetti et al., 2024, Zhan et al., 2024, Andriushchenko et al., 2025, Wu et al., 2026].

For small language model (SLM) agents, the safeguard should also be inexpensive. We use an external gate: the agent proposes a tool call, a lightweight scorer evaluates the available evidence, and a calibrated threshold determines whether execution continues. The gate tracks dependencies without invoking another language model at every decision.

∗^{*}Equal contribution.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: SLMs for Agentic Systems, Paris, France, 2026.

History and proposed send

Figure

Illustrated local labels: 0 at every step, despite the joint leak.

G-CARB

1 Private source

4 Carrier

5 External sink

At the send decision: current-action = send only; full-prefix = all five records.

The ledger covers every executed action, whatever the scorer context.

Figure 1: A leak across tool calls. The certificate, note, and external send form a private source-carrier-sink chain. G-CARB retains this chain; Full-prefix includes unrelated work. The illustrated local labels miss the leak. The executed-step baseline instead labels the first harmful event and divides by the executed action count.

Conformal risk control (CRC) bounds the expected loss it is given, so the choice of loss matters. Figure 1 illustrates how labels on individual actions can miss a leak. Even when the first harmful action is correctly labeled, dividing by many executed actions can make the harmful-step rate small. The probability of harm in an episode can remain high. We call this the control-unit mismatch and examine it with an executed-step-rate baseline. CORA represents the broader line of pre-action conformal control [Feng et al., 2026b].

CARB (Conformal Agent Risk Budget) evaluates each stopping policy with a global harm ledger: a record of declared harmful events across all actions executed before stopping. We replay each policy on logged episodes to obtain its losses, then apply standard CRC to calibrate the stopping threshold. Harm incurred before stopping remains charged.

G-CARB uses observable dependencies to select the records supplied to the scorer. This focuses scoring on relevant history while the ledger continues to cover every executed action. We evaluate the gate on two 14B agents in AgentDojo. Controlled examples examine when retaining the relevant dependency adds value beyond shortening context.

References (31)