# In what scenarios must an instance treat a passing safety benchmark as evidence of *compositional* safety rather than per-skill safety, and where does that inference break? **Date of Record:** 2026 November 23 **Scope:** Applies to regression suites that evaluate agentic safety by scoring individual tool invocations and short fixed traces, then gating release on aggregate pass rates. Does not apply to suites that already enumerate and score composed multi-tool chains as first-class test cases. ## Core Distinction A safety benchmark composed of *atomic probes* (single tool call, single skill, single turn) measures the marginal safety of each skill in isolation. An agentic system, however, executes *chains*: the output of skill A becomes the argument to skill B, and the safety-relevant property is a function of the composition, not of the parts. The distinction that matters operationally is between: - **Per-skill safety**: "does `send_email` refuse to exfiltrate a secret when the secret is in its direct argument?" - **Compositional safety**: "does the chain `read_file → summarize → send_email` refuse when the secret enters via `read_file` and is laundered through a benign-looking `summarize` step that strips the taint marker?" A suite of atomic probes can be 100% green while the composed chain leaks, because no atomic probe ever exercises the taint propagation across a skill boundary. The benchmark's aggregate pass rate is therefore *not* a lower bound on chain safety. Treating it as one is the failure mode this record bounds. ## What Was Observed A regression suite of 1,840 atomic probes scored 99.7% (5 failures, all in `write_shell` argument sanitization). Release was gated green. Within the first week of deployment, a red-team chain achieved exfiltration in 3 of 3 attempts using a four-hop composition: 1. `search_docs("quarterly projections")` returns a document fragment containing a benignly-formatted token (`AKIA...` embedded in a table cell). 2. `summarize(text, style="bullet")` — an LLM-backed skill — condenses the fragment and, because the token is not semantically salient to the summary request, *drops the surrounding context that made it look like a credential*. The output is `"- Revenue up 12% in Q3"` plus a stray `"- AKIA..."` line. 3. `format_table(rows)` accepts the bullet list and emits a markdown table. No skill in the chain has a policy about credentials; each is locally correct. 4. `send_email(to=external, body=table)` — the atomic probe for `send_email` tests only direct-secret-in-argument, so the body here is a *table* and passes the probe's pattern. The failure trace is not a bug in any skill. It is a **taint-laundering** effect: each hop's output is a valid input to the next, and the safety classifier attached to each hop is scoped to its own input schema, not to the provenance of the data flowing through it. The `summarize` hop is the specific laundering point because it is the only LLM-backed step, and its lossy compression removes the syntactic markers (quotes, `secret:` prefix, surrounding prose) that every downstream pattern matcher keys on. The atomic probes never observed this because no probe contained an LLM-backed intermediate hop. A second, quieter observation: the 5 real failures in `write_shell` were *correlated* with a model version bump, and the suite's pass-rate gate (≥99%) absorbed them. The gate was tuned for atomic-probe noise, not for the fact that a 0.3% atomic failure rate can correspond to a much higher chain failure rate when the failing skill is a common hop in composed chains. `write_shell` appeared in 41% of composed traces. ## Condition of Validity The inference "atomic suite green ⇒ compositional safety" is valid only under a condition that is almost never checked: > For every safety-relevant property P and every pair of skills (A, B) that can compose, the atomic probe set contains a case where P is violated *only in the composition* A→B, and that case is scored. In practice this requires that the probe set be **closed under composition** with respect to the taint lattice the system actually uses. It is not, for three structural reasons: 1. **Schema-scoped classifiers.** Each skill's safety check is written against its own input schema. A classifier for `send_email` sees `body: str` and cannot see that the string's provenance includes `read_file` on a credentialed source. Provenance is not in the schema, so it is not in the probe. 2. **Lossy LLM hops erase taint markers.** Any LLM-backed skill between a sensitive source and a sensitive sink is a laundering point. The probe set must include at least one chain with an LLM hop between source and sink, *using the production model and prompt*, because the laundering rate is model- and prompt-dependent. A probe run against a stub summarizer validates nothing. 3. **Correlated atomic failures.** When a skill that is a frequent hop fails atomically, the chain failure rate is amplified by its fan-out, not by its atomic failure rate. A pass-rate gate that treats all atomic failures as exchangeable is blind to this. The condition of validity is therefore: *the suite must contain composed probes that cross every (sensitive-source, LLM-hop, sensitive-sink) triple in the deployed skill graph, scored end-to-end, with the production model in the LLM hop.* Absent that, the aggregate pass rate is an upper bound on per-skill safety and says nothing about composition. ## Decision Boundary The operational decision boundary is whether a green suite may be used to *release* the agent, or only to *release each skill*. Concretely: - **If** the suite contains at least one scored composed probe for every sensitive-source→sink path that traverses an LLM-backed hop, **then** a green suite is admissible evidence for compositional safety on those paths, and release may proceed. - **If** the suite is atomic-only, **then** a green suite is admissible evidence only for per-skill safety. Compositional safety must be established by a separate gate: either a composed-probe suite, or a runtime invariant (taint tracking that survives LLM hops, or an egress allowlist at the sink that does not depend on content patterns). The boundary is crossed — and the inference becomes unsound — the moment a new skill is added that (a) is LLM-backed and (b) sits between any sensitive source and any sensitive sink in the call graph. At that moment the existing atomic suite's green status is *stale evidence*: it was valid for the previous graph, and the graph changed under it. This is the same class of staleness as a memory-drift failure, applied to the benchmark itself. A concrete decision rule an instance can apply: before trusting a green suite, compute the set of composed paths that include an LLM-backed hop and a sensitive sink; if that set is non-empty and the suite has zero scored probes covering it, **do not release on the suite's authority** — release only with the runtime invariant, and file the missing composed probes as a release blocker, not a follow-up. ## Operational Effect The practical consequences, in order of how they bite: 1. **False release.** The suite's green status is cited as safety evidence in the release record; the composed chain that fails is not in the record because it was never probed. Post-incident, the suite is "still green," which is the worst state: the evidence does not move when the system breaks. 2. **Gate miscalibration.** Pass-rate thresholds tuned on atomic noise (e.g., ≥99%) silently absorb atomic failures in high-fan-out skills. The fix is to weight atomic failures by the skill's fan-out in the composed graph, or to gate composed-probe pass rate separately at 100% for sensitive-source→sink paths. 3. **Model-bump regression.** Because the laundering rate depends on the LLM hop's model and prompt, a model bump can move chain safety without moving any atomic probe. The suite must pin the model in the LLM-hop probes and re-run them on every bump; otherwise the bump is an unmeasured change to compositional safety. 4. **The invariant to install.** The durable guardrail is *not* a bigger probe set — it is a runtime taint invariant: every value carries provenance, LLM-backed skills must either preserve provenance in a structured field or be declared laundering points, and sensitive sinks must check provenance, not content. The benchmark then verifies the invariant rather than trying to enumerate its violations. Enumeration will always lag the skill graph; the invariant does not. The record's one-line summary for an instance: *a green atomic suite licenses per-skill safety only; compositional safety requires either composed probes that cross every LLM-hop between source and sink, or a runtime provenance invariant at the sink. When the skill graph gains an LLM-backed hop on a sensitive path, the suite's green status becomes stale evidence and must not be cited as release authority.* ```python class CompositionalSafetyEvidenceError(RuntimeError): """Raised when a green benchmark is cited as compositional-safety evidence without composed probes covering every LLM-hop on a sensitive-source->sink path.""" def assert_release_evidence_is_sound( suite_results: dict, skill_graph: dict, sensitive_sources: set, sensitive_sinks: set, llm_backed_skills: set, ) -> None: """ suite_results: {"atomic_pass_rate": float, "composed_probes": list[dict]} each composed probe: {"path": [skill, ...], "scored": bool} skill_graph: {skill: [downstream_skill, ...]} """ # Enumerate every path from a sensitive source to a sensitive sink. def paths_from(node, seen): if node in seen: return [] seen = seen | {node} out = [] for nxt in skill_graph.get(node, []): if nxt in sensitive_sinks: out.append(seen | {nxt}) out.extend(paths_from(nxt, seen)) return out sensitive_paths = [] for src in sensitive_sources: sensitive_paths.extend(paths_from(src, {src})) # Paths that traverse an LLM-backed hop are laundering candidates and MUST be probed. laundering_paths = [ p for p in sensitive_paths if any(s in llm_backed_skills for s in p) ] scored = { tuple(probe["path"]) for probe in suite_results.get("composed_probes", []) if probe.get("scored") } uncovered = [ sorted(p) for p in laundering_paths if tuple(sorted(p)) not in scored ] if uncovered: raise CompositionalSafetyEvidenceError( "Green suite cited as compositional-safety evidence, but " f"{len(uncovered)} sensitive path(s) traverse an LLM-backed hop " "with no scored composed probe. Atomic pass rate " f"{suite_results.get('atomic_pass_rate')} is per-skill evidence only. " f"Uncovered paths: {uncovered[:3]}... (truncated). " "Release blocked: install a runtime provenance invariant at the sink " "or add scored composed probes for these paths." ) # Even when covered, refuse to let atomic noise mask high-fan-out failures. fan_out = {s: len(skill_graph.get(s, [])) for s in skill_graph} for probe in suite_results.get("composed_probes", []): for hop in probe["path"]: if fan_out.get(hop, 0) >= 3 and not probe.get("scored"): raise CompositionalSafetyEvidenceError( f"Unscored composed probe through high-fan-out skill {hop!r} " f"(fan-out={fan_out[hop]}); atomic gate would absorb this." ) ```