Evidence
Every number in LineTrail says what kind of evidence stands behind it. A line is never moved into a better class than its evidence supports, and a line with no evidence stays unknown: it is not estimated, and it is never counted as human.
No evidence → unknown. Never human.
The evidence classes
Section titled “The evidence classes”- CapturedCounted as AIAttested at generation time by the capture hooks, as the tool reported it+ Verified where the evidence adapter confirms the final writer of each line
- DerivedShown apart, never countedRebuilt from the source commits’ notes after a hosted squash or rebase
- InferredCounted as AI, separatelyA known cloud agent’s marker on a commit with no capture note
- UnknownNever counted as humanNo evidence. Not estimated, not assumed
Captured. The capture hooks on a developer machine attested the line to an AI session when it was written. It is counted as the tool reported it: source-reported, not independently verified final authorship.
Verified is a check on top of Captured. Where the LineTrail evidence adapter is turned on (Claude Code, OpenCode and the VS Code extension; opt-in), LineTrail checks the final writer of each added line against a local record of the edits.
Derived. A commit created by a hosted squash or rebase merge has no capture note of its own. Its attribution can be rebuilt from the source commits’ real notes. Nobody observed the new commit being written, so it is shown beside the commit, labelled, and never added to its counts.
Inferred. A commit with no capture note that carries a known cloud agent’s author, committer, trailer or message marker. A marker is a claim written into the commit, not verified provenance, so these lines are counted as AI in a subset that is always shown separately.
Unknown. No attestation, a missing or unreadable note, conflicting attestations, or an attestation that can’t be verified.
A commit that has a capture note is never upgraded by a marker, and a commit with a derived block is never also inferred.
Unknown is never counted as human
Section titled “Unknown is never counted as human”- A line with no evidence is unknown, and unknown is reported next to every share.
- Observed human is only verified human evidence. Lines the capture source marks as human are not counted as human (see below), so the observed-human count stays at 0 today.
- Coverage shows how much evidence exists. Attribution coverage is the share of lines with a known origin. It describes available evidence, not accuracy.
Human-marked (unverified)
Section titled “Human-marked (unverified)”The capture source can mark lines as human. It uses the same marker for lines it saw someone type and for lines it simply couldn’t attribute to an AI session, so the two can’t be told apart.
LineTrail shows these lines as Human-marked (unverified): the capture source marked these lines as human; LineTrail has not verified it.
- Human-marked lines are never counted in human share or attribution coverage. In the counts they stay part of unknown, and they are always shown next to it.
- Observed human is reserved for verified human evidence.
- LineTrail does not verify human authorship today. Validation of keyboard evidence from the VS Code extension is in progress.
How the numbers are built
Section titled “How the numbers are built”| Measure | Definition |
|---|---|
| Eligible added lines | AI + observed human + unknown, after exclusions |
| AI share | AI ÷ eligible |
| Attribution coverage | (AI + observed human) ÷ eligible |
| AI share of known-origin lines | AI ÷ (AI + observed human), a different denominator, labelled separately |
- Excluded files (binaries, vendored code, build output, lock files, generated files and your own exclusion rules) leave the numerator and the denominator, and are reported as excluded.
- A zero denominator shows N/A.
- Pull requests are measured on their final merge base → head net diff: a line rewritten inside the pull request counts once.
- Repository totals and trends add up commits. Merge commits are skipped so nothing is counted twice.
- Inferred lines are included in AI share and coverage, and the inferred subset is always shown next to them.
Attribution through squash and rebase
Section titled “Attribution through squash and rebase”Rewriting history creates new commits. Whether their attribution survives depends on whether anyone carried the evidence across:
- Rebase or squash on a developer machineCapture is running and moves the notes with the commitsCaptured
- Squash or rebase merge on GitHub or GitLabA CI step re-maps the notes onto the merged commitsCaptured
- Squash or rebase merge on Bitbucket Data CenterThe LineTrail re-map job rebuilds them from the source commits’ notesDerived, shown apart
- Any rewrite with no re-mapNobody observed the new commit being writtenUnknown, never human
- Pull-request attribution doesn’t depend on how the pull request is merged. It is computed from the pull request’s own commits and their notes, over its net diff.
- Hosted merges need a re-map step. The CI templates run it for you. Until it has run, or where a merge can’t be re-mapped, the merged commit is unknown: an honest under-count, never a guess.
- A note-less upload never erases evidence. If a later sync can’t see the notes (for example a CI clone without them), the attribution already stored for that commit is kept.
Known limits
Section titled “Known limits”Captured evidence is only as good as the hooks that produced it. These cases are documented and visible, not hidden:
- A line an agent wrote and that was later rewritten without a new checkpoint keeps its AI attestation.
- Text an agent copies during a tool call is attested to that agent session, even if a person originally wrote it.
toolandmodeldescribe the session that changed the file. - Commit-time formatters can change lines after the last checkpoint.
- Edits in files larger than 3 MiB are not captured and show as unknown.
- Capture covers code written on machines where it was active. Commits made elsewhere are unknown.