← Lab /Software

TrajMark detects and localizes most edits in coding-agent trajectories while preserving performance

The authors claim their visible-only trajectory watermark can reliably attribute ownership and pinpoint tampered segments with high detection rates and negligible impact on coding success.

Software arXiv 9 Sep 2026 Method Prototype evidence Threat model

Published as “TrajMark: Ownership Attribution and Segment-Level Tamper Localization for Coding-Agent Trajectories”

Why it matters

TrajMark enables auditable provenance of coding-agent execution traces with strong ownership guarantees and precise tamper localization while keeping generation performance essentially unchanged.

Summary

TrajMark recovers the exact owner in all evaluated clean full-watermark batches and detects 95.5%-100% of single-site edits while localizing 95.8% of random action corruptions, with only a 0.6% drop in Pass@1 (26.9% vs 26.3%). The evidence comes from experiments on three coding-agent frameworks and three LLMs, showing robust ownership attribution and segment-level tamper detection with negligible utility impact.

What they found 4

  1. Exact owner recovery in all clean runs

    “TrajMark recovers the exact owner in all evaluated clean full-watermark batches.”

  2. High edit detection rate

    “Under exhaustive eligible single-site attacks it detects 95.5%-100% of edits, and under random single-action corruption it localizes 95.8% of modified sites to an accepted protocol region rather than to the individual action.”

  3. Minimal utility loss

    “matched Pass@1 is 26.9% versus 26.3% for unwatermarked runs.”

  4. Consistent recovery across agents and models

    “Across three agents, three model providers, three task-list seeds, and three repository languages, the visible-only decoder recovers the exact owner in 27 of 27 primary conditions.”

Caveats 5

  • At 20% random corruption, Owner-only recovers the correct ID in 99.3-100% of trials and complete TrajMark in 96.3-100%; their lowest rates at 50% are 79.1% and 76.5%.
  • The canonicalizer is part of the trusted public protocol.
  • Owner equations are correlated because models revisit files and reuse exploration patterns.
  • Three agents, three model providers, and Python, Java, and JavaScript repositories cover distinct interfaces and ecosystems.
  • The attack suite covers random non-key-aware corruption and exact-budget white-box carrier deletion.

What’s new here 4

  • Separates robust ownership attribution from fragile integrity verification into two distinct protocol layers.
  • Implements a training-free, visible-only watermark that rewrites natural READ actions without adding trajectory steps.
  • Introduces Q12 ordinary, group, and terminal seals to provide explicit segment-level tamper localization.
  • Achieves high detection and localization rates while preserving Pass@1 performance.

Threat model stated by the source

Adversarypost-publication editor who knows the algorithms, claimed label, and public configuration
Capabilitycan insert, delete, or replace visible action records and target protocol positions, but does not know the secret key K and cannot obtain adaptive verifier feedback
Assumeshonest embedding service; secret key remains confidential; verifier inputs (K, θ, claimed label, batch definition) are trusted