# What structural signals indicate taint-label divergence between a capability token's declared flow policy and the actual provenance chain of the arguments it authorizes **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where an agent A delegates a tool call or sub-agent invocation to agent B by minting a capability token whose payload carries an information-flow label (e.g., `{confidentiality: secret, integrity: untrusted}`) intended to constrain how B may combine its inputs. Does not apply to single-agent prompt-level guardrails or to purely discretionary ACLs with no label lattice. ## Core Distinction A capability token asserts two things simultaneously: *authority* (B may invoke operation X on resource R) and *flow policy* (the results of that invocation inherit label L, and inputs must satisfy a dominance constraint). The non-obvious failure is that the token's flow policy is a **declaration about the future**, while the label lattice is enforced against the **provenance of the past** — the actual chain of labels attached to each argument B received. These two are reconciled by an implicit invariant: *the label declared in the token must dominate the join of the labels of every argument the callee actually uses*. When B synthesizes, summarizes, or re-derives an argument from context rather than passing a labeled reference, the provenance chain is severed and the join silently collapses to `⊥` (public/untainted). The token still validates, the operation still executes, and taint is laundered through the callee's own reasoning step. This is distinct from a schema mismatch or an expired token. Those are *authority* failures and are caught by signature/expiry checks. This is a *provenance* failure: the authority is valid, the flow constraint is arithmetically satisfied, and the constraint is nonetheless violated because the operand it was checked against was fabricated by the model rather than traced to its source. ## What Was Observed Setup: agent A (holding a `secret`-labeled document) must summarize a field and pass it to agent B, which holds a capability token `cap{op=write_external, flow: out ⊑ {confidentiality: public}}`. The token's flow policy states: any value written externally must be dominated by `public`, i.e., must not carry `secret` confidentiality. The intended enforcement is a dominance check `label(arg) ⊑ public` where `label(arg)` is the join of provenance labels on the argument's derivation chain. Trace observed across three runs: 1. A constructs a structured argument `{"summary": ""}` and attaches provenance metadata `prov: [doc_7(secret)]`. The runtime's join yields `label = secret`. The dominance check `secret ⊑ public` fails. **Correct rejection.** This is the happy path and it works. 2. A, under a slightly different prompt, emits the argument as a **free-text restatement** rather than a structured field: `{"summary": "the report indicates a 12% shortfall"}`. The model did not carry the `prov` annotation because the tool schema for B's `write_external` accepts `summary: string` with no provenance slot, and A's serializer dropped the annotation when coercing to the schema. The runtime joins over an empty provenance set → `label = ⊥ = public`. Dominance check `public ⊑ public` passes. **Silent laundering.** The string is a paraphrase of secret content; the label is gone. 3. A more subtle variant: B receives a labeled reference but *re-derives* the value internally ("let me restate what the caller means") before writing. B's own context holds the labeled value, but B's output token stream is generated, not copied. The provenance of a generated token is `⊥` unless B's runtime propagates the join of B's *entire input context* onto every token it emits. Most runtimes propagate provenance only on structured copy operations, not on generation. So B's re-derivation strips the label even though B "saw" the secret. The structural signal that distinguished the failing runs from the passing run was not in the token, not in the signature, and not in the schema. It was: **the argument's provenance set was empty (or `⊥`) while the callee's input context was non-`⊥`**. An empty provenance set on a value that was demonstrably derived from a labeled context is the fingerprint of severed provenance. The runtime had no invariant asserting "generated output inherits the join of the generating context's labels," so the empty set was interpreted as "untainted" rather than "unknown." ## Condition of Validity The dominance check `label(arg) ⊑ token.flow.out` is sound **only if** the following holds for every argument: ``` label(arg) = join( provenance_chain(arg) ) where provenance_chain is non-empty ``` and the runtime enforces a *totality* condition: every value passed across a capability boundary must carry a provenance chain that terminates in a labeled source, and a value with an empty chain is treated as `⊤` (top, fully tainted / unconstrained-unknown) rather than `⊥` (bottom, public). The failure above occurs precisely because the default was inverted: empty provenance was read as public, when the only safe reading of "no provenance recorded" is "provenance unknown, therefore assume maximum." The condition of validity therefore includes a **generation rule**: any token emitted by a model whose decoding context has join-label `L` must itself carry label `L`, unless a declassifier explicitly downgrades it with a recorded justification. Without this rule, every generation step is a declassification primitive, and the model performs declassification implicitly and silently. ## Decision Boundary The boundary is between two runtime designs: - **Copy-provenance runtimes** propagate labels only on structured copy/move operations. These are correct for data pipelines and *unsound* for LLM-mediated flows, because the dominant operation in an LLM agent is generation, not copy. Under copy-provenance, the check `label(arg) ⊑ flow.out` is a check on a value that the model produced, and the model's production step is outside the label system. - **Context-join runtimes** propagate `join(context_labels)` onto every emitted token and require an explicit `declassify(value, justification)` call to lower a label. These are sound but expensive: every generation carries the max label of the entire context, which means a long-running agent's context saturates to `⊤` and the capability becomes unusable for external writes after the first secret is seen. The practical decision boundary is: **if the callee can generate (not merely copy) a value that crosses the capability boundary, the runtime must either (a) use context-join propagation and accept context-saturation, or (b) forbid generation across the boundary entirely and require the callee to return a labeled *reference* that the caller resolves under its own label.** Option (b) — "no generated bytes cross the boundary; only references do" — is the only design that keeps the check decidable without context-join cost. It forces the architecture to separate *reasoning* (which may see secrets) from *emission* (which may not), with an explicit, audited declassifier in between. The signal to watch for at runtime: a capability invocation where `provenance(arg) = ∅` and `join(callee_input_context) ≠ ∅`. That combination is not "clean input"; it is the signature of a generation step that laundered a label. Treat it as `⊤`, reject, and log the declassification gap. ## Operational Effect Without the totality invariant, taint-aware capability tokens provide *authority* control with the appearance of *flow* control. The token still gates who can call what, so the system looks correct in authority tests. But the flow label is enforced against a provenance record that the model itself can empty by paraphrasing, and every paraphrase is an undeclared declassification. In deployments we observed, this manifested as: secret-derived summaries written to external sinks that passed every dominance check, because the check ran on a value whose provenance the serializer had dropped when coercing to the callee's `string` schema. The fix was not a stronger token — the token was correct — but a schema-level requirement that every cross-boundary field carry a `prov` slot, a runtime rule that empty `prov` means `⊤`, and a generation rule binding emitted-token labels to context join. The invariant to assert is: **no value crosses a capability boundary with an empty provenance chain; empty means top, not bottom; generation inherits context join unless explicitly declassified with a recorded justification.** ```python from dataclasses import dataclass, field from typing import FrozenSet, Optional # Label lattice stub: frozenset of taint atoms; empty = public (bottom), None = unknown (top). Label = FrozenSet[str] BOTTOM: Label = frozenset() TOP: Optional[Label] = None # sentinel for "unknown / unconstrained" class ProvenanceLaunderingError(RuntimeError): """Raised when a capability invocation would cross a flow boundary with a severed provenance chain (empty prov on a non-empty context).""" pass @dataclass class Value: payload: str prov: Optional[Label] # provenance chain join; None means unknown @dataclass class CapabilityToken: op: str flow_out: Label # max confidentiality allowed on emitted value def join(a: Optional[Label], b: Optional[Label]) -> Optional[Label]: if a is None or b is None: return None # any unknown taints to top return a | b def dominates(actual: Optional[Label], allowed: Label) -> bool: # actual ⊑ allowed. Unknown (None) never dominates a concrete bound. if actual is None: return False return actual.issubset(allowed) def invoke_capability( token: CapabilityToken, arg: Value, callee_context_label: Optional[Label], ) -> str: # Totality invariant: empty provenance on a value derived from a # non-empty callee context is the fingerprint of a generation step # that laundered a label. Treat as TOP, never as BOTTOM. if arg.prov == BOTTOM and callee_context_label not in (BOTTOM, None): raise ProvenanceLaunderingError( f"op={token.op}: argument has empty provenance but callee " f"context label={callee_context_label!r}; generation step " f"severed the provenance chain. Refusing to treat as public." ) effective = arg.prov if arg.prov is not None else TOP if not dominates(effective, token.flow_out): raise ProvenanceLaunderingError( f"op={token.op}: argument label {effective!r} does not dominate " f"within token flow_out {token.flow_out!r}; external write blocked." ) # Sound path: either the arg is genuinely public with an empty context, # or its provenance chain is intact and within bounds. return arg.payload ```