Tests As Behavioral Spec And Cloning Risk
Sources: 1 • Confidence: High • Updated: 2026-04-12 10:08
Key takeaways
- A comprehensive public test suite can enable a fresh reimplementation of an open-source library from scratch, potentially in a different programming language.
- tldraw filed a joke issue proposing translating its source code to Traditional Chinese as a purported defense against external AI coding agents replicating the project.
- A tldraw maintainer argued that moving tests to another repository would complicate and slow development, and that development speed is a higher priority.
- An issue suggesting tldraw would move its test suite to a private repository was later revealed to have been intended as a joke.
- tldraw is described as not technically open source because its custom license requires a commercial license for production use.
Sections
Tests As Behavioral Spec And Cloning Risk
- A comprehensive public test suite can enable a fresh reimplementation of an open-source library from scratch, potentially in a different programming language.
- The risk of test-driven reimplementation is described as particularly concerning for projects that pair open distribution with a commercial business model.
- Cloudflare reportedly ported Next.js to use Vite in about a week using AI.
Licensing And Moat Framing Product Decisions Vs Code
- tldraw filed a joke issue proposing translating its source code to Traditional Chinese as a purported defense against external AI coding agents replicating the project.
- tldraw is described as not technically open source because its custom license requires a commercial license for production use.
- A tldraw maintainer suggested the project’s defensible value is in continually making strong product decisions for users rather than preventing others from recreating the code.
Operational Tradeoff Velocity Over Ip Shielding
- A tldraw maintainer argued that moving tests to another repository would complicate and slow development, and that development speed is a higher priority.
Correction No Actual Shift To Closed Tests In Tldraw Case
- An issue suggesting tldraw would move its test suite to a private repository was later revealed to have been intended as a joke.
Unknowns
- Are there documented cases where third parties produced close behavioral reimplementations primarily by leveraging a project’s public tests (with or without AI assistance)?
- What were the exact scope, constraints, and artifacts behind the reported Cloudflare Next.js-to-Vite port (what was ported, what “about a week” includes, and how AI was used)?
- What does the tldraw license actually require for production use, and how does it define “production” and “commercial license” obligations?
- How common is it for commercially oriented OSS-like projects to consider restricting or relocating tests, and what concrete changes (if any) are being adopted outside this one example?
- What is the measured development cost (build, CI, review, contributor experience) of splitting tests into a separate repository compared to keeping them co-located?