Pitch: AI coding agents and tired humans leak secrets into scratch files. Warn when a scratch looks like it holds an API key / .env-style secret, and refuse to promote it into a repo without an explicit override.
Acceptance criteria
Notes
- Don't print full secret values back to the terminal — mask them.
- Keep heuristics conservative to avoid alarm fatigue.
Pitch: AI coding agents and tired humans leak secrets into scratch files. Warn when a scratch looks like it holds an API key /
.env-style secret, and refuse topromoteit into a repo without an explicit override.Acceptance criteria
*_API_KEY=, private-key headers, long high-entropy tokens)sp lsflags scratches that tripped the detector (e.g. a 🔑 marker)sp promoteblocks on a tripped scratch unless--allow-secretsis passedsp scan <id>reports findings with line numbers (no secret values echoed in full)Notes