Skip to content

feat: implement skillet capture with fail-closed secret sanitization (F26/F32) - #8

Merged
csjones merged 1 commit into
mainfrom
CAPTURE
Jul 12, 2026
Merged

csjones merged 1 commit into
mainfrom
CAPTURE

Conversation

@csjones

@csjones csjones commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Add skillet capture so claude-code sessions can be frozen as scrubbed, scored evidence bundles under <skills_root>/<skill>/evaluations/sessions/. Capture always sanitizes and refuses to write if the secret scanner cannot run.

  • Introduce SanitizerKit (BetterleaksScanner, BetterleaksSanitizer, Redactor, ExemptMatcher) with value-based redaction and a scanner self-test canary that prevents betterleaks bypass.
  • Introduce CorpusKit (BundleText, SessionBundleWriter, BodyExtractor, TranscriptRenderer); the writer requires a SanitizationReport before creating any bundle file.
  • Extend ProcessLauncher with stdin support so raw session text and secrets are piped in-memory and never staged unscrubbed to disk.
  • Extend Trace with Redactable free-text fields and CorrectiveTurns.
  • Add sanitize config block and a doctor secret-scanner preflight row.
  • Record design decisions and test coverage in Specs/013 and Specs/014.

…n (F26/F32)

Add `skillet capture` so claude-code sessions can be frozen as scrubbed, scored evidence bundles under `<skills_root>/<skill>/evaluations/sessions/`. Capture always sanitizes and refuses to write if the secret scanner cannot run.

- Introduce `SanitizerKit` (`BetterleaksScanner`, `BetterleaksSanitizer`, `Redactor`, `ExemptMatcher`) with value-based redaction and a scanner self-test canary that prevents `betterleaks` bypass.
- Introduce `CorpusKit` (`BundleText`, `SessionBundleWriter`, `BodyExtractor`, `TranscriptRenderer`); the writer requires a `SanitizationReport` before creating any bundle file.
- Extend `ProcessLauncher` with stdin support so raw session text and secrets are piped in-memory and never staged unscrubbed to disk.
- Extend `Trace` with `Redactable` free-text fields and `CorrectiveTurns`.
- Add `sanitize` config block and a `doctor` secret-scanner preflight row.
- Record design decisions and test coverage in `Specs/013` and `Specs/014`.
@csjones
csjones merged commit 22e6ed4 into main Jul 12, 2026
2 checks passed
@csjones
csjones deleted the CAPTURE branch July 12, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant