The Fork-Lineage Teardown: Proprietary Claim to an Original-Work Share
Take a deck's "proprietary" claim and the code you can see to a named upstream, a fork-point SHA, a three-way file count, and one of four outcomes.
Key takeaways
- When a rebrand rewrites every commit, git finds no common ancestor: in one public fork delta, git counted 46,694 upstream commits as missing while the fork's real lag was 1,322 commits.
- An empty git merge-base result is a symptom, not a verdict: rule out a shallow clone with git rev-parse --is-shallow-repository before concluding there is no fork.
- Upstream-only files measure fork lag, not the company's work, so count against the fork-point commit rather than upstream's current head; the 7,795 upstream-only files in the socis-agent delta were upstream progress.
- Open bundle matching through MatchCode.io covers only Maven and npm packages, so a silent result on any other stack means no coverage, not original code.
- Closing an Apache-2.0 fork is permitted; a breach claim needs a specific section 4 failure, such as a missing NOTICE file or unmarked modified files.
- Refolk's index holds just 2 US and 1 UK profiles titled Technical Due Diligence, which suggests that at seed this teardown falls to a generalist partner.
A seed deck calls its product a "proprietary platform". This teardown checks whether that platform started out as someone else's open-source project, and how much of what ships is the company's own work. It is for early-stage investors, platform and talent partners, and angels with a partner meeting coming up and some code to look at. You finish with a named upstream, a fork-point commit, a three-way count of upstream, modified, and original files, and one of four outcomes with a question for the founders.
What does a fork-lineage teardown decide?
A fork-lineage teardown puts a pitched codebase into one of four outcomes: built in-house, disclosed fork with real added work, thin rebrand, or undisclosed fork to raise with the founders. It decides by comparing a measured upstream share against the exact words the founders used.
Three terms, defined once:
- Upstream: the open-source project the code was copied from.
- Fork: a copy of the upstream, taken at one point in its history and developed separately from then on.
- Fork point: the last upstream commit the copy shares. It marks when the company's own work began.
Forking is not the problem. Plenty of good companies start from an open-source base and say so. The problem is a gap between what the code shows and what the deck claims. The two public cases used below make this plain. PearAI's founder openly called his product a cloned copy, and the criticism landed mostly on the licence. Delve's damage, as reported, came from answering "we built it ourselves" when asked whether its tool was based on an open-source project.
The four outcomes:
- Built in-house. No candidate upstream survives the search, and you have recorded which methods could and could not see the code.
- Disclosed fork with real added work. The founders said it was a fork, and the original-work share clears your fund's threshold.
- Thin rebrand. The upstream share is so high that the company is mostly redistributing someone else's work, whether or not it said so.
- Undisclosed fork. The code descends from an upstream the founders did not mention, or denied. This goes to the founders before you credit them with anything.
Which fork-point methods work, and how does each one fail?
Four methods can tie a codebase to an upstream, and each one fails in a specific, predictable way. Two read commit history, one reads exact file content, and one reads approximate fingerprints of shipped code.
| Method | Needs | Fails when |
|---|---|---|
git merge-base | Shared commit history | Shallow clone, or history rewritten |
merge-base --fork-point | Reflog entries | Fresh clone, or reflog pruned |
| Content hash (SWHID) | Byte-identical files | Any edit, even a brand string |
| Approximate fingerprint (MatchCode) | Package in the index | Not a Maven or npm package |
What each method proves, and what it looks like when it misleads you:
merge-basereturns the best common ancestor of two commits. Git's documentation notes that a pair of commits can have more than one merge base, so always ask for all of them with--all. A result proves shared history. An empty result proves nothing by itself, because a shallow clone produces the same thing.--fork-pointalso reads the reflog, which is the local record of where branch tips have been. A fresh clone has no reflog, so the command returns nothing, "avoiding to give a random and useless result" in the words of its manual page. When you are checking someone else's repo it is almost never useful.- Content hashing uses the SWHID, Software Heritage's identifier, which is now an ISO/IEC international standard. A file's SWHID is a hash of its content alone, and version 1 identifiers use git-compatible hashes, so the blob hash git already computes for a file works as the lookup key. A match proves the bytes are identical. A miss proves only that at least one byte differs.
- Approximate fingerprinting uses ScanCode.io's deploy-to-develop pipeline. It matches minified JavaScript back to TS or JS source, also handles Go, Java, and ELF binaries, and scores symbol overlap using Jensen-Shannon divergence against configurable thresholds. Its package matcher, MatchCode.io, can only match archives, directories, and files from Maven and npm packages. No match rates have been published, so treat a match as a lead to confirm and a non-match as silence.
The artifact you hold decides which rows you can use. A full-history clone supports all four. A data-room snapshot without its .git directory supports only the content method. A shipped web bundle, ideally with source maps, supports only fingerprinting.
The cheapest rebrand, a find-and-replace on the name, is the hardest one to detect with exact methods.
That follows straight from the table. Rewriting commits removes the common ancestor, so merge-base comes back blank. Replacing a brand string changes the hash of every file it touches, so content matching comes back blank too. One afternoon's work wipes out both lines of evidence, which is why the normalisation step below exists.
The worked case and the public record
The worked case here is the socis-agent fork delta. It is the only public rebranded fork I found with real file and commit counts. I treat it as if it arrived in a data room behind a deck describing "a proprietary agent platform, built in-house". That deck sentence is illustrative. Every count comes from the issue itself.
| Case | Upstream | Founder claim | Post-fork share published? |
|---|---|---|---|
| PearAI | Continue.dev and VSCode | Openly called it a clone | No |
| Delve Pathways | SimStudio | "Built it ourselves" (alleged) | No |
| socis-agent | Unnamed, rebranded | n/a | Files only: 5,761 modified, 7,795 upstream-only |
What each case adds to the method:
- PearAI shows that two upstreams are normal. It forked both VSCode and Continue. An X community note said it "mass-replaced all references to 'Continue' to 'PearAI'". Some of its materials did describe it as a fork. It first shipped under a "Pear Enterprise License" that the founder said ChatGPT wrote, and it was relicensed under Apache 2.0 after the backlash. One reviewer found its main repo MIT-licensed and its AI submodule Apache 2.0, which is what two upstream layers look like from the outside.
- Delve shows where the cost lands. A whistleblower alleged that its Pathways product was a repackaged copy of Sim.ai's SimStudio, and Sim.ai's CEO confirmed there was no licence agreement. The answer it reportedly gave to a direct question was "we built it ourselves". YC asked Delve to leave and removed its profile from the directory.
- socis-agent shows the numbers. The rebrand rewrote every commit, so the fork shares no ancestor with its upstream. The delta reports 46,694 upstream commits missing from the fork's history, 7,795 files that exist only upstream, 5,761 files present in both with different content, and 768 generated files excluded.
Neither the PearAI nor the Delve coverage published the share of commits or lines added after the fork. For none of these cases is that figure public, and your own run is what fills the gap.
The procedure: deck claim to a three-way count
The procedure has eight steps, from pinning the deck's exact sentence to drafting the question for the founders. It is my synthesis, because nobody has published this exact sequence. The time estimates in the steps array are mine and unverified.
Fork-lineage teardown, in order
- Pin the claimRecord the deck's exact wording, such as "proprietary" or "built in-house", with its slide number. Done when the sentence is quoted verbatim in the memo.
- Get the artifactAsk for a full-history clone, not a shallow one; failing that, a data-room snapshot or the shipped bundle with source maps. Done when you know which form you hold.
- Name candidate upstreamsRead LICENSE, NOTICE, package names, and leftover strings, then look up file hashes in the Software Heritage archive. Done when you have one to three candidates.
- Date the fork pointAdd each candidate as a remote and run git merge-base --all; if it is empty, rule out a shallow clone, then score upstream commits by shared file hashes. Done with a SHA, a date, and the method.
- NormaliseOn a scratch branch, reverse the rebrand tokens and apply Linguist-style exclusions. Done when every excluded file count is logged.
- ClassifyDiff the normalised tree against the fork-point commit and sort files into identical, modified, or original, with line counts. Done when you have a three-way table for files and lines.
- Check licence complianceCheck the licence copy, NOTICE, change markings, and an AGPL source link where relevant, separately from disclosure. Done when each duty is marked met, missing, or not applicable.
- Decide and askCompare the count with the pinned claim, choose one of the four outcomes, and draft one dated question for the founders. Done when the memo names both.
Steps 4 and 5 can swap. Normalising first lets hash matching survive a mass rename, so if you already suspect a find-and-replace, reverse the tokens before you look for the fork point. That ordering is my own inference, not documented practice.
Dating the fork point when the history has been rewritten
If merge-base returns nothing on a repo that is not shallow, the history has been rewritten. You then have to find the fork point by content overlap instead of ancestry. Here is how that plays out on the worked case, wrong turns included.
Wrong turn one: reading an empty result as "no fork"
Empty merge-base output with exit code 1 is the classic shallow-clone symptom. Run git rev-parse --is-shallow-repository first. If it prints true, fetch with --unshallow and try again. Only when the repo is complete and the output is still empty can you say the two histories share no commit.
On socis-agent, the repo is complete and the output is still empty, because the rebrand rewrote every commit.
Wrong turn two: trusting the commit count
With no shared ancestor, git treats every upstream commit as missing from the fork. That is where the 46,694 comes from. The number says nothing about the company's work, because it is just upstream's whole history viewed from a disconnected repo. The same issue puts the fork's real position at 1,322 commits behind upstream. Your own version of that number comes from tree matching, not from counting commits.
The fix: score upstream commits by shared file hashes
Collect the blob hash of every file in the target. Then score candidate upstream commits by how many of those hashes they contain. The highest-scoring commit is your fork-point estimate. To keep the loop short, start with upstream release tags, then score every commit between the two best-scoring tags. Blob hashes ignore file paths, so a renamed directory does not hide a match. A renamed brand string inside the file does.
After a mass rename, raw scores collapse because every edited file now has a different hash. That is the reason to swap steps 4 and 5: reverse the brand tokens on a scratch branch, rehash, and score again. If scores jump, the rename was most of the edit. If they stay flat, either you have the wrong upstream or the files really were rewritten.
Fallback chain for finding the fork point
- merge-base --allShared history gives the fork point directly
- Unshallow and retryEmpty output with exit code 1 often means a shallow clone
- NormaliseReverse brand tokens so renamed files hash to upstream values
- Tree overlapScore upstream tags, then commits, by shared blob hashes
- Fingerprint the bundleOnly for npm or Maven code, and only as a lead
# 1. Confirm full history (prints true for a shallow clone)
git rev-parse --is-shallow-repository
git fetch --unshallow # only if the line above printed true
# 2. Add the candidate upstream and look for shared ancestry
git remote add upstream <upstream-repo-url>
git fetch upstream --tags
git merge-base --all HEAD upstream/<default-branch>
echo $? # 1 with no output: no common ancestor
# 3. Mass rename suspected: reverse tokens on a scratch branch
git switch -c normalised
git grep -l '<NewBrand>' | xargs sed -i 's/<NewBrand>/<UpstreamName>/g'
git commit -am "reverse rebrand tokens"
# 4. No ancestor: score upstream tags by shared file hashes
git ls-tree -r HEAD | awk '{print $3}' | sort -u > target.txt
for t in $(git tag --list); do
n=$(git ls-tree -r "$t" | awk '{print $3}' | sort -u | comm -12 - target.txt | wc -l)
echo "$n $t"
done | sort -n | tail -5
# 5. Look up a single file in Software Heritage by content hash
git hash-object <path/to/file> # search as swh:1:cnt:<hash>
# 6. Count against the fork point, not upstream's head
git diff --name-status <fork-point-sha> normalised > status.txt
git diff --numstat <fork-point-sha> normalised > numstat.txtReplace the angle-bracket values, run in a scratch clone, and repeat the sed line for each case variant of the brand (GNU sed syntax).
When all you have is the bundle
If the company only exposes its shipped web app, ScanCode.io's deploy-to-develop pipeline is the open route, and source maps give it more to work with. Write the coverage limit into the memo. MatchCode.io only knows Maven and npm packages, so it cannot attribute a Python agent framework served as a SaaS app from its bundle. Silence there means no coverage, not original code. ScanCode.io has added fingerprints from stemmed code files and snippet-match views over time, so read its changelog to see what the current version can match instead of relying on memory.
A candidate upstream is often quickest to confirm with a person. Someone who has committed to the project will recognise its file layout, naming, and odd comments on sight, and can tell you in a short call whether your top-scoring commit is plausible. Refolk finds those people on the public GitHub graph from one plain-English request, along with where they work now, so you can rule out anyone at the company under review.
Counting identical, modified, and original files
The count compares the normalised fork against its fork-point commit, never against upstream's current head, and sorts every file as identical, modified, or original. Files that exist only upstream go in a separate bucket that measures fork lag, and none of them is credited to the company.
Normalise before you count
- Reverse rebrand tokens. Map every case variant of the new name back to the upstream name, on a scratch branch only.
- Apply Linguist-style exclusions. GitHub Linguist leaves vendored, generated, and documentation paths out of its statistics, and
.gitattributescan override its defaults. Use the same three categories, plus dependency folders such asnode_modulesand lockfiles. - Log every exclusion as a count. The socis-agent delta excluded 768 generated files, and your memo should carry the equivalent line.
- Include every upstream. If the code has a VSCode layer and a Continue layer, as PearAI did, match both. A count against one upstream leaves the other upstream's code sitting in the "original" bucket.
Nobody has published how far the original-work share moves under each exclusion. Run the count with and without exclusions, show both, and say so if the outcome changes between them.
Reading the diff output
In --name-status output against the fork point, A is a fork-only file (original), M is modified, R is a rename you should count as modified, and D is an upstream file the company removed. Any fork-point file that is not listed is identical. --numstat gives added and deleted lines per file. Sum the added lines in modified files and all lines in original files.
The worked case's counts
| Bucket | socis-agent | What it measures |
|---|---|---|
| Upstream-only files | 7,795 | Fork lag, not company work |
| In both, content differs | 5,761 | Modified, before normalisation |
| Generated, excluded | 768 | Logged, out of both sides |
| Identical | Not published | Fill from your own run |
| Fork-only (original) | Not published | Fill from your own run |
Read it one bucket at a time:
- 7,795 upstream-only files is upstream progress the fork never took in. Against upstream's head it looks like a large divergence. Counted against the fork point, it is not part of the company's work.
- 5,761 modified files is a ceiling until the rebrand is reversed. A file whose only change is a brand string goes back to identical after normalisation. That is my inference, and the issue does not report the post-normalisation figure.
- Identical and original are the two rows the issue did not publish, and they are the two numbers the partner meeting needs. It published no line counts either. Report files and lines separately, because a handful of large original files and thousands of trivially modified ones tell different stories.
Lag is also a cost
socis-agent's lag had a price. At 1,322 commits behind upstream, cherry-picking no longer worked and security fixes had to be rewritten by hand. For an investor, a fork with rewritten history raises a maintenance question as well as a disclosure question. Every upstream release makes the catch-up harder, and the memo should say so.
How does a fork-lineage teardown go wrong?
Most errors in this teardown push the same way: they make forked code look original. An empty result, a missed upstream, or a silent scanner all read as "no match", and "no match" tends to get written up as "built in-house".
The eight failure modes, what each looks like, and the check:
- Shallow clone. Looks like an empty
merge-base, read as "no fork". Check withgit rev-parse --is-shallow-repository, then unshallow and rerun. - Mass rename. Looks like zero exact hash overlap, read as original work. Reverse the brand tokens, rehash, and rescore. PearAI's reported mass replacement of "Continue" is the pattern.
- Wrong or single upstream. Looks like a respectable original share. Every layer with its own licence needs its own candidate. PearAI had two upstreams, VSCode and Continue, and matching only one inflates the original share.
- Vendored code counted. Looks like dependency folders and lockfiles inflating whichever bucket they land in. Apply Linguist-style exclusions and log them as counts.
- Disclosure treated as compliance. Looks like "they said it was a fork, so it is fine". PearAI disclosed the fork in some materials and still shipped an improper licence. Check NOTICE and change markings separately.
- Relicence treated as breach. Looks like "they closed an Apache project". Closing an Apache fork is permitted, so name a specific section 4 failure before calling it a breach.
- Bundle-only analysis of a non-npm stack. Looks like MatchCode returning nothing. Write the coverage limit into the memo and ask for source access.
- Fork lag counted as added work. Looks like thousands of "different" files. Count against the fork point. The 7,795 upstream-only files in socis-agent were upstream progress.
Two of these cut the other way and deserve a second look. Failure 6 makes a clean company look guilty, and failure 5 makes a careless one look clean. Both come from merging two separate questions: did they say it, and did they comply. The next section keeps them apart.
Licence compliance: a separate check from disclosure
Disclosure is whether the founders told you it was a fork. Compliance is whether the shipped product meets the upstream licence's duties. Check them separately, because a company can pass one and fail the other.
Apache-2.0 section 4 sets four duties for redistribution:
- Give recipients a copy of the licence.
- Mark modified files as changed.
- Keep the existing notices.
- Pass on the contents of the NOTICE file.
Relicensing an Apache fork under closed terms is allowed, but the attribution and change statements still apply. So "they closed it" is not a finding. "The NOTICE file is gone and modified files carry no change marking" is a finding.
AGPL-3.0 section 13 requires a modified version to offer its Corresponding Source to users who interact with it over a network. This has two consequences for a SaaS fork:
- The duty applies to a modified version, so the check is whether the running product links to its source, not whether there is a download.
- GPL-3.0 and AGPL both say network interaction alone "is not conveying". Hosting a GPL-3.0 fork does not by itself trigger distribution duties. It is AGPL's section 13 that adds the network duty.
I have not sourced MIT's terms for this guide. Read the licence text in the repo and note what it requires, rather than relying on a summary.
Landing the outcome and the question for the founders
Place the case using two facts you now have: whether the fork was disclosed, and how large the original-work share is after normalisation. Then send one dated, specific question.
Four outcomes for a pitched codebase
Nobody has published a line between "thin" and "substantial". I found no technical-diligence write-up with a threshold. Write your fund's threshold down before you run the count, in files and in lines, so the number cannot drift to fit a conclusion you have already reached.
The question matters more than the code. Apache allows a closed relicence. Delve's damage came from the reported answer, not the fork. Quote the claim, name the commit, and ask about the work done since then.
Claim (verbatim, slide number): Artifact analysed: full-history clone / data-room snapshot / web bundle + source maps Shallow check result: Candidate upstream(s) and licence(s): Fork point: <sha>, <date>, method: merge-base / tree overlap / fingerprint Rebrand tokens reversed: Exclusions logged: vendored <n>, generated <n>, docs <n>, lockfiles <n> Counts vs fork point (files / lines): identical / modified / original Upstream-only files (lag, not credited): Methods with no coverage of this code: Licence duties: licence copy / NOTICE / change markings / AGPL source link Threshold written before the count: Outcome: built in-house / disclosed fork with real added work / thin rebrand / undisclosed fork Question for the founders: "The deck describes <product> as <claim, verbatim>. Reading the code, it appears to start from <upstream> at commit <sha>, dated <date>. Can you walk me through what your team has built since that point, and how you take in upstream security fixes?"
One memo per company; write "not established" instead of leaving any line blank.
Before the memo goes to the partner meeting
- The deck sentence is quoted verbatim with its slide number.
- The memo states which artifact form was analysed and whether the clone had full history.
- Every candidate upstream is named with its licence, including a second layer if one exists.
- The fork point is a SHA with a date and the method that produced it.
- The reversed rebrand tokens are listed, and every exclusion is logged as a count.
- Counts are made against the fork-point commit, with upstream-only files reported separately.
- Identical, modified, and original are each given in both files and lines.
- Every "no match" names its method and that method's coverage limit.
- Each Apache section 4 or AGPL section 13 duty is marked met, missing, or not applicable.
- The outcome is judged against a threshold written down before the count.
- One dated question for the founders is drafted and ready to send.
Who does this work, and keeping the method current
Specialists in this work barely show up by title. In Refolk's index of professional profiles, the exact titles are close to absent:
| Title | Market | Count |
|---|---|---|
| Technical Due Diligence | US | 2 |
| Technical Due Diligence | UK | 1 |
| Open Source Program Office | US | 1 |
If you want a second reader, search by experience rather than job title. Refolk takes a request such as technical due diligence consultants in the UK who have worked with venture funds, and it can just as easily find ScanCode or AboutCode contributors who do code-provenance work.
To keep the method current, re-check three things before each teardown instead of trusting this page: which ecosystems MatchCode.io covers, what ScanCode.io's changelog says it can fingerprint, and whether the Software Heritage archive holds the candidate upstream's history.
Questions practitioners ask
How can I tell if a startup forked an open-source project?
Start with the cheap signals: LICENSE and NOTICE files, package names, and strings left over from another project. Then add the candidate upstream as a git remote and run git merge-base --all. Shared history proves a fork. If history was rewritten, score upstream commits by shared file hashes after reversing any brand renames, and look up individual file hashes in the Software Heritage archive. Treat an empty result as a symptom to explain, never as proof of original work.
Why does git merge-base return nothing on a repo I think is a fork?
There are usually two causes. Empty output with exit code 1 is the classic shallow-clone symptom: check with git rev-parse --is-shallow-repository and fetch with --unshallow. If the repo is complete and still shows no common ancestor, the history was rewritten, as in a rebrand that rewrote every commit. In that case you find the fork point by content overlap instead. The --fork-point option also fails on a fresh clone, because it needs reflog entries.
What original-code share makes a fork a thin rebrand?
No published cutoff exists. I found no technical-diligence write-up that sets one, so any number you see quoted is someone's house rule. Write your fund's threshold down before you run the count, in both files and lines, and apply it to the count made against the fork-point commit after normalisation. Show the result with and without exclusions, and say so if the outcome changes between them.
Is it a licence breach if a startup relicensed an Apache-2.0 fork as closed source?
No. Closing an Apache-2.0 fork is permitted. The section 4 duties still apply: recipients get a copy of the licence, modified files are marked, existing notices are kept, and NOTICE contents are passed on. Before you raise a breach, point to a specific missing duty, such as a deleted NOTICE file or unmarked modified files. AGPL-3.0 works differently for hosted products: a modified version must offer its source to network users.
Can I check code originality from only the shipped web app?
Only partly. ScanCode.io's deploy-to-develop pipeline can match minified JavaScript back to TS or JS source, it handles Go, Java, and ELF binaries, and source maps help. But its package matcher, MatchCode.io, covers only Maven and npm packages, and no match rates have been published. On any other stack, a silent result means the tool has no coverage, not that the code is original. Write that limit into the memo and ask the company for source access.
What should I ask the founders if the code looks forked?
Ask one specific, dated question. Quote their deck claim word for word, name the upstream, the fork-point commit and its date, then ask them to walk you through what they have built since then and how they take in upstream security fixes. Their answer matters more than the code. In the Delve case, the reported damage came from answering "we built it ourselves", not from the fork itself.
Try it on the search you came here for
Stop building boolean strings. Just describe the person.
Type one sentence. I plan the search, read GitHub, public LinkedIn and Crunchbase records, and the open web as it is right now, and hand back a ranked list with the reason next to every name.
01Describe them
One plain sentence. Role, city, stack, stage, whatever matters to you.
02I read the web live
GitHub, public LinkedIn and Crunchbase records, the open web. Not a database that went stale last quarter.
03You read the shortlist
Ranked, with the reasoning under every name. Open a profile, ask a follow-up, narrow it down.
- Staff backend engineers in NYC who shipped Rust in production
- Series A fintechs in SF under 50 people, growing headcount this year
- Maintainers of fast-growing Rust web frameworks on GitHub
- No boolean, no filters, no seat to buy. One box.
- Read at search time, so a profile updated yesterday counts today.
- Every step visible as it runs, every name with its reason.
500 free credits on sign-up. No card, no demo call. See real searches.