Understand the deepsec pipeline stages
maindeepsec operates via an append-only, idempotent pipeline where each stage is a separate CLI subcommand. Re-running a stage merges new information into existing records rather than overwriting them.
scan: Globs the project and runs regex matchers to identifycandidates. Writes these toFileRecords withstatus: "pending".process: Sends batches of pending files to an AI agent backend to generatefindings. Updatesstatusto"analyzed"and appends toanalysisHistory.revalidate: Re-checks existing findings using an AI agent to assign a verdict (true-positive,false-positive,fixed, oruncertain).enrich: Attaches git committer info and ownership data toFileRecords containing findings.export/report/metrics: Read-only stages that shape data into JSON, markdown, or cross-project metrics without modifying the sourceFileRecords.