Every session path crosses the same credential boundary
Capture, import, reconstruction and recovery must use the canonical redacting writer. Uploads independently validate the exact bytes they publish. A scan failure holds publication; it never counts as clean.
Native adapter / import→ Mandatory writer→ Private recording→ Exact-byte publication guard→ Ledger
Gitleaks intentionally follows the latest upstream catalog automatically. Offline capture uses the complete bundled catalog; online publication requires a fresh, successfully parsed upstream catalog. The cost is that upstream unavailability delays publication while preserving local recordings.
The strongest remaining limitation is detection: no pattern catalog can identify every arbitrary unknown secret. Internal interfaces and regression tests enforce the supported paths; this is not an operating-system sandbox against a malicious process.
<!-- ox:details -->Implementation and evidence
Load the complete catalog in a dependency-light guard; reject unsupported rules. Route storage, history and imports through the canonical writer; remove raw writer escape hatches. Add native-parser secret regressions for every bundled adapter and reject unavailable adapters. Validate immutable Git blobs and exact LFS upload buffers. Replace fail-open publication and overrides with explicit pending errors. Update the bundled catalog automatically and document the latest-rules exception inline. Validate synthetic negative and benign positive controls, failure cases, framing, policy handling and architectural guards. No real credential values or raw incident logs belong in evidence.
<!-- /ox:details -->
