# A Low Similarity Score Does Not Show Independence after Source-Conditioned Repository Rewriting

DevFeed: [A Low Similarity Score Does Not Show Independence after Source-Conditioned Repository Rewriting](<https://devfeed.tech/articles/a-low-similarity-score-does-not-show-independence-after-source-conditioned-repository-rewriting-120828.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.07887>)

Author: Micheline B\\'en\\'edicte Moumoula, Serge Lionel Nikiema, Tailia Malloy, Abdoul Kader Kabor\\'e, Jacques Klein, Tegawend\\'e F. Bissyande

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Open Source](<https://devfeed.tech/topics/open-source.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Repository](<https://devfeed.tech/topics/repository.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [agent](<https://devfeed.tech/tags/agent.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [based](<https://devfeed.tech/tags/based.md>), [better](<https://devfeed.tech/tags/better.md>), [can](<https://devfeed.tech/tags/can.md>), [candidate](<https://devfeed.tech/tags/candidate.md>), [code](<https://devfeed.tech/tags/code.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agent](<https://devfeed.tech/tags/coding-agent.md>), [copy](<https://devfeed.tech/tags/copy.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [effects](<https://devfeed.tech/tags/effects.md>), [fall](<https://devfeed.tech/tags/fall.md>), [fingerprint](<https://devfeed.tech/tags/fingerprint.md>), [fixed](<https://devfeed.tech/tags/fixed.md>), [repository](<https://devfeed.tech/tags/repository.md>), [score](<https://devfeed.tech/tags/score.md>), [show](<https://devfeed.tech/tags/show.md>), [similarity](<https://devfeed.tech/tags/similarity.md>), [source](<https://devfeed.tech/tags/source.md>)

## AI overview

In 69 agent-only rewrites of six copyleft Python projects, a low JPlag similarity score from one run was weak evidence of independence. Agents retained the original in their working copies and iterated until a behavioral harness passed; every rewrite passed after repair, usually within half an hour for the initial rewrite. Under a ground-up rearchitecture prompt, most rewrites scored below 25%. But identical project, agent, and prompt setups produced wide score variation, and more than a third of configurations had three repeats on both sides of the threshold. Imports and fingerprint facts also failed to distinguish rewrites from hand-written independent implementations of the same task better than chance. The authors recommend reporting repeated generations and validating provenance signals against same-task independent implementations, not only unrelated projects. The evidence covers six Python projects and 69 rewrites.

## Source excerpt

arXiv:2611.07887v1 Announce Type: new Abstract: Maintainers sometimes cite a low token-similarity score as evidence that an LLM-assisted rewrite of a copyleft project is independent of the original. We test what such a score can support under \emph{source-conditioned} rewriting: a coding agent keeps the original in its working copy, rewrites the repository, and iterates until a fixed behavioural harness passes, with no human edit to the code. On 69 rewrites of six copyleft Python projects we find that: \ding{182}~Agent-only rewriting is inexpensive and often yields low scores. Every controlled rewrite passes the harness after repair, usually within half an hour for the initial rewrite. Under a ground-up rearchitecture prompt, most rewrites fall below 25\% JPlag similarity and still pass the harness. \ding{183}~A single low score is an unreliable witness. Identical project--agent--prompt configurations produce wide spreads in similarity; run-to-run variation dominates project and agent effects, and in more than a third of configurations the three repeats straddle the threshold. Rewrites retain more of the original's imports and fingerprint facts than unrelated projects do, yet hand-written independent implementations of the same task often retain as much, and neither signal separates the two groups better than chance. Thus a low score on one rewrite is weak evidence of independence: another run of the same agent may score high. Claims based on similarity should report repeated generations, and candidate provenance signals should be checked against same task independent implementations, not only against unrelated projects.