Manuscript Offprint
arXiv:2610.38579Session-Bound Behavioral Watermarking for Autonomous LLM Agents
Md Facklasur Rahaman Deakin University Melbourne, VIC, Australia s226124006@deakin.edu.au
Yong Xiang Deakin University Melbourne, VIC, Australia yong.xiang@deakin.edu.au
Md Palash Uddin Deakin University Melbourne, VIC, Australia m.uddin@deakin.edu.au
Shang Gao Deakin University Melbourne, VIC, Australia shang.gao@deakin.edu.au
Guang Hua Singapore Institute of Technology Punggol Coast, Singapore guang.hua@singaporetech.edu.sg
Leo Yu Zhang Griffith University Gold Coast, Australia leo.zhang@griffith.edu.au
Abstract
Large Language Model (LLM) agents are increasingly acting through Web interfaces and external tools. They produce trajectories. Those trajectories may pass through several intermediaries. They can store, modify, or dispute those trajectories. In Web-based agent deployments, trajectories may pass through APIs, marketplaces, and tool servers. As such, a copied or disputed log may not by itself reveal which agent owner produced it. Behavioral watermarking can embed ownership evidence in agent action choices. However, existing methods mainly address detection, removal, rewriting, or imitation. They do not directly test whether repeated observation of watermarked trajectories enables cross-session forgery by exploiting learned action preferences. We formulate this learned-forgery threat and propose AgentAnchor, a session-keyed behavioral watermark for owner attribution from trajectory logs. We derive each step key from a secret key, a fresh public session identifier, and semantic states of recent observations, while a guarded digest of the action-policy state diversifies linear coding rows. It embeds parity evidence through a KL-bounded exponential tilt, and a trusted verifier checks a disputed log without rerunning the agent, using wrong-key calibration and abstention.
Keywords
Behavioral Watermarking, LLM Agents, Trajectory Attribution, Learned Forgery, Session-Keyed Watermarks
Consider a scenario where a vendor of a shopping agent provides an API for their marketplace and then disputes a purchase made through that agent. The concerned party, gateway or tool server, can have a copy of the trajectory. However, the log alone does not identify who created the trajectory. A behavioral watermark can address this problem by placing a keyed signal into the action choices performed by the agent. A verifier holding the owner's secret key can later check a copied log for this signal, as long as the copy keeps the actions and logged fields this check needs. There is a downside to using this method as well. The watermarked actions are visible to every party that sees the logs. If an attacker collects enough trajectories from the owner, the attacker may be able to determine what type of actions the watermark prefers in each specific scenario. The attacker may also be able to replicate this type of action in a new trajectory that has never been created by the owner.
Such a forgery may incorrectly attribute a damaging trajectory to the owner. On the Web, this could get an honest vendor blocked or blamed for fraud. This creates a security risk in addition to the ability to remove a watermark (which only renders an original trajectory unattributable). For text watermarks, an attacker who queried a watermarked model approximately learned its rules and spoofed watermarked text for under $50, with an average attack success rate above 80% [7]. Researchers have also investigated ways to protect ownership and verify it for other types of online resources such as black-box LLM service providers through fingerprinting [15], certified verification of training datasets [13], and graph-based data via watermarking [10]. Our focus is on the attribution of agent trajectories under two conditions. Firstly, the verifier relies on the structured logged trajectory and the owner's secret key, without rerunning the agent, and secondly, the parties who observe the logs should not be able to learn the watermark from them.
1.1 Related Work and Motivation
Behavioral watermarking embeds ownership evidence directly in an agent's decisions, which supports process-level provenance. Agent-Mark embeds identifiers through an agent's behavioral or tool-use choices using distribution-preserving sampling [6]. ActHook protects trajectory datasets by inserting trigger-activated hook actions that a trained model later reproduces [11], while SeqWM uses sequential transition patterns to preserve watermark detectability under trajectory corruption [1]. TRACE has two channels, which

(a) Why a recurring key leaks

(b) False claimed-owner detection

(c) False owner attribution
Figure 1: Learned cross-session forgery. (a) If the watermark key depends on context that recurs across sessions, an observer can learn its keyed preferences from logs and forge trajectories attributed to the owner. Our AgentAnchor binds the key to a fresh session identifier. (b, c) On ALFWorld, forgeries against AgentMark-style [6] and SeqWM-style [1] and session-free semantic keys pass more often as more logs are observed, while our AgentAnchor keeps them near zero.
are a content-keyed action-selection channel for deletion robustness and a structure-based tally channel for rewriting robustness. They are complementary to each other. [4]. TrajMark targets coding-agent trajectories by encoding an owner identifier through keyed READ actions and adding seals for local tamper localization [23]. These works show that agent behavior and trajectory structure can carry useful provenance signals. Other work protects related but different assets. AGENTWM biases functionally equivalent actions so imitation models can inherit detectable ownership evidence [17]. CoTGuard uses trigger queries to reveal copyright leakage in multi-agent reasoning [20], while MemMark embeds attribution signals in long-term memory writes and verifies them with cryptographic commitments and signed session anchors [24].
Our concern is with a different type of failure mode. The evaluations of these methods mainly measure detection by the verifier and whether an attacker can delete or rewrite trajectory records, imitate the agent, or tamper with the log. They do not directly test whether a party that observes many prior trajectories can learn enough about the watermark to forge a new trajectory that is falsely attributed to the owner. Several prior trajectory watermarks derive their randomness from contexts that may recur across runs, such as the step index [6], previous actions [1][4], or file names [23], so the same keyed preference recurs whenever that context recurs. Watermark behavior is also learnable from past outputs. For example, watermark distillation can train a model to reproduce text watermarks [5], and watermark stealing can approximate secret watermark rules well enough to spoof new text [7]. Figure 1 shows that the same threat is measurable for agent trajectories. In a post-hoc replay of our logged ALFWorld trajectories, we re-embedded the watermark under different step-key inputs while keeping everything else fixed, let an attacker learn keyed preferences from N observed watermarked logs, and used them to rewrite 50 unwater-marked trajectories (Appendix D). With N = 200, forgeries passed claimed-owner detection for 17, 9, and 41 of the 50 targets when the key used the step index with recent actions (AgentMark-style), the preceding actions (SeqWM-style), or our semantic state without a session identifier (Figure 1b), and 8, 4, and 21 were attributed to
the owner (Figure 1c). When the key also bound a fresh session identifier, only 1 forgery passed detection and none was attributed. This motivates the primary research question that we will address in this paper: Can a watermark remain verifiable from structured trajectory logs while limiting what an observer can transfer from previously observed sessions to a new one?
1.2 Our Approach and Contributions
We propose AgentAnchor, a session-keyed behavioral watermark for owner attribution from logged agent trajectories. Our primary idea is to bind every step key to a fresh session. So, keyed preferences learned from earlier sessions do not transfer to a new one, while semantic windows keep the key stable under renumbering and tolerant of moderate rewording. At each step, we score the admissible actions with the agent's own model to obtain an action distribution. We derive the step key using an HMAC over the owner's secret, a fresh public session identifier, and the semantic clusters of recent observations. The step key and a perturbation-tolerant digest of the most probable actions then derive a coding row and one parity bit of the owner's payload. We embed this bit through a KL-bounded exponential tilt of the action distribution toward one half of a keyed action split. During verification, we recompute the keys from the structured log and the owner's secret, decode the payload from the logged actions and probabilities, and calibrate the evidence against many wrong keys. We accept attribution only when the evidence is significant and supports a unique owner payload. Otherwise, we abstain. AgentAnchor builds on random linear payload coding from AgentMark [6] and the exponential tilt and wrong-key calibration used in SeqWM [1]. MemMark also puts dialogue identifiers in its keys, but it watermarks memory writes and does not test whether behavior learned from observed sessions can be forged into a new one [24]. Unlike distribution-preserving approaches [6], [4], [24], our tilt changes the action distribution, and our verifier relies on the logged action probabilities. We also assume that the deployment keeps the session identifier fresh and unaltered, for example by issuing it from the verifier. Our contributions are as follows.
- We develop a session-keyed behavioral watermark for LLM agent trajectories that separates semantic synchronization from multi-bit coding diversity. Semantic clusters of recent observations make the key independent of step numbers and tolerant of moderate rewording, while a perturbation-tolerant digest of the most probable actions provides diverse coding rows for owner identification.
- We study learned forgery of behavioral watermarks from previously observed trajectories. Deliberate session reuse creates transferable watermark behavior, while fresh session binding sharply limits cross-session forgery under the tested attackers. We have evaluated our AgentAnchor framework on ALFWorld (50 tasks) and on the 1,000-product subset of WebShop (WebShop-1K), a simulated e-commerce website.
2 Problem Statement and Design Goals
2.1 System Model
Agent and trajectory. We consider an owner who deploys an LLM agent to act on behalf of users. An episode begins with a goal and lasts for at most steps. At step , the agent receives a textual observation , such as the environment's response or the current page text, and a finite admissible action set , selects an action , and receives the next observation . The resulting sequence of observations and actions is the agent's trajectory. We require to be enumerable. This holds directly in text environments such as ALFWorld [16] and for Web interactions whose current page exposes links, buttons, and form actions. For free-form inputs such as WebShop search text [21], the agent model writes one search query greedily, without the key, and this query becomes the only admissible action. Because the owner controls the agent, it can score every admissible action with the agent's own model and construct an operational action distribution over . Without a watermark, the agent samples its action from , which is the baseline.
Trajectory log. Each decision step produces a public record containing the record index, task identifier, goal, observation , admissible set , fixed-point representation of , selected action , a public session identifier , the public codebook version, and the validity and source fields associated with . We call the ordered sequence of these records a trajectory log. Each trajectory forms one session, identified by a 128-bit public value that stays constant within the trajectory and should be fresh across trajectories. It must be unique but need not be secret or unpredictable. Our runs derive it by hashing the run, task, and counter. The owner logs so that the verifier can score actions without the agent model. The log contains no secret key , no watermark flag, and none of the agent's planning notes.
Parties and secrets. The embedding agent and verifier share a secret key . Each registered owner is represented by an -bit identifier , which the watermark carries as its payload. Our implementation uses , giving candidate identifiers. The verifier may be the owner or another party trusted with . Since a holder of can generate watermark evidence for any payload, we assume that parties entrusted with are honest.
Verifier. The verifier receives and either one trajectory log or several logs claimed to carry the same identifier. It also has the fixed public AgentAnchor configuration. It does not rerun the agent and does not access the agent model. The verifier may attribute the evidence to a unique decoded identifier , detect evidence for an identifier named before verification (for example, the owner claimed in a dispute) without unique attribution, or abstain.
2.2 Threat Model
Adversary. We consider a party that can observe trajectory logs produced by the owner's agent, such as an intermediary on the logging path. Following Kerckhoffs's principle [8], the adversary knows the embedding and verification algorithms, sentence encoder, semantic codebook, canonicalization rules, and all public parameters. It does not know , and we do not give it oracle access to the verifier. For the learned-forgery experiment, we also give it the agent's unwatermarked logs on the target tasks, with their logged action distributions, which it edits into forgeries.
Adversary goals. We consider two goals. The first goal is watermark removal, which modifies an authentic watermarked log so that the verifier no longer attributes it, while the resulting log remains usable as a trajectory. Our evaluation includes step renumbering, interface padding, probability re-quantization and perturbation, observation paraphrasing and round-trip translation, adaptive rewriting using the public codebook, step erasure, insertion, truncation, reordering and substitution, action renaming, and removal or replacement of session context.
The second goal is watermark forgery, which presents a trajectory that the owner did not produce and attempts to make the verifier attribute it to that owner. The implemented forgers observe watermarked trajectories, estimate action preferences from public states, and edit the selected actions of an unwatermarked trajectory, which we call the target. In the fresh-session condition, the target carries a session identifier absent from all observed trajectories. We also evaluate a session reuse condition where the attacker has already observed the target's session. This condition violates our freshness assumption below and measures the effect of losing session separation. Because attribution indicates that a log contains owner-generated watermarked steps, not that every action in it is authentic, we treat edited copies of authentic logs as removal attempts and reserve forgery for trajectories without owner-generated steps.
Assumptions and non-goals. We make five explicit assumptions and scope restrictions. Firstly, remains secret. Secondly, session identifiers are fresh and authentic, for example, issued and recorded by the verifier or by the marketplace or gateway that starts each session, so a verifier can check a logged against this record. Our AgentAnchor itself does not authenticate logs or prevent replay. A missing, malformed, or inconsistent session identifier causes the verifier to abstain. A different but syntactically valid identifier is processed as a different session and is evaluated as a session-replacement attack. Thirdly, the verifier trusts the logged values as the action distribution used at execution time. This trust matters for attributing genuine logs, but not for the fresh-session bound of Appendix B, which holds for any logged values. Probability edites are evaluated only empirically as removal attacks. Fourthly, AgentAnchor does not preserve the action distribution exactly. Finally, our empirical forgery results apply only to the implemented attackers.
2.3 Design Goals
Our first goal is log-based verification. Verification should use only the structured trajectory log, the secret key , and fixed public AgentAnchor parameters, without rerunning the agent, accessing its model, or reading the agent's planning notes. Our second goal is session-bound keying. The public session identifier should enter the HMAC-based key derivation so that, if HMAC is a pseudorandom function [2], a fresh session separates its keyed mapping from those of earlier sessions even when the same semantic context reappears. Our third goal is stable synchronization and coding, meaning that the verifier can recompute, from a possibly edited log, the same step keys and coding rows used during embedding. The key and coding-row derivation should therefore avoid direct dependence on record indices, log formatting, raw observation strings, and exact probability values. Our fourth goal is calibrated decisions with abstention. Under the wrong-key exchangeability null, detection and attribution should be calibrated at a declared significance level , and when the available evidence cannot identify one payload, the verifier should abstain rather than guess. Our fifth goal is bounded local distortion. At every embedded step, the modified action distribution should stay within a Kullback–Leibler (KL) divergence budget [9] of , which bounds how much each step's behavior can change, and should preserve its support.
3 AgentAnchor Framework
Our framework works in two phases. While the agent acts, each eligible step embeds one parity bit of the owner identifier in its action choice, and later a verifier with the secret key collects this evidence from the saved log to attribute it or abstain. Figure 2 illustrates our AgentAnchor framework. The primary settings described below were fixed before the held-out evaluation.
3.1 Embedding
Action distribution. At step , we build a prompt from the goal, the current observation, the last eight steps as plain text (each observation with its selected action), the admissible set , and a short ReAct-style [22] planning note, one reasoning sentence, and one subgoal, written by the same model. We score each using its length-normalized token log-likelihood under the agent model :
where is the sum of the log-probabilities that the model assigns to the tokens (subword units) of action given , and is the number of these tokens. Thus, actions that the model finds more likely after reading receive more mass, and dividing by stops long actions from losing mass only because they have more tokens. Eq. (1) defines the agent's policy over the finite set in our experiments, and we do not claim that it matches the LLM's true choice probabilities.
We quantize this distribution by largest remainder rounding to integer counts that sum to , so each probability has a resolution of . The agent logs this fixed-point distribution, and both the embedding agent and the verifier use exactly these values. The construction of requires local access to model token probabilities, whereas verification does not. Because the planning note is part of , it affects , but it is neither logged nor needed by the verifier.
Session-keyed semantic synchronization. We encode each observation with all-MiniLM-L6-v2, a small public sentence encoder [14][18] and assign it to its nearest semantic centroid. Let denote this cluster label. We use centroids fitted once by -means on 500 observations from non-evaluation scenes. The fitted centroids form a public codebook with version . We fixed this geometry on development data before evaluation. In a development sweep over , and both kept the cluster label of 56 of 58 validated moderate rewrites (96.6%), against 82.8% for and 93.1% for . In Appendix A, we report the full sweep.
For the current observation and the previous observations, where is the window length, we form the semantic window , using a fixed bootstrap symbol when history is unavailable. We then derive the step key
where is a fixed domain tag, and HMAC uses SHA-256.
The step key therefore does not directly depend on the record index, log layout, action text, or raw observation string. It depends on the observation through its semantic cluster sequence. Rewording preserves the same key only when the corresponding semantic labels remain unchanged, which held for 90.6% of step keys under moderate paraphrase (Appendix A). Because the fresh session identifier is also part of the HMAC input, distinct sessions use distinct key domains. Under the standard pseudorandom-function (PRF) assumption for HMAC [2], outputs for fresh session inputs are computationally indistinguishable from independent uniformly random values, even when the same semantic window recurs.
Coding row and payload bit. The semantic window takes only values after the first steps, so many steps share one window and would repeat the same coding row. We therefore derive the coding row from a second public state, the most probable actions under (Eq. (1)). We first map each action to a canonical label using fixed environment-specific rules, such as lowercasing and removing punctuation and extra spaces. Let the positive masses of be sorted as , and let be the set of canonical labels of the three most probable actions. If has at most three positive actions, the step passes. Otherwise, we require the coding-state guard
which skips steps whose third and fourth actions have nearly equal probability, where a tiny change could swap them. We fixed in an earlier pilot. On development data, it kept 77% of steps, and no one-quantum probability change altered . We hash together with the public coding settings (the coding-scheme tag, the top-3

Figure 2: Overview of the AgentAnchor framework
rule, and ) using SHA-256 to obtain a digest . Small probability changes that leave unchanged also leave unchanged.
We derive a nonzero L-bit coding row and the payload bit that step t carries as
(3)
where keeps the L least significant bits, is a fixed public tag that names the coding scheme, and is a retry counter incremented only if the truncated row is zero. We treat as a vector in , so is the parity of the payload bits that selects.
Keyed action partition and KL-bounded tilt. For each eligible step, we build R = 8 candidate keyed sign functions. For candidate j,
where is the canonical label of a. Each splits into a +1 group and a -1 group, which we call a keyed partition. We choose the candidate whose two groups have the most balanced probability
mass under , that is, whose signed mass is closest to zero:
We fixed R = 8 in development before evaluation. The mean per-step evidence at stays within 6% of its R = 8 value for R from 4 to 32 (Appendix A), so the choice of R has little effect.
For , we define
In words, scales the probability of each +1 action by and each -1 action by and renormalizes, while does the opposite. The tilt strength sets how much mass moves. We choose the largest such that
with nats (natural-log units), the largest value of our pre-registered sweep (Appendix A), and a numerical cap that never binds at this .
If , we sample from . Otherwise, we sample from . Exponential tilting preserves the support of , so the watermark cannot select an action to which the unwatermarked policy assigns zero probability. A step carries watermark evidence only when the logged is valid, at least two actions have positive support, the coding-state guard passes, and the selected keyed partition provides nonzero evidence. Otherwise, we sample directly from . The coding row, parity, keyed partition, and are not stored in the trajectory and are reconstructed during verification.
Effect of session binding. The keyed partition and coding row are both derived from . Therefore, under the PRF assumption (Section 3.1), previously observed sessions do not reveal the keyed row or partition of a fresh session, even when the same and recur.
3.2 Verification
Recomputation. Given a trajectory log and the secret key , we first check that all records contain one consistent, syntactically valid session identifier. Missing, malformed, or inconsistent session context produces no usable evidence and causes abstention. The verifier then recomputes the semantic labels and windows, step keys from Eq. (2), coding-state digests and rows from Eq. (3), and the keyed tilted distributions from Eq. (4). All required inputs other than come from the structured log or the fixed public configuration. Record indices are not used in the key or coding row, although the received record order determines the semantic windows.
Likelihood evidence. Let denote the usable eligible steps after exact duplicate records, such as copies inserted by an attacker, are removed. For each , we compute
measures how much more likely the selected action is under than under , so its sign points to the bit that the step carries. is the average of the two log-likelihoods and is the same for every candidate. For a candidate identifier , let and , which is the tilt direction of Eq. (4) that implies at step . Its score is
(5)
Thus, is the conditional log-likelihood of the observed eligible actions under key and candidate identifier . We decode
For claimed-owner detection, the identifier is fixed before verification, and we use directly. This keeps claimed-owner detection separate from open-set owner attribution.
Wrong-key calibration. The score distribution has no simple null form because candidate identifiers share coding rows and each step depends on its logged distribution. So, we compare the scores under with those under random keys , which the verifier
draws independently of the log. Each random key goes through exactly the same recomputation and scoring. We compute
is the -value for claimed-owner detection, and is the -value for open-set attribution using the best score over all identifiers. A small value means that the evidence under beats almost all random keys.
When the tested log carries no information about , is exchangeable with the random keys. The added one in Eq. (6), which counts itself among the keys, then gives [12], so such a log passes at significance level with probability at most . In Appendix B, we show that this bound also holds, up to a negligible term, for a forger trained only on other sessions. Session reuse is not covered, so we also evaluate learned forgery directly.
The maximization over all candidate identifiers is repeated under every random key. Hence, open-set search is included in the empirical null rather than treated as a collection of independent hypotheses. We use , with for clean final verification and in attack evaluation. Wrong-key calibration follows the general approach used by SeqWM [1].
Decision. For each usable step, the verifier also computes a public coding identity, a hash of the coding-scheme tag , the key design, the codebook version , , , and . Steps with the same identity have the same coding row. Let be the number of distinct identities in the verification unit, and let be the GF(2) rank of its coding rows.
We attribute the verification unit to only when , , and the maximum in Eq. (5) is unique. Rank below leaves a nontrivial kernel in the row matrix and therefore makes several identifiers structurally indistinguishable. Even at full rank, a score tie causes abstention. If unique attribution is unavailable but for a predeclared , we report claimed-owner detection. Otherwise, we abstain.
Pooling. For several trajectories claimed to share one owner identifier, we reconstruct each trajectory independently and concatenate their usable per-step evidence. We then compute the score of Eq. (5) and the -values of Eq. (6) on the combined evidence while computing and over the union of coding identities and rows. The same random key is used across every trajectory in a pooled verification unit. Pooling can therefore add coding diversity and statistical evidence when a single trajectory is insufficient. Our primary pooled evaluation uses disjoint groups of five trajectories.
4 Experiments and Analysis
We evaluate AgentAnchor on ALFWorld [16] and WebShop-1K [21] using the same frozen watermark core and pinned gamma-2-9b-it model. ALFWorld uses 50 held-out valid_unseen tasks across six task types with a 50-step cap. All design choices use only valid_seen data and were checked on 25 fresh confirmation tasks. WebShop-1K uses the official 1,000-product subset with its default attribute-and-option goals, since only 13 human-written instructions target this catalogue. It has 30 frozen goals with distinct
Table 1: Clean verification (). : verification units. Coded steps: share of logged steps carrying a coded bit. : mean distinct coding identities per unit. Rank-: units whose coding rows reach full GF(2) rank. Det.: claimed-owner detections. Exact: equals the owner identifier and passes the , and uniqueness checks before the test. Correct/Wrong: accepted attributions to the owner or another identifier. FD/FA: false detections and attributions on unwatermarked controls of the same tasks.
| Benchmark | Unit | n | Evidence | Watermarked | Unwatermarked | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Coded steps (%) ↑ | Rank- ↑ | Det. ↑ | Exact ↑ | Correct ↑ | Wrong ↓ | FD ↓ | FA ↓ | ||||
| ALFWorld | Single | 50 | 75.4 | 34.2 | 49/50 | 47/50 | 48/50 | 42/50 | 0/50 | 0/50 | 0/50 |
| Pool of five | 10 | 75.4 | 170.9 | 10/10 | 10/10 | 10/10 | 10/10 | 0/10 | 0/10 | 0/10 | |
| WebShop-1K | Single | 30 | 58.9 | 18.8 | 18/30 | 17/30 | 17/30 | 13/30 | 0/30 | 0/30 | 0/30 |
| Pool of five | 6 | 58.9 | 94.2 | 6/6 | 6/6 | 6/6 | 6/6 | 0/6 | 0/6 | 0/6 | |
Single-trajectory attribution is descriptive. On ALFWorld, its development-stage identification score (0.676) did not meet our preregistered 0.80 gate. WebShop-1K transfers the frozen ALFWorld operating point and has no separate single-trajectory identification gate.
Table 2: Learned forgery (a) and log transformations (b), all at and , where the smallest attainable equals . Header numbers are unit counts. (a) The attacker learns from owner-watermarked logs and rewrites unwatermarked targets. Overlap: target sessions seen during learning. FD/FA: forged units passing claimed-owner detection or owner attribution, worse than the weak and strong attackers. Pooled groups reuse trajectories across three fixed partitions. (b) Det.: detections. Correct (wrong): attributions to the owner (to another identifier). Pool: correctly attributed pools of five. : unadjusted exact McNemar against the clean row.
(a) Learned forgery: FD / FA
| Sessions | ALFWorld | WebShop-1K | ||||||
|---|---|---|---|---|---|---|---|---|
| Overlap | Single (50) | Pooled (30) | Overlap | Single (30) | Pooled (18) | |||
| Fresh | 10 | 0 | 0/0 | 0/0 | 10 | 0 | 0/0 | 0/0 |
| Fresh | 50 | 0 | 0/0 | 0/0 | 35 | 0 | 0/0 | 0/0 |
| Fresh | 200 | 0 | 0/0 | n/r | ||||
| Reused | 10 | 8 | 1/0 | 1/0 | 10 | 10 | 0/0 | 1/0 |
| Reused | 50 | 32 | 1/0 | 2/0 | 35 | 30 | 1/0 | 4/0 |
| Reused | 200 | 50 | 44/25 | 30/30 | n/r | |||
(b) Verification after log transformation
| Transformation | Family | ALFWorld | WebShop-1K | ||||
|---|---|---|---|---|---|---|---|
| Det. (50) | Correct (wrong) | Pool (10) | Det. (30) | Correct (wrong) | Pool (6) | ||
| None (clean) | - | 46 | 37 (0) | 10 | 18 | 13 (0) | 6 |
| Step renumbering | Restructuring | 47 | 37 (0) | 10 | 19 | 12 (0) | 6 |
| Interface padding | Restructuring | 47 | 38 (0) | 10 | n/r | ||
| shift () | Logging noise | 47 | 37 (0) | 10 | 17 | 14 (0) | 6 |
| relative noise (1%) | Logging noise | 44 | 30 (0) | 10 | 15 | 13 (0) | 6 |
| Moderate paraphrase | Rewriting | 44 | (1) | 10 | 16 | 12 (0) | 6 |
| Heavy paraphrase | Rewriting | 43 | (1) | 10 | n/r | ||
| EN→ES→EN | Rewriting | 45 | 35 (0) | 10 | 13 (0) | 6 | |
| Adaptive paraphrase | Rewriting | (0) | 10 | n/r | |||
| Step erasure (30%) | Structural | (0) | 8 | (2) | 5 | ||
| Truncation (keep 50%) | Structural | (0) | 10 | 13 | (0) | 5 | |
| Step insertion (20%) | Structural | (0) | 10 | 15 | 9 (0) | 6 | |
| Random reordering | Structural | (0) | 1 | (0) | 4 | ||
| Action substitution (30%) | Structural | (0) | 10 | (0) | 4 | ||
| Action renaming | Evidence editing | (0) | 0 | n/r | |||
| Digest-boundary tamper | Evidence editing | (0) | 0 | (0) | 0 | ||
| Session ID stripped | Evidence editing | (0) | 0 | (0) | 0 | ||
| Session ID replaced | Evidence editing | (0) | 0 | (1) | 0 | ||
Our preregistered ALFWorld forgery criterion required zero events and therefore failed because of this single false detection, although no fresh-session false attribution occurred. The WebShop-1K round-trip attack was regenerated after the frozen version produced identity outputs and is therefore exploratory. n/r: not run.
targets, a 100-step cap, and a codebook fitted on 500 non-evaluation observations. We transfer the ALFWorld operating point without retuning and use conservative action canonicalization. Search queries are generated greedily without the key, so search steps carry no watermark bit. Paraphrases modify at most 25 observations per trajectory and must pass bidirectional natural language inference (NLI) and protected-token checks. For learned forgery, attackers observe logs re-embedded under the owner’s key from
base pools of 75 ALFWorld and 35 WebShop-1K logs, then modify unwatermarked targets under fresh or reused sessions. The weak attacker learns action preferences per semantic context, and the strong attacker also conditions on the coding digest. We test and , respectively. WebShop-1K omits several attacks by predeclared protocol.

(a) Step erasure

(b) Action substitution

(c) Truncation
Figure 3: Robustness degradation under structural edits on ALFWorld. Each edit is applied at increasing severity to the 50 watermarked evaluation trajectories. Curves show single-trajectory detection, single-trajectory correct attribution, and correct attribution of the 10 primary pools of five, with 95% Wilson intervals (). For truncation, severity is the share of steps removed from the end. No wrong attribution occurs at any plotted severity.
4.1 Clean Verification and Evidence Sufficiency
Our Table 1 supports log-only verification and calibrated abstention that no unwatermarked unit was detected or attributed, and no watermarked unit was attributed to a wrong identifier. Pooling uses the same verifier and mainly resolves evidence insufficiency. The coding digest adds row diversity beyond semantic windows, since among embedded steps, an ALFWorld trajectory visits 14.6 distinct semantic windows on average but yields 34.2 distinct usable coding states. On WebShop-1K, single-action search steps and unstable coding states leave 12 of the 17 unattributed trajectories without enough coding states or rank. We therefore treat five-trajectory pooling as the primary configuration and single-trajectory attribution as descriptive. Every embedded step met the KL budget, supporting the bounded-distortion goal.
4.2 Learned Forgery and Session Freshness
Our Table 2(a) isolates session binding, since both conditions share attackers, base logs, and targets. Under fresh sessions, no forgery was attributed to the owner on either benchmark. One ALFWorld false detection fails our zero-event criterion but is consistent with Appendix B. At , the strong attacker changed 84% of target actions, yet the median of its forgeries was 0.57, close to the 0.5 expected without owner evidence. Smaller changed few actions. Reused sessions let the same attack produce false attributions once each session was observed repeatedly, which WebShop-1K's small pool cannot reach. Session freshness is therefore a necessary deployment assumption, and the results show empirical resistance to the tested attackers, not unforgeability.
4.3 Robustness Under Log Transformations
We show in our Table 2(b) and Figure 3 that robustness follows the synchronization and evidence mechanisms. Renumbering, interface padding, and small probability edits preserve pooled attribution because they leave the keyed state unchanged, and the guarded digest never changes under them. Rewriting lowers single-trajectory attribution when it changes cluster labels (Table 3), yet pooling recovers every ALFWorld group. WebShop-1K rewrites changed no label, so they do not test semantic robustness. Pooling compensates
for moderate evidence loss, but severe structural edits and direct evidence edits mark clear failure boundaries. Wrong attribution is rare but not absent: eight of 2,970 edited single-trajectory decisions, all at the smallest attainable -value, and one WebShop-1K sensitivity-partition pool.
4.4 Discussion and Limitations
Single trajectories are often insufficient, especially on WebShop-1K, and single-trajectory identification missed its preregistered development target (0.676 versus 0.80). Embedding requires local access to candidate-action likelihoods, and we test only one such model. Verification assumes a private key and trustworthy logged probabilities. AgentAnchor does not authenticate logs or prevent replay, so session freshness must be provided externally. Our forgery bound holds only per decision, for fresh sessions, and under the PRF assumption (Appendix B). One fresh-session false detection failed our zero-event criterion, and session reuse enabled false attribution. Finally, we make no utility-parity claim. The per-step KL budget does not bound effects that compound over closed-loop steps.
5 Conclusion
An LLM agent watermark should be judged not only by what a verifier detects but also by what observers can learn from its logs. Behavioral watermarking for LLM agents must therefore provide recoverable evidence and limit cross-session transfer. In our experiments, pooled verification attributed owners correctly under several log transformations, while severe corruption removed the evidence and session reuse let forgeries be attributed to the owner. These results position our AgentAnchor as a bounded attribution mechanism that works when session identifiers are fresh and enough coded steps are pooled. Future work should study stronger adaptive forgers, authenticated session issuance, and larger real-world Web deployments, and evaluate task utility with stronger base agents.
References
[1] Hyeseon An, Shinwoo Park, Dongsu Kim, and Yo-Sub Han. 2026. Sequential Behavioral Watermarking for LLM Agents. arXiv preprint arXiv:2605.11036 (2026). [2] Mihir Bellare. 2015. New proofs for NMAC and HMAC: Security without collision resistance. Journal of Cryptology 28, 4 (2015), 844–878.
[3] Xiang Deng, Yu Gu, Boyuan Zheng, Shijie Chen, Sam Stevens, Boshi Wang, Huan Sun, and Yu Su. 2023. Mind2web: Towards a generalist agent for the web. Advances in Neural Information Processing Systems 36 (2023), 28091–28114.
[4] Zheng Gao, Xiaoyu Li, Xiaoyan Feng, Jiaojiao Jiang, Yang Song, Yulei Sui, Zhen-chang Xing, and Liming Zhu. 2026. TRACE: A Two-Channel Robust Attribution Watermark via Complementary Embeddings for LLM-Agent Trajectories. arXiv preprint arXiv:2607.08400 (2026).
[5] Chenchen Gu, XIANG LI, Percy Liang, and Tatsunori Hashimoto. 2024. On the learnability of watermarks for language models. In International Conference on Learning Representations, Vol. 2024. 38745–38768.
[6] Kaibo Huang, Jin Tian, Yukun Wei, Wanling Li, Zipei Zhang, Hui Tian, Zhongliang Yang, and Linna Zhou. 2026. AgentMark: Utility-Preserving Behavioral Watermarking for Agents. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 12581–12603.
[7] Nikola Jovanović, Robin Staab, and Martin Vechev. 2024. Watermark stealing in large language models. arXiv preprint arXiv:2402.19361 (2024).
[8] Auguste Kerckhoffs. 1883. La cryptographie militaire. J. Sci. Militaires 9, 4 (1883), 5–38.
[9] Solomon Kullback and Richard A Leibler. 1951. On information and sufficiency. The annals of mathematical statistics 22, 1 (1951), 79–86.
[10] Jiasen Li, Yanwei Liu, Zhuoyi Shang, Xiaoyan Gu, and Weiping Wang. 2026. DRGW: learning disentangled representations for robust graph watermarking. In Proceedings of the ACM Web Conference 2026. 3263–3274.
[11] Wenlong Meng, Chen Gong, Terry Yue Zhuo, Fan Zhang, Kecen Li, Zheng Liu, Zhou Yang, Chengkun Wei, and Wenzhi Chen. 2026. Watermarking LLM agent trajectories. arXiv preprint arXiv:2602.18700 (2026).
[12] Belinda Phipson and Gordon K Smyth. 2016. Permutation P-values should never be zero: calculating exact P-values when permutations are randomly drawn. arXiv preprint arXiv:1603.05766 (2016).
[13] Ting Qiao, Xing Liu, Wenke Huang, Jianbin Li, Zhaoxin Fan, and Yiming Li. 2026. Dssmoothing: Toward certified dataset ownership verification for pre-trained language models via dual-space smoothing. In Proceedings of the ACM Web Conference 2026. 3111–3122.
[14] Nils Reimers and Iryna Gurevych. 2019. Sentence-bert: Sentence embeddings using siamese bert-networks. In Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP). 3982–3992.
[15] Shuo Shao, Yiming Li, Hongwei Yao, Yifei Chen, Yuchen Yang, and Zhan Qin. 2026. Reading between the lines: Towards reliable black-box llm fingerprinting via zeroth-order gradient estimation. In Proceedings of the ACM Web Conference 2026. 2637–2648.
[16] Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. 2020. Alworld: Aligning text and embodied environments for interactive learning. arXiv preprint arXiv:2010.03768 (2020).
[17] Liwen Wang, Zongjie Li, Yuchong Xie, Shuai Wang, Dongdong She, Wei Wang, and Juergen Rahmel. 2026. On Protecting Agentic Systems' Intellectual Property via Watermarking. arXiv preprint arXiv:2602.08401 (2026).
[18] Wenhui Wang, Furu Wei, Li Dong, Hangbo Bao, Nan Yang, and Ming Zhou. 2020. Minilm: Deep self-attention distillation for task-agnostic compression of pre-trained transformers. Advances in neural information processing systems 33 (2020), 5776–5788.
[19] Zhiqiang Wang, Yichao Gao, Yanting Wang, Suyuan Liu, Haifeng Sun, Haoran Cheng, Guanquan Shi, Haohua Du, and Xiangyang Li. 2026. Mcptox: A benchmark for tool poisoning on real-world mcp servers. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 40. 35811–35819.
[20] Yan Wen, Junfeng Guo, and Heng Huang. 2025. Cotguard: Using chain-of-thought triggering for copyright protection in multi-agent llm systems. arXiv preprint arXiv:2505.19405 (2025).
[21] Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. 2022. Webshop: Towards scalable real-world web interaction with grounded language agents. Advances in Neural Information Processing Systems 35 (2022), 20744–20757.
[22] Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. 2022. React: Synergizing reasoning and acting in language models. arXiv preprint arXiv:2210.03629 (2022).
[23] Bokang Zeng, Zheng Gao, Xiaoyu Li, Xiaoyan Feng, and Jiaojiao Jiang. 2026. TrajMark: Ownership Attribution and Segment-Level Tamper Localization for Coding-Agent Trajectories. arXiv preprint arXiv:2609.10416 (2026).
[24] Haobo Zhang, Xutao Mao, Guangyuan Dong, Ziwei Li, Xuanbo Su, Kajie Chen, Jing Yang, and Zheng Lin. 2026. MemMark: State-Evolution Attribution Watermarking for Agent Long-Term Memory Systems. arXiv preprint arXiv:2605.25002 (2026).
[25] Shuyan Zhou, Frank F Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abishek Sridhar, Xianyi Cheng, Tianyue Ou, Yonatan Bisk, Daniel Fried, et al. 2024. Webarena: A realistic web environment for building autonomous agents. In International Conference on Learning Representations, Vol. 2024. 15585–15606.
Use of Generative AI
We used generative AI tools (Claude Opus 5.5 and GPT Sol 5.6) in this work only for limited language assistance, including grammar correction, improving readability, and formatting in Overleaf. These tools were not used to develop the core research ideas, formulate hypotheses, or design the methodology. We also used AI assistance to discuss how to present the benchmarks, evaluation protocol, and results more clearly. All AI-assisted text and literature suggestions were reviewed and verified by the authors, and relevant references were checked against their original sources. The authors take full responsibility for the final content of this work, including all claims, results, and conclusions.
Appendix
A Parameter Selection and Ablation Study
All of our parameters were fixed before evaluation, and no evaluation data were used for tuning. Our Table 4 shows that, with MiniLM and 500 observations, K = 4 and K = 8 achieve the same highest moderate-rewrite stability. For that reason, we retain the frozen K = 4 without claiming that it is optimal. Our Table 5 shows that remains close to and changes by less than 6% relative to its value at R = 8. Thus, mainly controls the per-step evidence, and we use the largest preregistered value. Our primary pooled analysis uses disjoint groups of five fixed by seed 101. Seeds 211 and 307 only regroup the same trajectories to provide overlapping sensitivity views. Pools of three already achieved full identification in development (Table 3(c)). GPU cost determined the 25-step paraphrase cap and the use of 30 WebShop-1K goals. WebShop-1K uses its official baseline's 100-step cap and a conservative canonicalizer because the ALFWorld rules merged distinct product options. We omit light, heavy, and adaptive paraphrases, interface padding, and renaming for WebShop-1K. After the freeze, we repaired the round-trip generator, which had returned unchanged text, and the masking of overlapping protected spans; neither repair changed the evaluation logs or verification procedure. The 2,970 edited decisions in Section 4.3 cover 39 ALFWorld and 34 WebShop-1K conditions, including additional severities, mixing, swaps, validity flips, goal and session removal, and a combined attack beyond those summarized in Table 2(b). Table 3(a) shows that action-based keys are insensitive to observation rewriting but lose history under erasure, whereas index-based keys survive erasure when logged indices remain unchanged but fail under renumbering. The session-keyed design follows almost the same synchronization pattern as window-only keying while the session is present, but removing the session breaks its synchronization. The hard channels exceed the KL budget, and hard-bit Gaussian elimination is often confidently wrong even when no corruption is introduced.
B Fresh-Session Forgery Bound
We state what session binding guarantees against a forger in this appendix. Let X be the verification unit that the verifier receives, and let be either or , computed on X under key . The key enters only through the step keys of Eq. (2). All other inputs come from X or the public configuration.
Table 3: An ablation study of our AgentAnchor framework on ALFWorld. ★ marks the frozen setting. Parts (a), (b), and (d) replay the evaluation logs and were not used to select any parameter. (a) Each key design re-embeds the owner identifier into the logged of the 50 watermarked evaluation logs with the same channel, coding, and decoder. Sync is the share of steps whose key, recomputed from the edited log, equals the key used at embedding. Names in parentheses mark the prior work whose keying a baseline approximates. Padding is the interface padding of Table 2(b). Det. counts claimed-owner detections out of 50 (, ) and is not directly comparable with the live results of Table 2(b). Only the frozen design's resistance to learned forgery was measured (Table 2(a)). (b) Eligible is the share of steps that carry a bit. Hard channels only require their split to exist, whereas the soft tilt applies the full eligibility rule, which we mentioned in Section 3. TV is the total variation distance from to the embedding distribution, which is for the soft tilt. is the mean over eligible steps of . The preregistered sweep is , is an ablation, and , where the cap binds, is omitted. (c) Correct unique identification on the 25 development confirmation tasks, with two embedding seeds, two development keys, and the seed-101 partition, giving 100, 48, 32, and 20 decisions for pools of 1, 2, 3, and 5. These screening tests use and , so they are not comparable with the 0.676 of Table 1. (d) A share of the coded steps of each trajectory takes its coding row and evidence from a wrong key. Counts are taken before the -value test. Gaussian elimination treats the sign of each as a hard parity bit.
| (a) Key synchronization and detection (counterfactual replay, 50 evaluation logs) | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Key design | Key input | Sync | Det. | ||||||
| Renumber | Padding | Para. mod. | Para. adapt. | Erase 30% | No session | Para. adapt. | Erase 30% | ||
| Session + window ★ | sid, | 1.000 | 1.000 | 0.906 | 0.761 | 0.677 | 0.000 | 41 | 18 |
| Window only | 1.000 | 1.000 | 0.906 | 0.761 | 0.672 | 1.000 | 37 | 13 | |
| Goal + window | goal cluster, | 1.000 | 1.000 | 0.906 | 0.761 | 0.670 | 1.000 | 33 | 19 |
| Action window (SeqWM) | last three actions | 1.000 | 1.000 | 1.000 | 1.000 | 0.360 | 1.000 | 48 | 2 |
| Previous action (TRACE) | last action | 1.000 | 1.000 | 1.000 | 1.000 | 0.705 | 1.000 | 47 | 14 |
| Positional (Agent Guide) | logged index | 0.000 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 47 | 43 |
| Index + observation | index, observation | 0.000 | 1.000 | 0.474 | 0.472 | 1.000 | 1.000 | 9 | 42 |
| Index + action set | index, signature | 0.000 | 0.000 | 1.000 | 1.000 | 1.000 | 1.000 | 48 | 41 |
| (b) Embedding channel (2,375 logged evaluation steps) | ||||||
|---|---|---|---|---|---|---|
| Channel | Setting | Eligible (%) | KL mean | KL max | TV mean | |
| Keyed half-mass split (hard) | - | 98.2 | 0.814 | 12.02 | 0.500 | - |
| Median-bin split (hard) | - | 87.9 | 1.135 | 3.19 | 0.608 | - |
| Soft tilt | , label | 75.4 | 0.050 | 0.050 | 0.147 | 0.19 |
| Soft tilt | , label | 75.4 | 0.100 | 0.100 | 0.205 | 0.38 |
| Soft tilt | , label | 75.4 | 0.200 | 0.200 | 0.282 | 0.76 |
| Soft tilt ★ | , label | 75.4 | 0.400 | 0.400 | 0.380 | 1.62 |
| Soft tilt | , label | 75.4 | 0.600 | 0.600 | 0.445 | 2.81 |
| Soft tilt | , rank | 55.6 | 0.400 | 0.400 | 0.383 | 1.62 |
| (c) Payload length and pool size (development data, before evaluation) | ||||||
|---|---|---|---|---|---|---|
| Payload | Identifiers | Pool 1 | Pool 2 | Pool 3 | Pool 5 ★ | Det., pool 1 |
| 4 | 0.85 | 1.00 | 1.00 | 1.00 | 0.89 | |
| 16 | 0.81 | 1.00 | 1.00 | 1.00 | 0.94 | |
| 64 | 0.80 | 1.00 | 1.00 | 1.00 | 0.91 | |
| ★ | 256 | 0.76 | 0.98 | 1.00 | 1.00 | 0.92 |
| (d) Decoder under wrong-key corruption of coded steps (single trajectories, counts out of 50) | ||||||
|---|---|---|---|---|---|---|
| Decoder | Outcome | 0% | 5% | 10% | 20% | 30% |
| Log-likelihood ★ | correct, unique | 48 | 48 | 47 | 42 | 30 |
| Gaussian elim. | correct | 17 | 10 | 14 | 4 | 5 |
| Gaussian elim. | confidently wrong | 32 | 39 | 35 | 45 | 44 |
We assume three conditions. (A1) The keys are independent uniform 256-bit strings, and the verifier draws independently of . (A2) An efficient forger sees watermarked logs only from a set of session identifiers. It may also use any data that does not depend on , but it sees no verifier output. (A3) Every log in carries a valid session identifier outside .
PROPOSITION 1 (FRESH-SESSION FORGERY BOUND). Under (A1)–(A3), and , where and is the largest advantage of an efficient distinguisher against HMAC-SHA256 as a pseudorandom function [2].
PROOF. The tag is fixed, and the session identifier has a fixed length of 128 bits, so every HMAC input of Eq. (2) built from differs from every input used to produce the forger's view. Firstly, we replace everywhere by a uniformly random function . A distinguisher can simulate the forger and the verifier and check whether , so this step changes the probability of that event by at most one PRF advantage. The values of at the inputs of are independent of the forger's view and so of . Secondly, we replace each by an independent random function, which costs at most further advantages. Then are independent
Table 4: Semantic-geometry sweep on development data. The first four columns give the share of 58 validated moderate rewrites whose cluster label is unchanged, for the all-MiniLM-L6-v2 and all-mpnet-base-v2 encoders and codebooks fitted on 250 or 500 observations. For MiniLM with 500 observations and w = 2, Heavy is the same share for heavy rewrites, Margin is the median Euclidean distance from an observation embedding to its nearest cluster boundary, and Windows is the mean number of distinct per trajectory. With , and 2 give 2.8, 7.4, and 13.8 windows, while one deleted step changes at most windows.
| MiniLM ↑ | MPNet ↑ | MiniLM, 500, w = 2 | |||||
|---|---|---|---|---|---|---|---|
| K | 250 | 500 | 250 | 500 | Heavy ↑ | Margin ↑ | Windows |
| 4 ★ | 0.948 | 0.966 | 0.948 | 0.914 | 0.914 | 0.229 | 13.8 |
| 8 | 0.931 | 0.966 | 0.914 | 0.897 | 0.914 | 0.256 | 26.9 |
| 16 | 0.931 | 0.828 | 0.897 | 0.914 | 0.862 | 0.220 | 34.9 |
| 32 | 0.862 | 0.931 | 0.845 | 0.879 | 0.897 | 0.217 | 36.4 |
and identically distributed given X. So, they are exchangeable, and the plus-one p-values of Eq. (6) satisfy [12].
Consequences. Attribution also requires , , and a unique maximum, so a false attribution has a probability of at most . A positive decision of either kind has a probability of at most . The bound holds per decision, so a forger that submits q units expects at most false detections.
Scope. The bound does not cover reused sessions, whose HMAC inputs repeat inputs in the forger's view. It also does not cover edited copies of authentic logs, whose sessions the forger has seen, or a forger that sees verifier outputs. Condition (A1) needs wrong keys that the forger cannot predict. For reproducibility, our runs derived them from fixed seeds of a non-cryptographic generator. Our forgers never used these keys, so X did not depend on them, but a deployed verifier should draw them with fresh secret randomness.
Relation to Table 2(a). The table contains 672 fresh-session decisions over both attackers: 300 single and 180 pooled on ALFWorld, and 120 single and 72 pooled on WebShop-1K. By linearity of expectation, the bound allows at most expected false detections, even though pooled groups share trajectories. We observed one false detection and no false attribution. A zero-event criterion over this many decisions can fail even when every decision meets , so this event is consistent with the bound. The median single-trajectory of fresh-session forgeries ranged from 0.39 to 0.63 across conditions, close to the 0.5 expected under exchangeability.
C Calibration and Cost
Null calibration. Clean verification (, ) of unwatermarked evaluation logs gave no false detection or false attribution. This holds for 50 ALFWorld and 30 WebShop-1K single logs, and for 30 and 18 pools from the three partitions. Kolmogorov-Smirnov tests of uniformity gave p-values of 0.14 and 0.49 for and 0.89 and 0.44 for on ALFWorld and WebShop-1K. With 50 and 30 logs, these tests are only descriptive.
Table 5: Sensitivity to the number R of candidate sign functions was replayed on the 2,375 logged ALFWorld evaluation steps with label binding. TV and follow Table 3(b), and 75.4% of steps are eligible in every cell. For small tilts, , while the per-step separation averaged in is close to , so . The replay selects nothing, since R = 8 was fixed before evaluation.
| R | TV | ||||
|---|---|---|---|---|---|
| 4 | 0.19 | 0.37 | 0.74 | 1.54 | 0.370 |
| 8 ★ | 0.19 | 0.38 | 0.76 | 1.62 | 0.380 |
| 16 | 0.19 | 0.38 | 0.78 | 1.67 | 0.388 |
| 32 | 0.19 | 0.39 | 0.79 | 1.71 | 0.391 |
Cost. The baseline and watermarked agents compute the same . The watermark adds the semantic labels, key derivation, the coding row, and the keyed tilt. On ALFWorld, with one NVIDIA A100 GPU (40 GB), the mean time per step was 4.62 s for the baseline and 4.63 s with the watermark. The loaded model used 17.2 GB of GPU memory, and the structured log that verification needs took about 1.2 KB per step.
D Key-Input Forgery Experiment
We report a post-hoc experiment run after the frozen evaluation in Figure 1. It reuses the ALFWorld logs, embedding channel, decoder, wrong-key calibration (, ), session identifiers, and seeds of the learned-forgery evaluation in Section 4.2, and it changes only the input of the step key. The AgentMark-style key uses the step index and the three most recent actions, a restricted instance of the context in [6]. The SeqWM-style key uses the three preceding actions, as in [1]. The semantic key is Eq. (2) without the session identifier, and the AgentAnchor key is Eq. (2). Forged actions enter the action history that later keys read. For each key, the attacker observes owner-watermarked logs, obtained by re-embedding the 75 unwatermarked base logs under that key, and rewrites the 50 unwatermarked evaluation logs, each bound to an unobserved session identifier. The weak and strong attackers of Section 4 group their observations by the public part of each key, which for AgentAnchor is the semantic window because the target session is fresh. Figure 1(b, c) reports the worst of the two attackers. Genuine watermarked replays of the 50 targets were detected in 48, 47, 45, and 44 cases under the four keys, so the differences do not come from a weaker watermark, and the AgentAnchor arm reproduces the fresh-session counts of Table 2(a) exactly. At , paired exact McNemar tests against AgentAnchor give , , and for the AgentMark-style, SeqWM-style, and semantic keys. The strong attacker changed 84% of target actions under both the semantic key and AgentAnchor, yet 41 and 1 forgeries passed detection. The semantic key yields few forgeries below because the strong attacker uses a public state only after observing it at least twice. These keys isolate the keying context and do not evaluate AgentMark or SeqWM, which use different samplers, decoders, and thresholds. As in Section 4.2,
the observed logs include re-embedded versions of the target tasks, so the absolute rates describe a well-informed attacker.