Extraction (`extractor.py`) reads raw instruction-file contents and formats them directly into the LLM prompt. `SecretDetector` currently guards only MCP-config templating in `package_creator.py` — the extraction payload itself is never scanned.
Hardening ask:
- Run the extraction payload through secret detection (redact/template hits) before any provider call, on both the AI path and anything the non-AI path persists
- Add a test that asserts a planted secret in an instruction file does NOT appear in the outbound payload
Tracked as DEBT-001 in `.codehealth/REGISTER.md`.
Extraction (`extractor.py`) reads raw instruction-file contents and formats them directly into the LLM prompt. `SecretDetector` currently guards only MCP-config templating in `package_creator.py` — the extraction payload itself is never scanned.
Hardening ask:
Tracked as DEBT-001 in `.codehealth/REGISTER.md`.