Experimental design draft (0.1.0-draft.1). Traceweave is an open, non-commercial, independent specification — not a standard and not production software. Its held-out evaluation has not been run, so no detection accuracy or false-alarm rate is claimed. See the roadmap and gate counts (11 of 47 core gates met; 3 of 41 later-profile gates met).

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

Traceweave token-fingerprint comparison pipelineSix-stage local pipeline: Source bytes feed into Tokens via a profile lexer, then into Fingerprints via k-gram SHA-256 hashing and rightmost-minimum winnowing, then into a Private catalogue that stores no source text. Reference and candidate catalogues plus a comparison config (and optional suppression catalogue) feed into Comparison, which emits a deterministic Report body alongside a separate Provenance block.LOCAL EXTRACTION (PRIVATE BY DEFAULT — NO NETWORK CALLS)1. SourceUTF-8 bytes +exact config2. Tokensexact & normalizedwith byte spans3. Fingerprintsk-gram SHA-256+ winnowing4. Privatecatalogueno source text5. Comparisonseeds, regions,containmentComparison config +candidate & optionalboilerplate catalogues6. Reportdeterministic body(byte-identical)+ provenance blockNote: Unkeyed hashes in a catalogue still allow guessing or confirming known code; keep catalogues private.Comparison reads catalogues only (no source text). Signatures, signer trust, timestamps, and rights review stay separate.
Flow from 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/14 reference-in-candidate containment alongside 14/39 whole-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, and rejected outcomes.
  • 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-match means insufficient matching evidence under the active configuration. Light rewriting (one inserted token every k − 1 tokens) 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-2 is 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.

Explore the documentation