> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanoss.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Earnie for Head of AppSec

> Identify AI-generated code before it reaches your codebase, then review and triage the findings with the supporting evidence.

```mermaid theme={null}
graph TD
    Code[New or AI-Generated Code] --> Check{Self-Check: Pre-Commit, Merge, or MCP}

    Check -->|Blocks| Fix[Fixed Before It Lands]
    Check -->|Passes| Merge[Code Merges]

    Fix --> Code

    Merge --> Scan[Scan Records Any Remaining Findings]
    Scan --> Review[Open Review Workspace]

    Review --> Evidence[Read the Matched Source Side by Side]
    Evidence --> Kind{Component or Cryptographic Finding?}

    Kind -->|Component| D1[Confirm Match, Mark Original, or Replace]
    Kind -->|Cryptographic| D2[Confirm Usage, False Positive, or Accepted Risk]

    D1 --> Recorded[Recorded in the Audit Trail]
    D2 --> Recorded

    Recorded --> Review

    %% Links
    click Check "/en/latest/earnie/getting-started/first-scan#self-checks-the-dry-run-before-the-gate"
    click Merge "/en/latest/earnie/using-earnie/merge-gate"
    click Review "/en/latest/earnie/using-earnie/triaging-findings"
    click Evidence "/en/latest/earnie/using-earnie/triaging-findings#reading-the-evidence"
    click D1 "/en/latest/earnie/using-earnie/triaging-findings#making-a-decision"
    click D2 "/en/latest/earnie/using-earnie/triaging-findings#making-a-decision"

    %% Styling
    style Code fill:#42A5F5,stroke:#1976D2,stroke-width:2px,color:#fff
    style Check fill:#42A5F5,stroke:#1976D2,stroke-width:2px,color:#fff
    style Fix fill:#26A69A,stroke:#00897B,stroke-width:2px,color:#fff
    style Merge fill:#78909C,stroke:#546E7A,stroke-width:2px,color:#fff

    style Scan fill:#78909C,stroke:#546E7A,stroke-width:2px,color:#fff
    style Review fill:#7E57C2,stroke:#5E35B1,stroke-width:3px,color:#fff

    style Evidence fill:#FF9800,stroke:#F57C00,stroke-width:2px,color:#fff
    style Kind fill:#42A5F5,stroke:#1976D2,stroke-width:2px,color:#fff

    style D1 fill:#26A69A,stroke:#00897B,stroke-width:2px,color:#fff
    style D2 fill:#26A69A,stroke:#00897B,stroke-width:2px,color:#fff

    style Recorded fill:#78909C,stroke:#546E7A,stroke-width:2px,color:#fff
```
