Manuscript Offprint
arXiv:2610.08668Semantic Behavioral Watermarking: Paraphrase-Robust and Forgery-Resistant Provenance for LLM Agents
ABSTRACT
Behavioral watermarking embeds an owner identifier in an LLM agent's high-level action choices, giving provenance without touching output tokens. Prior agent watermarks bind the signal to raw strings and break in two ways. Agent-Mark's own robustness test paraphrases the observation alone and bit-recovery falls to 16.8%; its released script holds the per-step key fixed, so that experiment measures distribution drift, not the key desynchronization its context-hash design separately admits. All three prior schemes also bind the watermark to the exact action symbol, so renaming a tool desynchronizes decoding even when the observation is untouched — the axis we measure and close. And every prior agent watermark studies only removal: none asks whether an adversary can forge a trajectory that verifies as someone else's, a question answered affirmatively for text watermarks (Jovanović et al., 2024). We present Semantic Behavioral Watermarking (SBW): watermarking over semantic action clusters under history conditioning, with the public-cluster bin replaced by keyed collision-resistant binning whose fresh-bucket assignment is provably unpredictable in the random-oracle model. Across five agent models (3B–14B, four vendors) and three encoders the ordering holds on both benchmarks: on ToolBench (600 trajectories per model) detection under rewriting is 0.49–0.66 for cluster-level versus 0.05–0.17 for exact-symbol at a permutation-calibrated 1% FPR, at 72–83% choice agreement against 22–27% for logit biasing; on ALFWorld (100 episodes per model) it is 0.92–0.97 versus 0.00–0.01. Keyed binning takes adaptive forgery from 100% to the false-positive floor at the primary operating point (bge, r=64). We also mark the boundary that guarantee does not cover: when the adversary copies the victim's own steps, shuffled splicing is neutralized (0.000 on Qwen2.5-3B) but chained replay remains at 0.76–0.98 across the five models, reported as open. Paraphrase robustness costs about half of the per-step watermark capacity. Code is available at https://anonymous.4open.science/r/SBW-Agent-Watermark.
1 INTRODUCTION
LLM agents that plan and call tools are increasingly deployed as commercial assets; owners need to prove that a given trajectory was produced by their agent (provenance) and to deter unauthorized reuse (IP protection). Token-level text watermarks do not apply: the ownership signal lives in the agent's discrete behavior — which tool or subgoal it selects — not in surface tokens. A recent line of behavioral watermarks embeds the signal there: Agent Guide (Huang et al., 2025) biases behavior probabilities; AgentMark (Huang et al., 2026) embeds multi-bit identifiers via distribution-preserving conditional sampling; SeqWM (An et al., 2026) conditions the green/red split on the recent action history for position-agnostic, deletion-robust verification. Two gaps remain. (G1) Paraphrase fragility. All three key the watermark on the exact action symbol. A semantics-preserving rewrite changes that symbol and desynchronizes decoding, and SeqWM's history windows hash exact strings. That binding to raw strings is demonstrably fragile: AgentMark's own robustness test paraphrases the observation block — its released script preserves the action list verbatim and teacher-forces the same per-step key for both runs — and bit-recovery falls to 16.8% at a mean

Figure 1: The two attack directions, and which one prior work leaves open. Left — removal: the adversary wants the owner's mark to stop being detectable. Every prior agent watermark studies only this side and keys on the exact action symbol, so renaming a tool desynchronizes decoding; watermarking the semantic cluster under history conditioning is what lifts detection under rewriting from 0.05–0.17 to 0.49–0.66 across five models. Right — forgery: the adversary wants its trajectory to verify as the owner's. We split this side explicitly: against fresh actions keyed binning drives forgery from 100% to 21% at the default r=8 and to 1.2% at r=64 — the false-positive floor (provable for fresh buckets, Thm. G.1), but when the adversary copies the victim's steps nothing must be predicted and the key does not help — shuffled splicing is neutralized (0.000, measured on Qwen2.5-3B) while chained replay stays at 0.76–0.98 across the five models (Table 3), which we report as an open boundary rather than close.
KL of 3.23, i.e. the measured failure is drift in the elicited distribution. Its per-step key is separately a hash of the preceding context, so key desynchronization is a second exposure that this experiment does not measure. Action renaming is the orthogonal axis, the one an exact-symbol design leaves exposed, and the one we measure directly (EXACT 0.05–0.17 under rewriting, §6.1). (G2) Forgery. Every agent watermark to date studies only removal robustness. But behavioral watermarks that use a public semantic encoder introduce a new attack surface: an adversary who observes a few watermarked trajectories can estimate the green/red structure and forge a trajectory that verifies as another owner — enabling framing or repudiation. We address both with Semantic Behavioral Watermarking (SBW), sketched in Fig. 1: (1) cluster-level history-conditioned watermarking (§4.1) — a SeqWM-style scheme over semantic-cluster symbols, so both the current symbol and the history window survive rewriting; (2) keyed collision-resistant binning (§4.2) — bin(a) = H(sk, quantize( )), provably unpredictable on fresh buckets (Thm. G.1) and reducing real forgery from 100% to ~21%; (3) a synchronization-stability and elicited-capacity theory (§5) with proven directional margins; (4) a real-data evaluation (§6; Fig. 2) with multi-seed, FPR-calibrated detection, matched-null controls, an adversarial verification, and native head-to-heads against both a released implementation (AgentMark) and a from-paper reimplementation (AGEN-TWM). To our knowledge this is the first behavioral watermark for agents that is both paraphrase-robust and forgery-resistant. Beyond (1)–(4) it contributes a previously-unstudied forgery attack on semantic behavioral watermarks, a provable fresh-bucket guarantee with a precisely characterized residual, and a quantified boundary for the copy-style attacks that guarantee does not cover.
Table 1: how SBW differs from the closest prior work.
| vs. | What it does | What SBW adds |
|---|---|---|
| AgentMark | distribution-preserving sampling over exact tool choices | watermarks over semantic clusters → paraphrased actions decode to the same bin |
| SeqWM | history-conditioning on exact action strings | history over cluster symbols → robust to paraphrase and deletion |
| AGENTWM | biases enumerated equivalent tool paths (closed set) | learned, open-vocabulary clusters → generalizes to held-out tools |
| k-SemStamp, PASA, SIR | semantic watermarking of single-stream text | multi-step agent actions; keyed anti-forgery; capacity theory |
| all above | study only removal robustness | first forgery study for agent watermarks + keyed defense |
The semantic-text line fixes this by clustering the embedding space: SemStamp (Hou et al., 2024a) (LSH partitions), k-SemStamp (Hou et al., 2024b) (k-means partitions), SIR (Liu et al., 2024a) (semantics-conditioned logit bias), and PASA (Ai & He, 2026) (embedding-space watermark with detection-optimality theory). Clustering the tool space is itself not new — Tool-Planner (Liu et al., 2025) groups tools by k-means to organize task planning — but it has been used for planning efficiency, never as the unit that carries an ownership signal. SBW ports the cluster-as-watermark-unit idea to the multi-step agent-action setting, where the watermarked unit is a discrete tool choice, robustness must hold across held-out tools, and there is no free rejection-sampling knob. Agent behavioral watermarking. Agent Guide → AgentMark → SeqWM are the direct lineage; AGENTWM (Wang et al., 2026) biases the distribution over functionally-equivalent tool paths for IP; ActHook (Meng et al., 2026) inserts trigger actions into training trajectories; MemMark (Zhang et al., 2026) watermarks memory writes; and Nian et al. (2026) do implicit execution tracing for multi-agent attribution. Table 1 summarizes how SBW differs from each. Watermark stealing and spoofing. For text watermarks the forgery direction is established: Jovanović et al. (2024) show that an adversary who queries a watermarked model can approximate its green-list rule well enough to spoof it. No agent behavioral watermark has been examined this way — the agent setting substitutes a public semantic encoder for the vocabulary partition, which is what makes the structure recoverable from observation alone, and what the keyed binning of §4.2 is designed to remove.
3 THREAT MODEL
An owner deploys a watermarked agent with secret key sk, a frozen public semantic encoder E, and a cluster assignment C. Verification observes a (possibly attacked) action trajectory. The owner controls generation-time decoding and elicits an explicit behavior distribution (as in AgentMark); capacity is measured only under this deployed elicitation operator and decoding config , making elicitation part of the model rather than a hidden variable. Robustness attacks (in scope): semantics-preserving rewriting of actions/observations (including renaming to unseen tools) and step deletion/truncation. Cross-type policy flips (explore grab), which change task semantics, are out of scope by construction and are not claimed to be detected. Forgery attack (in scope, new): an adversary holding the public encoder E and M watermarked trajectories produces a new trajectory over fresh actions that passes the owner's detector without sk. Fresh-action scope. The restriction is deliberate: a replayed trajectory is the victim's watermarked output, so detecting it is attribution working, not a forgery (the copy-paste analogue in text watermarking); an attacker running their own agent on their own tasks necessarily acts with fresh actions; and Thm. G.1 covers exactly the fresh-bucket branch. Replay, splicing and chaining are quantified separately in §6.2 and are not claimed to be solved.
4 METHOD
SBW is entirely training-free: a frozen off-the-shelf sentence encoder E, one k-means quantization of the action-embedding space, a keyed pseudo-random function, and a permutation-test detector.
No gradient step, no fine-tuning, no learned watermark parameters — swapping the agent or the encoder is pure inference, and the anti-forgery guarantee is a property of the keyed construction rather than of any trained artifact.
4.1 CLUSTER-LEVEL HISTORY-CONDITIONED WATERMARK
Let be the semantic-cluster symbol of the action at step and the recent-cluster history. A step is green iff a keyed PRF PRF(sk, , ) returns 1. During generation, with probability (the detection and copy-style operating point; §6.2 states the forgery study's own) the step is resampled from the green candidates in proportion to their elicited mass, so the bias is support-restricted (no probability is moved onto actions did not already admit) but not distribution-preserving in AgentMark's sense (§6.1 measures the cost). Otherwise, and whenever no candidate is green, the step falls back to the unwatermarked argmax and carries no bit. Detection uses SeqWM's random-key permutation test: score = number of green windows over the observed cluster-symbol stream; p-value from M wrong keys. Because a paraphrase of any action maps to the same cluster, both and the history survive rewriting; deletion is handled by the position-agnostic window score exactly as in SeqWM. The history length w is a deployment knob, not a free parameter: a sweep shows longer contexts raise clean detection (0.83/0.91/0.98) but degrade deletion robustness sharply (CLUSTER TPR at 30% deletion 0.48/0.31/0.24), since each deleted step destroys windows, while immunity to step-shuffled recombination is w-independent ( at every w). We use w=1 throughout unless stated, i.e. the deletion-robust end of that trade.
4.2 KEYED COLLISION-RESISTANT BINNING (ANTI-FORGERY)
A naive scheme sets green over public clusters, so an adversary with E can recover which clusters are green and steer fresh actions into them (§6.2). We instead key the binning: , where is a secret random projection to r hyperplanes. The bins are now orthogonal to the public embedding geometry. Theorem G.1 shows that for a fresh action whose keyed bucket has not been observed, the adversary's bin-prediction advantage is negligible in the random-oracle model; in the observed-bucket regime (empirically of fresh actions at r=8; bucket_collision.json, whose generating script was not retained), the keyed projection blunts the nearest-neighbor green-bit transfer that public-cluster binning admits — reducing real forgery from 100% to (§6.2).
4.3 MARGIN/ABSTAIN CODE
Boundary actions (small cluster margin) are the source of decode errors. SBW routes actions with margin below to an abstain state (they carry no bit but preserve synchronization), trading a measured amount of capacity for near-zero error on the carried bits.
5 THEORY
5.1 SYNCHRONIZATION STABILITY (PARAPHRASE ROBUSTNESS)
Define the margin , the half-gap to the second-nearest centroid.
• Prop. E.1 (bin invariance). If , then (Voronoi-cell stability).
• Prop. E.2 (bit-error bound). Under displacement , the per-step flip rate .
• Prop. E.3 (detection). With per-step green bias , the permutation z-score scales as ; detection is recoverable for any given enough steps T.
• Cor. E.4 (margin/abstain). Abstaining on drives on carried bits at capacity cost .
• Prop. E.1'/E.2' (directional tightening, proven). The norm-based bounds are worst-case and loose ( ). With the oriented margin and the dangerous projection , a bisector lemma (proven both ways; residual on real tools) gives the rewrite is closer to than , hence . On 2128 real tools: mean 0.1482 vs 0.0586; mean 0.0207 vs 0.429 ( of rewrite displacement is tangent to the dangerous direction); , a tightening of the trivial 0.99 bound; the sandwich holds exactly; the safe condition gives flip-to- .
5.2 ELICITED WATERMARK CAPACITY
The per-step channel is defined by the elicited distribution : capacity is a joint function of policy and elicitation. Prop. F.1: , vanishing for deterministic policies. Prop. F.2: cluster capacity tool capacity, gap shrinking in k. Prop. F.3 (payload budget): recovering an L-bit ID at efficiency under per-step error needs steps; calibrated (C=0.632, ): steps — motivating per-corpus aggregation for short episodes (30 documents of G=20 trajectories each). Our elicitation study makes F concrete: two elicitation operators (option-logprob vs explicit-ask) yield per-step entropies correlating at only 0.13 (m2_capacity.py; the one main-text number that needs a GPU rollout rather than the frozen artifacts) — capacity is undefined without fixing .
6 EXPERIMENTS
Setup. Real ToolBench (Qin et al., 2024): 600 real tasks, 100 from each of the six G1/G2/G3 sub-splits, one trajectory per task; a local agent runs a bounded ReAct loop — Qwen2.5-3B-Instruct and LLaMA-3.2-3B first, then Qwen2.5-7B, Mistral-7B and phi-4 (14B) under the same frozen harness (§6.1), eliciting an explicit action distribution at each step → 600 real trajectories per model (30 documents of G=20; a tolerant parser keeps uniform-fallback below 4.4% on every model). Clusters are k-means over bge-base embeddings of the 2128 unique real tools; paraphrase attacks rewrite each tool's name+description with a separate model. Detection is the random-key permutation test (M=300); all detection numbers are TPR at a permutation-calibrated 1% FPR, mean± sd over 5 seeds. An early 120-trajectory pilot showed the same ordering (App. A); all main-text numbers are the 600-trajectory runs.
6.1 HEADLINE: THE UNDER REWRITING, CROSS-MODEL, FPR-AUDITED
Table 2 reports the headline result; Figure 2 gives it together with the forgery, copy-style and utility results at a glance. Each cell is EXACT / CLUSTER, where EXACT = the exact-symbol SeqWM baseline and CLUSTER = ours. The ordering replicates across all five models, four vendors and a 3B–14B range: under paraphrase CLUSTER far exceeds EXACT everywhere (0.49–0.66 vs 0.05–0.17), and CLUSTER is the only scheme with meaningful detection under paraphrase+deletion; pure deletion favors EXACT, as expected from SeqWM's design (SBW trades deletion margin for paraphrase robustness). Following our pre-registered reporting rule we claim the ordering and report magnitude as a range, rather than highlighting the Mistral peak. Utility (choice agreement vs no-watermark argmax) is 0.72–0.83 for SBW vs 0.22–0.27 KGW-style; open-set on held-out tools is 0.808 on every one of the five models ( 0.01 chance) — it is determined by the tool set and rewrite pool rather than the agent. Capacity: real per-step entropy spans 1.32–1.99 bits with realized tool-level capacity 1.01–1.51 bits/step; clustering at k=100 retains 41.9–50.1% of it — the price of paraphrase robustness. Notably the retained fraction does not track entropy, and phi-4 attains the same 0.49 paraphrase detection on the lowest capacity of the five, so the method does not depend on high policy entropy (a mechanism we have not isolated).
The three rightmost columns were produced later under the bit-identical frozen harness (encoder, clusters, keys, detector, rewrite pool; parse-fallback 2.8%) and re-derived cell-by-cell on our stack, 24/24 identical. Mistral-7B was pre-registered as the fourth-vendor model — rationale and report-regardless rule fixed before the run — and returned the highest of the five, which is why that record matters. The claim survived four-way adversarial verification: (i) a document-size sweep
SBW on real agent rollouts — 5 models · 4 vendors · 600 trajectories each · 2128 ToolBench tools · TPR@1%FPR, 5 seeds
(a) Robustness across 5 agent models, 4 vendors, 3B-14B bar = mean over models; each dot is one model

(c) Copy-style forgery — outside the keyed guarantee (§3) solid = neutralized · hatched = open; dot = one model
(b) Keyed defense vs the fresh-action adversary ToolBench · bge · raising projection dim r closes the gap

(d) Utility preserved, and open-set generalization

Figure 2: SBW on real agent rollouts, 600 trajectories per model. (a) The paraphrase-robust ordering across five agent models from four vendors; each dot is one model, so the spread is the cross-model range. (b) Against the fresh-action adversary, raising the keyed projection dimension takes forgery to the permutation-FPR floor. (c) The copy-style attacks outside that guarantee (§3): recombination is neutralized, but contiguous splicing and chained replay approach the owner's own detection rate. (d) Utility and open-set generalization. In (c) solid bars are neutralized attacks and hatched bars open ones, so the panel reads in black and white. Regenerated from the released artifacts by sbw/real_plots_600.py (CPU-only).
Table 2: main robustness result on ToolBench: TPR at a permutation-calibrated 1% FPR, EXACT / CLUSTER, five agent models from four vendors, 600 trajectories each, 5 seeds.
| condition | Qwen2.5-3B | LLaMA-3.2-3B | Qwen2.5-7B | Mistral-7B | phi-4 (14B) |
|---|---|---|---|---|---|
| clean | 1.00 / 0.78 | 1.00 / 0.75 | 1.00 / 0.71 | 1.00 / 0.84 | 1.00 / 0.73 |
| paraphrase | 0.05 / 0.53 | 0.17 / 0.49 | 0.06 / 0.49 | 0.16 / 0.66 | 0.07 / 0.49 |
| deletion 30% | 0.91 / 0.48 | 0.87 / 0.59 | 0.81 / 0.45 | 0.93 / 0.58 | 0.87 / 0.52 |
| paraphrase + deletion | 0.05 / 0.34 | 0.08 / 0.33 | 0.03 / 0.21 | 0.04 / 0.33 | 0.03 / 0.29 |
preserves the ordering at every G on both models; (ii) 3 owner keys seeds preserve it; (iii) a from-scratch reimplementation (sha256 PRF, no shared code) reproduces sign and gap; (iv) a leakage audit confirms clusters are fit only on tool embeddings and the paraphrase attack is genuine (). Artifacts for (i)-(iii) were not preserved in-repo (ERROR_LOG #21). FPR is calibrated on average: pooled over 200 owner keys documents (6000 trials) the empirical FPR at is (Qwen) / (LLaMA), both nominal (median 0, p90 0.033). A matched-null shuffling the tool paraphrase alignment (Qwen) collapses paraphrase TPR from 0.53 to 0.01 — the effect requires genuine semantic alignment. Regenerating the whole paraphrase pool with a stronger cloud LLM from a different family preserves the ordering: paraphrase CLUSTER (Qwen) and (LLaMA) vs EXACT 0.05/0.17, indistinguishable from canonical, with EXACT and clean/deletion rows bit-exact; combined-attack detection dips to 0.27/0.22 (App. A.2).
Table 3: copy-style forgery success across the five agent models, on the keyed history-conditioned detection stack (5 seeds). Chained replay generates new sequences along the observed transition graph. Step-shuffled splicing was measured on Qwen2.5-3B only (0.000 at every k; 0.014 across , App. A.8); the mechanism — the watermark lives on (context-window, symbol) pairs — carries over to the other models, but we do not report cells we did not run.
| attack | Qwen2.5-3B | LLaMA-3.2-3B | Qwen2.5-7B | Mistral-7B | phi-4 (14B) |
|---|---|---|---|---|---|
| frequency resampling | 0.020 | 0.007 | 0.010 | 0.017 | 0.017 |
| step-shuffled splice | 0.000 | — | — | — | — |
| contiguous segment splice | 0.817 | 0.940 | 0.800 | 0.877 | 0.623 |
| chained replay | 0.953 | 0.980 | 0.940 | 0.950 | 0.763 |
| owner self-check (not an attack) | 0.920 | 0.880 | 0.880 | 0.980 | 0.980 |
Controls (App. A). Margin/abstain (Cor. E.4) works on real tools: abstaining the lowest-margin 18% of steps halves ; 22% reaches . A third encoder (gte) leaves the ordering intact (0.64/0.05 Qwen, 0.66/0.17 LLaMA). An adaptive boundary attack (rewriting only the lowest-margin 20% of actions, Qwen) is far more efficient than random rewriting at matched budget (TPR 0.62 vs 0.76), and the margin/abstain defense blunts it.
6.2 FORGERY: THE KEYED DEFENSE
The fresh-action forgery study runs its own operating point — ToolBench k=60, ALFWorld k=40, , L=60, M=100 — distinct from the detection and copy-style configuration of §6.1 (k=100, , G=20, M=300). A naive public-cluster watermark is 100% forgeable: the adversary recovers the green structure from one observed trajectory and steers fresh actions into green clusters. Keyed random projection reduces this adaptive nearest-neighbor-transfer forgery to (keyed FPR 0.031) at the default r=8, with an encoder-dependent residual (ToolBench e5 0.30, gte 0.45, bge 0.19 on the 10-seed sweep below). Higher-dimensional keying fixes this (Fig. 2b): sweeping over all six benchmark× encoder combinations (10 seeds), the residual falls to everywhere at and to at r=64 — on a 30-seed re-run of all six cells — (ToolBench· bge 0.012, already at the keyed-FPR floor 0.019); the bucket-collision rate falls strictly monotonically ( ), from 0.94–0.99 at r=8 to at r=64 — moving most fresh actions into the provably-covered fresh-bucket regime. SHA256-keyed fingerprint buckets extend to r=128/256: the exact-digest collision is at and the residual saturates at the r=64 level, so r=64 is the sweet spot. The observed/fresh conditional split (42 cells: 24 uint64 at 10 seeds, 18 hash at 3) verifies the coverage-synthesis identity with median residual 0.010 ( on every r=64 cell) and confirms fpr only at — so the strict upper bound at the primary operating point (bge, r=64) is 0.0207 (from the 10-seed means), already dominated by the FPR floor rather than any forgery advantage. Full tables in App. A.
Copy-style forgery: replay, splicing, chaining. The adversary above must act with fresh actions (§3). The complementary question is what happens if the adversary simply copies the victim's observed watermarked actions: keyed binning is irrelevant there, since nothing has to be predicted. We measure it rather than scope it away, constructing forged documents from a fraction k of the victim's watermarked steps plus unwatermarked behavior, on the same keyed history-conditioned stack (5 seeds). Three readings of the k-sweep behind it (Table 7, App. A.8, Qwen2.5-3B), in decreasing comfort. (i) Detection is not attribution: pure replay detects because the content genuinely is the victim's watermarked output — attribution working, with an operational remedy. (ii) Recombination is structurally neutralized: step-shuffled splicing sits at 0.000 at every k and across , because the watermark lives on (context-window, symbol) pairs, so reordering copied steps destroys the signal being stolen. (iii) Framing has a measured but uncomfortable boundary: contiguous splicing decays as , , floor, so single-document misattribution needs a forgery that is mostly genuine victim output. This is not a defense: the k-curve upper-bounds misattribution (it does not separate correct from incorrect attribution) and is per-submission, so n attempts raise 0.44 to (0.82 at n=3). Chained
Table 4: head-to-head against the released AgentMark implementation on identical trajectories and rewrite pool: fraction of documents detected. AgentMark at 20 seeds; the SBW columns are re-quoted from the 5-seed §6.1 run.
| condition | AgentMark p=64 | AgentMark p=16 | SBW CLUSTER | SBW EXACT |
|---|---|---|---|---|
| clean | 0.767 | 0.967 | 0.78 | 1.00 |
| paraphrase, reid=none | 0.000 | 0.633 | 0.533 | 0.053 |
| paraphrase, reid=encoder | 0.500 | 0.900 | — | — |
| deletion30 | 0.358± 0.047 | 0.875± 0.014 | 0.480 | 0.907 |
| both, reid=none | 0.000 | 0.295± 0.050 | 0.340 | 0.047 |
| both, reid=encoder | 0.265± 0.052 | 0.842± 0.014 | — | — |
replay stays at 0.76–0.98 across the five models, against an owner self-check of 0.88–0.98 on the same stack (Table 3) — it reaches the owner's own detection rate, and is the one copy-style attack we do not defeat.
Window escalation is not the fix. Raising the detector's context window appears to solve chained replay — a chainer keeping its first-order table collapses at w=2 (same harness, App. A.8) — but that is security through obscurity. A Kerckhoffs adversary knows w and rebuilds -grams from the same observations, and the attack survives: 0.977 at w=2, 0.850 at w=3, 0.727 at w=5, thinning only as n-gram coverage falls to 0.73 — a data limit, not a cryptographic one (App. A.8). Since w≥3 also costs half the deletion robustness (§4.1), we report window escalation as ineffective against an adaptive adversary rather than count it as a countermeasure. What remains is partial: segment-level attribution separates watermarked from raw spans (window green-rate 0.600 vs 0.389 at k=0.5), and near-duplicate matching against owner logs addresses the repeated-submission amplification. Full multi-segment attribution is open.
6.3 HEAD-TO-HEAD COMPARISONS
AgentMark (released code, native run). AgentMark keys its differential-recombination watermark on the probability shape and decodes via RLNC payload recovery — a different statistic from our permutation test (false-positive vs calibrated FPR), so we compare "fraction of documents detected" on identical trajectories and rewrite pool (AgentMark 20 seeds; SBW columns re-quoted from the 5-seed §6.1 run). Only 23/30 documents carry its official 64-bit payload (per-document capacity 14–112 bits, mean 78), so its clean ceiling is 0.767; at a capacity-matched 16-bit payload it is 29/30. Three readings of Table 4. (i) Capacity, not detection, binds AgentMark on short trajectories; SBW's clean ceiling is not capacity-limited this way — but SBW is evaluated as a 1-bit detector, so this compares detection reach, not payload capacity. (ii) Renaming without re-identification is fatal to AgentMark (): its bins live in the probability shape, so a paraphrased name decodes to nothing; granting it SBW's encoder re-ID restores 0.500/0.900. (iii) Our EXACT side collapses under renaming () mirroring AgentMark's failure mode, but CLUSTER retains about two-thirds of its clean detection (). The two threat surfaces are complementary rather than ordered; all caliber differences are recorded in the released JSON. AGENTWM (from-paper reimplementation). No authors' code was public as of our retrieval (2026-08-17), so the comparison is an equivalence statement: a cosine-threshold union-find partition swept over , in two detector regimes — faithful (reid=none; a paraphrased tool is an unseen symbol) and encoder-assisted (reid=encoder; granted SBW's re-identification, ERROR_LOG #18). At the §6.1 protocol (600 trajectories, 30 documents, 5 seeds, , 0.95, 0.9) the faithful detector collapses under paraphrase at every (0.000–0.053) while clean/deletion hold (0.97–1.00 / 0.83–0.91), and encoder re-ID restores paraphrase to 0.97–1.00 — the gain is attributable to semantic re-identification, not the equivalence-set biasing. Consistency check: AGENTWM(reid=none, ), where equivalence sets reduce to singletons, reproduces the SeqWM EXACT row to three decimals (1.000/0.053/0.907/0.047) via an independent code path. We will upgrade to the authors' code should it be released.
Table 5: cross-benchmark replication on ALFWorld, an embodied action space: TPR at a permutation-calibrated 1% FPR, EXACT / CLUSTER, five agent models, 100 episodes each (34 documents of G=3), 5 seeds.
| condition | Qwen2.5-3B | LLaMA-3.2-3B | Qwen2.5-7B | Mistral-7B | phi-4 (14B) |
|---|---|---|---|---|---|
| clean | 1.00 / 0.99 | 1.00 / 0.99 | 1.00 / 1.00 | 1.00 / 0.99 | 0.99 / 0.99 |
| paraphrase | 0.00 / 0.92 | 0.01 / 0.96 | 0.00 / 0.97 | 0.00 / 0.92 | 0.01 / 0.95 |
| deletion 30% | 0.94 / 0.75 | 0.90 / 0.70 | 0.94 / 0.74 | 0.93 / 0.65 | 0.92 / 0.79 |
| paraphrase + deletion | 0.01 / 0.52 | 0.01 / 0.56 | 0.00 / 0.55 | 0.00 / 0.48 | 0.01 / 0.54 |
6.4 CROSS-BENCHMARK: ALFWORLD (A DIFFERENT ACTION-SPACE TYPE)
The sharpest test is a change of action-space type. ALFWorld (Shridhar et al., 2021) is an embodied household text-game whose actions are templated natural-language commands, unlike ToolBench API calls; the identical pipeline applies (100 real episodes, 515 verified-real unique actions after an adversarial data audit, k selected on a 60% dev split, G=3 episodes per document). In Table 5 the ordering replicates on all five models, more strongly than on ToolBench: EXACT pins to the floor while CLUSTER holds 0.92–0.97, and the clean capacity cost nearly vanishes (0.99–1.00 against 0.99–1.00). Pure deletion again favors EXACT (0.90–0.94 vs 0.65–0.79). The ordering is the invariant; the magnitude is detector-dependent, reported with its full range: at the 34-document protocol CLUSTER-paraphrase ranges 0.36–0.96 (non-monotonically) across encoder × k ∈ 15, ..., 80, rising to 1.00 as G grows, while EXACT stays at 0.00–0.01 throughout; a matched-null collapses it to ≈ 0, and an independent blake2b reimplementation found zero ordering flips across all 36 sensitivity cells (ERROR_LOG #27; that run's artifacts were not preserved in-repo). Security and utility are weaker on this low-cardinality space (utility 56–70% vs KGW 19–22% across the five models; keyed forgery residual at r=8 high-variance), which is precisely what the higher-dimensional keying of §6.2 resolves (residual ≤ 0.112 at r ≥ 32 on all three encoders). One open-set result is weaker here: a verb-template-aware re-split gives mean κ 0.806 over a wide 0.462–1.000 range, only +0.9 sd above its null against +10 sd for the ToolBench control — so cross-template open-set evidence on ALFWorld is weak, and we rest the open-set claim on ToolBench. Full sensitivity and audit trail in App. A.
7 LIMITATIONS
(1) Scale: five agent models (four vendors, 3B–14B), all open-weight, and three sentence encoders, all BERT-base-scale bi-encoders; flagship-scale and closed models are unverified. 600 trajectories per model in 30 documents, so estimates are coarse ( 1/30) and per-key FPR resolves only pooled. (2) Rollout observations are minimal: per-step distributions are real, but there is no ToolBench environment-execution feedback. (3) Capacity: paraphrase robustness costs 49.9–58.1% of per-step capacity at k=100 (retention 41.9–50.1% across the five models); a 63-cell abstain scan reaches no configuration at 60% retention, so a "cost 40%" target is unreachable by tuning alone (Cor. E.4 trades detection loss for -reduction, not capacity). (4) The AGENTWM comparison is a from-paper reimplementation (no authors' code available), at full 30-document scale and internally cross-validated. (5) ALFWorld's CLUSTER magnitude is detector-dependent (0.36–0.96), and e5's high-r ALFWorld residual keeps high-variance seeds (0.055 0.094 over 30 seeds). (6) The fresh-bucket guarantee is claimable only at 32 (fresh pools at 16 are too small). (7) Copy-style forgery is bounded, not solved: chained replay along observed transitions stays at 0.76–0.98 across the five models, window escalation fails against an adaptive adversary, the splice k-curve upper-bounds misattribution rather than measuring it, and the executability of spliced trajectories is untested — multi-segment attribution remains open. (8) On ALFWorld the cross-template open-set evidence is weak (+0.9 sd vs +10 sd on ToolBench); the open-set claim rests on ToolBench. All experiments ran on one 40GB GPU; the method is training-free and every number outside the rollouts is CPU-reproducible.
8 CONCLUSION
Watermarking agents at the level of semantic action clusters, under history-conditioning and keyed binning, yields, to our knowledge, the first behavioral watermark that is both paraphrase-robust and forgery-resistant, with a synchronization-stability and elicited-capacity theory. On real ToolBench and ALFWorld the effect is real and replicates across models, encoders and action-space types — and its capacity cost is characterized to its boundary, including where it cannot be tuned away.
AI USE STATEMENT
In this work, generative AI tools were used only for limited language assistance, including grammar correction and improvements to readability, and for assisting with literature discovery and preliminary review of relevant prior work. Generative AI tools were not used to develop the core research ideas, formulate hypotheses, design the methodology or experiments, implement the proposed method, conduct experiments, analyze or interpret experimental results, or formulate mathematical claims or proofs. 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.
ETHICS STATEMENT
This work studies watermarking for provenance and IP protection of LLM agents. We see three ethical considerations. First, dual use: the forgery attack (§3) is disclosed together with a working keyed defense and its measured residual, and the copy-style attacks we do not defeat are disclosed with their measured boundary rather than withheld — publishing the boundary is what lets deployers reason about it, and the defense raises the adversary's cost by orders of magnitude on the primary operating point. Watermarks are provenance signals, not authentication infrastructure, and we do not claim otherwise. Second, data: all benchmarks are public (ToolBench, ALFWorld, and the APIGen/xLAM function-calling data (Liu et al., 2024b; Zhang et al., 2024)); the function-calling dataset is CC-BY-4.0 but gated, so the supplementary material ships the derived embeddings and a rebuild script rather than redistributing the raw records; the ALFWorld extraction contained ~2.6% upstream-injected impossible-action distractors, which our adversarial data audit surfaced and removed with a from-scratch re-run, documented in the released provenance manifest. No human subjects and no private data are involved. Third, honesty of reporting: negative results (the unreachable ≤ 40% capacity-cost target), magnitude ranges, and all known failure modes are reported in the main text, and a 39-entry error logbook with five interlocking integrity mechanisms accompanies the release.
REPRODUCIBILITY STATEMENT
Every number in this paper that has a frozen artifact behind it is re-derivable from the release. The full pipeline is real_rollout → real_tools → real_eval → real_forgery → real_extra on released trajectory files (600 ToolBench trajectories and 100 ALFWorld episodes per model, with real per-step distributions); detection results are the released real_eval_*-600.json, forgery from real_forgery.json and the r-sweep family, FPR from the 200-key pooled audit, and both head-to-heads from their released JSONs (with per-caliber notes). Seeds are stated per experiment (3/5/10/20/30); most analyses are CPU-only. Copy-style forgery, the window sweep and the adaptive-chainer reproduction come from splice_replay_eval.json, window_sweep_eval.json and replay_window_mitigation.json. A programmatic reconciliation script (sbw/reconcile_paper.py) re-derives every number in this paper that has a frozen artifact behind it (the few exceptions are flagged where they appear) and passes 424/424, and a smoke test with a synthetic positive control gates the head-to-head pipeline. The work was governed by five interlocking integrity mechanisms (error logbook, independent re-derivation, provenance tagging, contamination checks, leakage-direction checks) documented in the repository. Appendix B maps each group of numbers to the artifact behind it, and anonymized code and artifacts are included in the supplementary material and browsable at https://anonymous.4open.science/r/SBW-Agent-Watermark.
REFERENCES
Zhenxin Ai and Haiyun He. PASA: A principled embedding-space watermarking approach for LLM-generated text under semantic-invariant attacks, 2026. arXiv:2605.10977.
Hyeseon An, Shinwoo Park, Dongsu Kim, and Yo-Sub Han. Sequential behavioral watermarking for LLM agents, 2026. arXiv:2605.11036.
Abe Bohan Hou, Jingyu Zhang, Tianxing He, Yichen Wang, Yung-Sung Chuang, Hongwei Wang, Lingfeng Shen, Benjamin Van Durme, Daniel Khashabi, and Yulia Tsvetkov. Semstamp: A semantic watermark with paraphrastic robustness for text generation. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), NAACL 2024, Mexico City, Mexico, June 16-21, 2024, pp. 4067–4082. Association for Computational Linguistics, 2024a. arXiv:2310.03991.
Abe Bohan Hou, Jingyu Zhang, Yichen Wang, Daniel Khashabi, and Tianxing He. k-semstamp: A clustering-based semantic watermark for detection of machine-generated text. In Findings of the Association for Computational Linguistics, ACL 2024, Bangkok, Thailand and virtual meeting, August 11-16, 2024, volume ACL 2024 of Findings of ACL, pp. 1706–1715. Association for Computational Linguistics, 2024b. arXiv:2402.11399.
Kaibo Huang, Zipei Zhang, Zhongliang Yang, and Linna Zhou. Agent guide: A simple agent behavioral watermarking framework, 2025. arXiv:2504.05871.
Kaibo Huang, Jin Tan, Yukun Wei, Wanling Li, Zipei Zhang, Hui Tian, Zhongliang Yang, and Linna Zhou. Agentmark: Utility-preserving behavioral watermarking for agents. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2026, San Diego, California, United States, July 2-7, 2026, pp. 12581–12603. Association for Computational Linguistics, 2026. arXiv:2601.03294.
Nikola Jovanović, Robin Staab, and Martin Vechev. Watermark stealing in large language models. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 22570–22593. PMLR, 2024. arXiv:2402.19361.
John Kirchenbauer, Jonas Geiping, Yuxin Wen, Jonathan Katz, Ian Miers, and Tom Goldstein. A watermark for large language models. In International Conference on Machine Learning, ICML 2023, 23-29 July 2023, Honolulu, Hawaii, USA, volume 202 of Proceedings of Machine Learning Research, pp. 17061–17084. PMLR, 2023. arXiv:2301.10226.
John Kirchenbauer, Jonas Geiping, Yuxin Wen, Manli Shu, Khalid Saifullah, Kezhi Kong, Kasun Fernando, Aniruddha Saha, Micah Goldblum, and Tom Goldstein. On the reliability of watermarks for large language models. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net, 2024. arXiv:2306.04634.
Rohith Kuditipudi, John Thickstun, Tatsunori Hashimoto, and Percy Liang. Robust distortion-free watermarks for language models. Trans. Mach. Learn. Res., 2024, 2024. arXiv:2307.15593.
Aiwei Liu, Leyi Pan, Xuming Hu, Shiao Meng, and Lijie Wen. A semantic invariant robust watermark for large language models. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net, 2024a. arXiv:2310.06356.
Yanming Liu, Xinyue Peng, Jiannan Cao, Shi Bo, Yuwei Zhang, Xuhong Zhang, Sheng Cheng, Xun Wang, Jianwei Yin, and Tianyu Du. Tool-planner: Task planning with clusters across multiple tools. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025. OpenReview.net, 2025. arXiv:2406.03807.
Zuxin Liu, Thai Hoang, Jianguo Zhang, Ming Zhu, Tian Lan, Shirley Kokane, Juntao Tan, Weiran Yao, Zhiwei Liu, Yihao Feng, Rithesh Murthy, Liangwei Yang, Silvio Savarese, Juan Carlos Niebles, Huan Wang, Shelby Heinecke, and Caiming Xiong. APIGen: Automated pipeline for generating verifiable and diverse function-calling datasets, 2024b. arXiv:2406.18518; the dataset paper for the function-calling data used in Appendix A.
Wenlong Meng, Chen Gong, Terry Yue Zhuo, Fan Zhang, Kecen Li, Zheng Liu, Zhou Yang, Chengkun Wei, and Wenzhi Chen. Watermarking LLM agent trajectories. In International Conference on Machine Learning (ICML), 2026. arXiv:2602.18700.
Yi Nian, Haosen Cao, Shenzhen Zhu, Henry Peng Zou, Qingqing Luan, Yudi Zhang, and Yue Zhao. When only the final text survives: Implicit execution tracing for multi-agent auditing, 2026. arXiv:2603.17445.
Yujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu, Yankai Lin, Xin Cong, Xiangru Tang, Bill Qian, Sihan Zhao, Lauren Hong, Runchu Tian, Ruobing Xie, Jie Zhou, Mark Gerstein, Dahai Li, Zhiyuan Liu, and Maosong Sun. Toolllm: Facilitating large language models to master 16000+ real-world apis. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net, 2024. arXiv:2307.16789.
Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler, and Matthew J. Hausknecht. Alfworld: Aligning text and embodied environments for interactive learning. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net, 2021. arXiv:2010.03768.
Liwen Wang, Zongjie Li, Yuchong Xie, Shuai Wang, Dongdong She, Wei Wang, and Juergen Rahmel. On protecting agentic systems' intellectual property via watermarking, 2026. arXiv:2602.08401.
Haobo Zhang, Xutao Mao, Guangyuan Dong, Ziwei Li, Xuanbo Su, Kaijie Chen, Jing Yang, and Zheng Lin. Memmark: State-evolution attribution watermarking for agent long-term memory systems. In Findings of the Association for Computational Linguistics: EMNLP, 2026. arXiv:2605.25002.
Jianguo Zhang, Tian Lan, Ming Zhu, Zuxin Liu, Thai Hoang, Shirley Kokane, Weiran Yao, Juntao Tan, Akshara Prabhakar, Haolin Chen, Zhiwei Liu, Yihao Feng, Tulika Awalgaonkar, Rithesh Murthy, Eric Hu, Zeyuan Chen, Ran Xu, Juan Carlos Niebles, Shelby Heinecke, Huan Wang, Silvio Savarese, and Caiming Xiong. xLAM: A family of large action models to empower ai agent systems, 2024. arXiv:2409.03215.
A ADDITIONAL RESULTS AND DETAILS
A.1 EARLY PILOT AND RECONCILIATION
The original 120-trajectory Qwen pilot (6 documents) gave paraphrase EXACT/CLUSTER 0.13/0.53 and showed the same ordering; a 180-trajectory intermediate gave 0.33 for CLUSTER, which a document-count reconciliation showed to be small-sample noise (30 documents restore 0.53 on the clean harness) — documented in ERROR_LOG #21/#23. All main-text numbers are the 600-trajectory runs.
A.2 MECHANISM CONTROLS (TOOLBENCH, 600-TRAJECTORY DATA)
Margin/abstain: base flip-rate ( ); abstaining the lowest-margin 18% of steps halves to 0.056, 22% reaches (margin_abstain.json). Third encoder gte: paraphrase CLUSTER/EXACT 0.64/0.05 (Qwen), 0.66/0.17 (LLaMA), open-set . Matched-null: shuffling the tool paraphrase alignment ( ) collapses paraphrase TPR 0.53 0.01. Stronger-attacker re-test (cloud LLM paraphraser, different model family): regenerating all 2,128 tool paraphrases with a stronger cloud model (synthetic:deepseek-v4-flash, 2,128/2,128 success, zero fallbacks, verbatim 2.3%) and re-running the frozen 600-trajectory evaluations gives paraphrase CLUSTER (Qwen/LLaMA) vs EXACT 0.05/0.17 — indistinguishable from canonical 0.53/0.49 within seed noise; both dips to 0.27/0.22 (reported as-is). Measured pool diagnostics: cluster-preservation 0.815 (new) vs 0.883 (original); EXACT and the pool-independent clean/deletion CLUSTER rows reproduce the canonical artifact bit-exactly (real_eval_dspara_qwen_600.json and the llama counterpart). Adaptive boundary attack: rewriting the lowest-margin 20% of actions drops CLUSTER TPR to 0.62 vs 0.76 for random 20%; margin/abstain blunts it (adaptive_attack.json).
A.3 FORGERY R-SWEEP FULL TABLE
Table 6 gives the mean residual (keyed_adaptive) / bucket-collision / FPR over 10 seeds.
Table 6: forgery r-sweep: residual keyed-adaptive forgery / bucket-collision rate / keyed FPR, over six benchmark × encoder combinations, 10 seeds.
| benchmark·encoder | r=8 | r=16 | r=32 | r=64 |
|---|---|---|---|---|
| ToolBench·bge | 0.192/0.977/0.029 | 0.057/0.586/0.025 | 0.062/0.028/0.034 | 0.012/0.002/0.019 |
| ToolBench·e5 | 0.298/0.989/0.025 | 0.116/0.918/0.020 | 0.052/0.372/0.032 | 0.016/0.009/0.026 |
| ToolBench·gte | 0.446/0.991/0.036 | 0.137/0.884/0.020 | 0.027/0.252/0.023 | 0.031/0.008/0.023 |
| ALFWorld·bge | 0.275/0.937/0.022 | 0.065/0.506/0.021 | 0.047/0.041/0.027 | 0.033/0.001/0.023 |
| ALFWorld·e5 | 0.586/0.980/0.023 | 0.202/0.787/0.029 | 0.111/0.157/0.045 | 0.092/0.003/0.061 |
| ALFWorld·gte | 0.393/0.977/0.035 | 0.225/0.804/0.017 | 0.031/0.216/0.014 | 0.069/0.003/0.044 |
30-seed re-verification at r=64 (forgery_r_sweep_r64_30seed.json): all six means ≤ 0.055; the e5-ALFWorld 10-seed point 0.092 (Table 6) was outlier-driven (30-seed mean 0.055±0.094, median 0.020; occasional spikes persist, 5/30 seeds >0.1). Hash buckets (SHA256 keyed, 3 seeds): r=128/256 residuals flat vs r=64, fingerprint collision exactly 0 at r=256 — r=64 is the sweet spot.
A.4 COVERAGE SYNTHESIS CONDITIONAL SPLIT
42 cells (2 benchmarks × 3 encoders × uint64 8,16,32,64 at 10 seeds, plus hash 64,128,256 at 3): identity reconstructs measured e(r) with median residual 0.010 (32/42 measurable cells; ≤ 0.018 on every r=64 cell; worst 0.169 at ALFWorld·bge·r=16, a low-collision small-sample regime). holds only at (at r=64 the gap is ≤ 0.0073 on the three ToolBench combos and ≤ 0.021 on the three ALFWorld ones; at r=16 only ToolBench·bge is borderline; at r=8 the fresh pools hold 26–127 samples — too small to support any fresh-bucket claim).
A.5 ALFWORLD SENSITIVITY AND AUDIT TRAIL
CLUSTER-paraphrase ranges 0.36–0.96 (non-monotonic) across encoder × k ∈ 15,25,40,60,80 at G=3 (34 documents), and 0.78–1.00 across G ∈ 2,3,4,5, while EXACT stays 0.00–0.01; matched-null collapses 0.92/0.96 → 0.00/0.02; dropping 4.4–5.4% uniform-fallback steps leaves 0.91/0.92. Independent blake2b reimplementation: zero ordering flips across 36 sensitivity cells (narrative in ERROR_LOG #27; artifacts not preserved in-repo). The adversarial data audit caught ~1.7% object-impossible injected distractors that passed the verb-prefix filter and were sometimes chosen; we added an object blocklist and re-ran the rollout from scratch on the cleaned 515-action space (this correction raised clean CLUSTER from a contaminated 0.50 to 0.92). Under the affine (ToolBench-style) EXACT relabel, ALFWorld EXACT-paraphrase is 0.42/0.36 instead of 0.00/0.01 — the ordering holds under either relabel (0.92-vs-0.42). Utility 56–70% vs KGW 19–22% across the five models; open-set κ =0.805.
A.6 AGENTWM BASELINE DETAILS
Equivalence partition: cosine-threshold union-find over tool embeddings, (n_classes 2128/1947/1490); faithful regime never inherits the encoder (ERROR_LOG #18); detector primitives byte-identical to real_eval (key, G, p_green, FPR calibration); 600 trajectories, 30 documents, 5 seeds. Faithful: clean 1.000/1.000/0.973, paraphrase 0.053/0.027/0.000, deletion 0.907/0.887/0.827, both 0.047/0.027/0.013 (); encoder-assisted: paraphrase 0.993/1.000/0.973, both 0.900/0.833/0.787; per-cell FPR 0.000.
A.7 THEOREM G.1 (FRESH-BUCKET UNPREDICTABILITY, STATEMENT)
In the random-oracle model, let with , a secret random projection to r hyperplanes derived from a -bit key sk, and H a random oracle. Let the adversary see the full construction (including r) but not sk, make at most oracle queries, and observe N watermarked (action, bit) pairs with bucket set . Then for a fresh action with ,
i.e. predicting a fresh bucket's bit is no better than brute-forcing the -bit key. Three scope points we state explicitly. (i) The bound is negligible in the key length , not in r: the proof uses only that sk is secret and H is a random oracle, so it applies verbatim to any deterministic bucket map — r governs the collision rate, which is what our r-sweep measures, not this bound. (ii) It is a random-oracle (online-query) statement, not information-theoretic security; once H is instantiated, key recovery is computational at offline work. (iii) It bounds only the fresh branch. Single-step bin prediction over a mixed pool is , so the operative quantity is the bucket collision rate — which is why §6.2 reports it alongside the residual, and why the fresh-bucket claim is made only at . Proof and constants: THEORY.md §G; the empirical conditional split is its measured counterpart.
A.8 COPY-STYLE FORGERY: FULL TABLES
All cells are TPR at a permutation-calibrated 1% FPR, 5 seeds, on the keyed history-conditioned stack (G=20, M=300 permutation keys, k=100).
Mixing sweep (Table 7). Forged documents mix a fraction k of the victim's watermarked steps with unwatermarked behavior; block5 copies contiguous runs of five steps (preserving context), shuffle reorders the copied steps.
Table 7: copy-style mixing sweep: forged documents mix a fraction k of victim watermarked steps with the attacker's own behavior.
| construction | k=1.0 | k=0.75 | k=0.5 | k=0.25 | k=0 |
|---|---|---|---|---|---|
| contiguous (block5) | |||||
| step-shuffled | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 |
Segment-level green-rate separation in the k=0.5 document is 0.600 on watermarked spans vs 0.389 on raw spans.
Detector window vs adversary adaptation (Table 8). The left column is a chainer that keeps its first-order transition table when the detector's window grows; the right column is the Kerckhoffs adversary that rebuilds -grams from the same observations. Owner TPR is reported per w because the context map discards the first w symbols of each document, so the owner also pays for longer windows. coverage is the fraction of forged steps for which an observed continuation existed — the data limit that bounds the adaptive attack.
Table 8: detector window against adversary adaptation: the non-adaptive chainer keeps its first-order table, the adaptive one rebuilds -grams.
| w | non-adaptive chainer | adaptive chainer | contiguous splice | owner TPR | coverage |
|---|---|---|---|---|---|
| 1 | 0.927 | 0.910 | 0.837 | 0.920 | 0.998 |
| 2 | 0.080 | 0.977 | 0.923 | 1.000 | 0.961 |
| 3 | 0.013 | 0.850 | 0.817 | 1.000 | 0.800 |
| 4 | 0.007 | 0.730 | 0.563 | 1.000 | 0.730 |
| 5 | 0.007 | 0.727 | 0.350 | 1.000 | 0.729 |
The non-adaptive column is what makes window escalation look like a countermeasure; the adaptive column is why we do not report it as one. Both columns come from an independent reproduction (replay_window_mitigation_client.py, archived run) that agrees with our in-house implementation within 0.02 at every w. Two secondary observations, reported because they are counter-intuitive: owner TPR rises with w (0.92 → 1.00), so the owner benefits from longer win-dows even while deletion robustness falls; and contiguous splicing rises from 0.837 to 0.923 at w=2 before decaying.
Detector window vs attack surface — w as a deployment knob (Table 9).
Table 9: the history window as a deployment knob: no setting dominates.
| w | clean | deletion 30% | splice k=0.5 | shuffle k=1.0 |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 |
Raw-document FPR is 0.000 at every w. There is no dominant setting: w=1 maximizes deletion robustness, w=3 maximizes clean detection, and splice/shuffle immunity is essentially w-independent — which is why we expose w rather than fix it on the paper’s behalf.
B REPRODUCIBILITY
All code is in sbw/. The real pipeline is real_rollout → real_tools → real_eval → real_forgery → real_extra (single 40 GB GPU, ~5 min). The method is training-free, so no training script exists and swapping the agent or encoder is pure inference. Table 10 maps each group of numbers to the artifact behind it. Every number in this paper that has a frozen artifact behind it is re-derivable from those files (the few exceptions are flagged where they appear) and the released sbw/reconcile_paper.py re-derives them and passes 424/424. Head-to-head caliber notes (detector statistics, teacher-forcing, packet erasure, re-identification regimes, per-document capacity disclosure) are recorded verbatim in the corresponding result JSONs. The integrity log ships with the release: five interlocking mechanisms and 39 recorded errors (INTEGRITY.md, ERROR_LOG.md).
Table 10: released artifacts behind each group of numbers; the file-by-file map is REPRODUCE .md.
| what it backs | artifact |
|---|---|
| trajectories (600 ToolBench / 100 ALFWorld per model) | real_traj-{qwen, llama, qwen7b, mistral, phi4}_600.jsonl, alf_traj-{qwen, llama, qwen7b, mistral, phi4}.jsonl |
| all detection numbers | real_eval-{qwen, llama, qwen7b, mistral, phi4}_600.json |
| forgery + FPR audit | real_forgery.json, real_fpr_audit-{600, llama600}.json |
| cross-model comparison | cross_model.json |
| r-sweep family | forgery_r_sweep{, .hash, _r64_30seed}.json |
| coverage split / capacity | coverage_split.json, capacity_tune.json, coverage_synthesis.U.json, bucket_collision.json |
| theory anchors (§5) | theory Anchors{, _v2, _v3}.json |
| 6.1 controls and re-derivation | matched_null.json, margin_abstain.json, adaptive_attack.json, gte_cross_encoder.json, verify-{qwen7b, mistral, phi4}.json, real_eval_dspara-{qwen, llama}_600.json |
| elicitation cross-check (§5.2) | m2_capacity.json (GPU; see REPRODUCE.md) |
| AgentMark head-to-head | agentmark_head2head.json (and +cap16) |
| AGENTWM baseline | agentwm_baseline_600-{none, encoder}.json |
| ALFWorld | alf_{eval, extra}-{qwen, llama, qwen7b, mistral, phi4}.json, alf_{forgery, controls, sensitivity}.json, alf_kselect-{bge, e5, gte}.json, openset_null_control.json |
| copy-style forgery | splice_replay_eval.json, window_sweep_eval.json |
| window vs adversary | replay_window_mitigation.json |