Source-grounded findings

On supported platforms logcat.ai resolves a log line back to the place in the platform source that printed it and shows you the file, the line, and what that code does. Grounding never blocks or delays an analysis.

Two things decide whether you get citations

Your account and the capture. Every account has source-grounded analysis. Where it has been turned off for an account, findings arrive with no citations, and the candidate-fix and source-search features are not offered. It appears as “Source-grounded analysis” on Plans and pricing; if it isn’t on yours, ask us. The rest of this page is about the capture.

What a citation looks like

A citation is a small chip next to a finding or inline in a report:

⌖ Android 15 source · CachedAppOptimizer.java:2593

The source says which tree the citation was read from: the platform and its release, and for a kernel the vendor tree, as in “Linux 6.1 source for the vendor tree”. Then the file and the line. Hover for the full path; click to open the code. A citation that names a function rather than a line copies the path instead.

Reading the code

Clicking a citation opens a panel beside the finding with the cited line in context, the platform release it came from, and what that code is recorded as doing. From there you can copy the path, ask for a candidate fix, or see the whole file: every line it printed in this capture and how often.

When the panel has no code to show it says why: the release’s tree doesn’t carry that file, we hold no source for the release, or the source was briefly unavailable. Shared report links and exported PDFs have no code panel, since reading source needs a signed-in account; their citations still name the file and line.

A grounded finding also offers ready-made questions about itself; picking one fills the investigation box and runs nothing.

A citation into a crash

A finding citing a line of a stack trace carries the sentence the analysis wrote about that line, marked as coming from the analysis rather than from the code, and opens the rest of that crash as a call chain in the order the device printed it. Where two crashes cannot be told apart, no chain is shown.

Searching the source yourself

The References page has a search box over the source your own files have been matched against: ask whether we hold a symbol, a log string or a file and where it sits. Results are pointers, not citations, so they don’t open the code panel.

Where citations show up

SurfaceWhat you get
Dashboard, Overview tabA Findings located in source table for the highest-severity findings: severity, finding, file and line, the source it was read from, what the code does, and how many locations were cited
Findings listCitation chips under each finding with a one-line note on what the code does
Log overview, AI insightsEach insight names the source file and line behind it
Bugreport analysisA Source-Grounded Findings panel grouped by subsystem
Deep Research, Delta, Quick SearchInline citations in the answer, alongside the log-line citations. In a Delta answer, read which device a citation belongs to from the surrounding text

Which platforms are supported

Grounding applies to Android logs and Linux kernel logs. In a bugreport, that means the Android log and the kernel log it contains, not its crash dumps or ANR traces. Everything else (network captures, traces, databases, modem logs, an app’s own log) is analyzed normally with no citations, because there is no platform source behind it.

We hold the Android platform releases from Android 9 onward and a set of Android Linux kernel trees: the Android common kernels, the Pixel 6 kernel and the Pixel 9 kernel. The References page lists the source your account can reach and how many of your captures matched each, and lets you filter your captures by what was found; check it there, especially on a self-hosted deployment, where the set is chosen at setup and can include your own source. Some source belongs to one organization, so a colleague elsewhere may see a different list. If the platform you work on isn’t covered, tell us.

A log needs an exact version match

A log is grounded only when the version it states matches available source exactly: an Android 15 log is not cited against Android 14 source. A near miss would cite the right file at the wrong line, so you get none rather than approximate ones.

The version is read from the capture itself, and only where the device states it about itself: a build header in a buffer any app can write is ignored, and a version belonging to one part of the device is not taken as the platform’s. A log that arrived inside a bugreport or crash dump inherits that capture’s version, which matters for kernel logs, whose boot banner has usually scrolled out of the ring buffer.

Deep Research goes one step further. Where the device doesn’t state its version but the capture’s text names a release, such as a build header in a log buffer, it can cite source at exactly that release. Those citations are marked as a reference read from the capture’s text, not your device’s own code, so no fix is proposed against them. A capture naming no release gets no source.

The release is only half of the match

A capture can say more than its release: the kernel tree it came from, a manufacturer or aftermarket build, its exact build, or an older release in its vendor partition. Where that doesn’t line up with the source, or the source moved after the capture was analyzed, the citation or the file carries a mark. What each mark means, and what to do about it, is on Marks on a citation.

When a capture isn’t grounded

Nothing is wrong: the chips don’t appear and everything else works. A note at the top of the file’s Overview says which of these applies:

What it saysWhat it means for you
Not included on this accountSource citations have been turned off for this account. Findings arrive as usual, without chips
Not set up on this installationSelf-hosted only: no file or Deep Research report there carries them until your administrator sets them up
Doesn’t say which platform version it came fromNothing to match against. Capture the log with its build header, or upload the bugreport it came from. The dashboard stays ungrounded, but an OS version you state lets investigations cite and fix source at that version, labelled as matched on it
Names a version we can’t rely onA version was found but not one the device stated about itself. An investigation may cite source at it as a reference, with no fix. For citations a fix can use, same remedy
Names two different platform versionsNothing settles which one the device is running. Upload the bugreport, or a capture whose build header states the same version as the device settings
Could not be matched to platform sourceNo readable log lines, or none of them are in the source we have. Nothing to fix
We don’t hold source for this release yetTell us which release you need
We couldn’t determine which source matchesWe’re looking into it
Citations were unavailable at the timeUsually clears on its own. Upload again
No record of whyOlder files predate the reason being recorded

A line with no citation has not been shown to have no origin; it means we couldn’t resolve one. Treat an absent citation as unknown, not as evidence.

Reaching this from the API

Every read on this page is on the API, with an API_KEY header:

What you wantCall
Which platform source your account can be cited againstGET /api/v1/source/coverage
How each of your files matched itGET /api/v1/source/captures
The code behind a citationGET /api/v1/source/window?graph_label=…&file=…&line_no=…
What one source file printed in a fileGET /api/v1/files/{id}/source/evidence?label=…&file=…
A candidate fix already generated for a cited lineGET /api/v1/source/fix-proposal?graph_label=…&file=…&line_no=…
Which cited lines you have candidate fixes forGET /api/v1/source/fix-proposals?graph_labels=…

Lines a source file was expected to print and did not are no longer computed. The evidence read lists only what printed and sets absences to not_computed. GET /api/v1/files/{id}/source/missing-signals is deprecated: it answers with empty lists and the same absences value, so an empty list never reads as nothing missing.

A cited source line, on the evidence read and on a file’s findings, may still carry a trigger. It’s deprecated and goes in a later release, so don’t build on it.

The three parameters are exactly what a citation on a file’s findings carries. A Deep Research, comparison or quick search answer names its source in words instead, as in “Android 16 source: frameworks/base/core/java/android/os/Example.java:120”, so open those citations from the Console. Asking for a new candidate fix is Console-only, because it spends your quota. The fix read returns what exists and never generates, so it is safe to poll; what it returns for each outcome is on Candidate fixes.

Where the matching happens

Citations are resolved against source held inside the deployment; producing one does not send your capture anywhere. Two things do reach outside: generating a candidate fix, and Deep Research, which may look up public platform source and upstream changes while it investigates, using function and class names from your log as the search terms.

Next