Caelum af79891d9f
feat(apps): flesh out the four thin single-file apps (#2)
* feat(apps): flesh out the four thin single-file apps

Modularize and extend the four apps that were single ~200-line main.rs
files into focused modules with new functionality and unit tests
(per the many-small-files convention). All read-only / offline-safe.

- guardrail-replay (161→613, 7 files): new `risk`, `stats` (funnel +
  approval/fill rates), and `runs` subcommands; global `--run` scoping;
  `--json` output mode; modules cli/events/stats/render/csv/json.
- guardrail-exporter (223→333, 5 files): new metrics — latest regime
  (labeled), risk clips, kill-switch/throttle events, last-event age,
  build info, scrape duration; `/` index route; modules config/counts/
  report/metrics.
- guardrail-sim (284→496, 5 files): new `--compare-presets` ranking mode,
  `--json` output, `--starting-usd`; structured sweep results; modules
  cli/preset/sweep/output.
- guardrail-doctor (365→556, 9 files): new checks — skills INDEX.json +
  spec files, ensemble.json regime weights sum to ~1.0, strategy presets,
  migrations dir; checks/ submodule tree; report split out.

19 unit tests across the four; workspace builds green, clippy clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(ci): sort_by_key in sim compare-presets (clippy 1.96)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 02:08:51 +03:00
..