mirror of
https://github.com/st3fan/ewm.git
synced 2026-10-25 02:02:15 +00:00
Phase C5, the last phase of plans/20260718-02-config-sources.md. The README's config section is rewritten around the compositional model — one document, four source kinds merged in command-line order (--config base, --config-overlay layers, --set overrides, convenience flags on top) — with the Total Replay overlay as the worked example and --config builtin:2e in the quick-start. The example configs are now committed under examples/ (myiie.json and drive-with-total-replay.json, shown verbatim in the README), so every example references real files. --print-config closes the section as the "what machine did I just describe?" / linter answer. The gate's scripted check is the readme_two_examples_parse test in two.rs: it extracts every `cargo run --release -- two ...` example from the README (quote-aware, continuation-joining) and runs it through parse_options, which opens every --config/--config-overlay source — so a renamed flag, a bad example path, or an example config that stops validating fails the suite. Notes brought up to date: JSON_CONFIG.md's status table gains the config-sources row (C1-C5 done) and Phase C is marked as seeded by options_to_config; IDEAS.md moves machine config files from "in progress" to "landed" with the remaining palette work named; MAC_APP.md's Phase 3 bullet records that .ewmachine bundles can be a thin layer over the landed source surface. Also fixes the --fps usage text (the default is 40, not 30 — drift spotted during C4). Verified: the README's composed, complete-config, and overlay-only examples run against the real binary from the repo root (exit 0, expected documents); fmt, clippy -D warnings, and the full suite (including the golden-BMP screenshot tests) pass. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>