ADR 0004: Coverage-guided fuzzing beside the crate

Context

The input decoder reads bytes the terminal sends, which petitcarnets does not control. An in-house fuzz test (fuzz_ten_million) runs ten million generated inputs through it in CI, but it is blind: it does not know which branches an input reached. OpenSSF Scorecard scored Fuzzing 0, because it recognises only cargo-fuzz, OSS-Fuzz and ClusterFuzzLite, and the portfolio standard (AGENTS.md 6.1) asks for ClusterFuzzLite on every repository that parses input.

Decision

A separate, unpublished crate, fuzz/, holds the cargo-fuzz targets. It is its own workspace with its own lockfile, so petitcarnets' [dependencies] stay empty (ADR 0001) and cargo tree still prints one crate. Its one target, input, runs the same properties as the in-house test (src/input/fuzz.rs: no read past the buffer, nothing left stuck), reached through petitcarnets::fuzz, a module built only with --cfg fuzzing and so never part of the API.

ClusterFuzzLite (.clusterfuzzlite/, .github/workflows/fuzz.yml) builds the targets and fuzzes the code each pull request changes, with the input fixture as the seed corpus. An input that once crashed a target is committed to fuzz/regressions/<target>/ and replayed by make check.

Consequences