mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 17:37:14 +00:00
Session::execute catches a command's panic and returns an ordinary Err (the last-resort guard in jobs.rs), so the unwind never reached panic_hunt's own catch_unwind and a panicking command counted as a pass. The harness now installs a panic hook that counts every panic in the process, including on rayon workers, and a run fails if the count moved. Runs are serialised so a panic is charged to the run that caused it. No production code changes. Test: contained_panics_count_and_graceful_errors_do_not. A contained panic fails the run and a graceful Err passes; the first assertion fails without the hook. The full --ignored fuzz stays green, so no command panics today. Co-authored-by: prekabreki <prekabreki@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>