A security comment and a scan finding are different kinds of evidence
Why an AI-generated review comment about security is not the same as a static analysis finding, and what each can establish about a proposed change.
AI-assisted code review asks whether a proposed change makes sense in context. On a pull request that adds a document download endpoint, an AI reviewer might ask, “Where do we check that the caller owns this document?” The comment raises a question about the intended access rules. Even if it quotes the changed lines, it does not establish that the check is missing; shared middleware could enforce it.
Static Application Security Testing (SAST) analyzes code without running the application. On that same pull request, a scanner could report that a request value reaches a database query built by joining strings. The finding records what a rule detected in the scanned revision. It is evidence of a potential weakness, not proof of what happens in production.
Both outputs can appear as comments on the same pull request, even through the same assistant. Tell them apart by how they were produced: reasoning about the change and its intent, or a scanner applying security rules to code.
Next up: Sort the statements on what you just read.