Traceweave
Traceweave is an open, non-commercial, independent experimental specification, backed by two independent reference implementations in Rust and Go, for recognising your own content when it reappears elsewhere and producing evidence that someone else can re-run and check. Today it compares token fingerprints (winnowing over k-grams of lexer tokens) of source code stored in private, local catalogues that contain no source text, and emits a deterministic, byte-identical comparison report. Profiles for TypeScript/JavaScript and plain text are specified for stage-1 implementation, and still images have a draft fingerprint profile and a frozen embedded-mark study protocol.
How the token-fingerprint flow works
spec/extraction.md and spec/catalogue-report.md: Source bytes and configuration produce tokens with UTF-8 byte spans, winnowed k-gram fingerprints, and a private catalogue holding no source text. Comparison consumes catalogues and configuration only, emitting a byte-identical canonical report body and a separate provenance block.What it can and cannot tell you
What Traceweave can report
- Shared token runs with exact byte spans: half-open UTF-8 byte offsets in both reference and candidate files where winnowed k-gram hashes align on the same diagonal (spec/catalogue-report.md).
- Fragment containment separate from whole-file similarity: unreduced raw counts (for example
14/14reference-in-candidate containment alongside14/39whole-file Jaccard in example-report.json). - Reproducible, offline reports: two runs or two implementations produce identical canonical report body bytes from catalogues and configuration alone, with explicit
match,no-match,abstain, andrejectedoutcomes. - Separate cryptographic checks (in progress): exact-byte catalogue commitments (
sha256-salted-catalogue-v1) and experimental Go/Rust DSSE envelope interoperability kept strictly separate from similarity results (spec/core.md).
What Traceweave cannot tell you
- Not ownership or authorship: a fingerprint match, a decoded mark, or a valid signature never establishes who wrote or owns content, nor direction of copying.
- Not infringement or permission: common idioms, shared dependencies, and permitted historical copies can match; rights review is explicitly outside the report.
- Not absence of reuse:
no-matchmeans insufficient matching evidence under the active configuration. Light rewriting (one inserted token everyk − 1tokens) defeats k-gram overlap. - Not calibrated accuracy: the M3 held-out evaluation has not been run. Experimental parameters (such as
k = 5, w = 4) carry no measured precision, recall, or false-alarm rate.
Negative results and open limits
Key measured and reviewed limits
- Embedded marks in source code failed cheap normalization: in the synthetic Go and Rust carrier experiments, 55 of 55 nonzero states per language survived formatters (
gofmt/rustfmt) but all 55 of 55 were reset by cheap normalization, and a four-repository public census established zero safe eligible sites (SYN.1–SYN.5). None of the five code-watermarking papers reviewed in Lane 06 cleared the project bar. - Embedded marks in existing prose do not survive normalization: Lane 09 found that Unicode homoglyph and zero-width carriers are erased by one published canonical fold (NFKC + UTS #39 skeleton + deleting
Default_Ignorable_Code_Point), and rejected learned lexical rewriting (AWT). - Image watermarks are a finding aid, not evidence of origin: reviewed post-hoc schemes (TrustMark-Q, PixelSeal) have public, unkeyed encoders and decoders, so anyone can decode a mark and re-embed it onto an unrelated image without the key, and each scheme has cheap removals such as ReMark or regeneration (e-img-m-2 protocol, Lane 10). In the published specification checkout,
e-img-m-2is frozen and reviewed to start, with dry-test smoke runs only and no committed full run yet. - Core matching is established prior art: winnowing over token k-grams follows MOSS (Schleimer, Wilkerson, Aiken, 2003) and sits alongside JPlag, Dolos, and SCANOSS (Prior art). The new work here is the byte-deterministic, offline, dual-implementation contract — not an unbreakable similarity algorithm.