ci: classify mux/ as macOS-neutral so mux-only PRs pass the routing guard
Problem
Every mux-only PR fails the tests and ci-status routing checks (e.g. https://github.com/manaflow-ai/cmux/pull/7609), while the mux workflow itself passes. The guard reports app-host unit tests were required but did not pass: skipped.
Root cause: scripts/ci/detect_ci_change_areas.py's is_macos_change is a catch-all โ any path not explicitly in is_macos_neutral counts as a macOS change. mux/ isn't listed, so mux-only PRs resolve macos=true. After #7583 staged the macOS app-host shards behind the linux preflight, those shards report skipped while changes.macos=true, and the aggregator guard (if macos == "true" and tests["result"] != "success") fails.
Fix
cmux-mux is a standalone Rust project gated by its own mux workflow; it never affects the macOS app build or app-host tests. Add mux/ to is_macos_neutral so mux-only PRs resolve macos=false, the app-host job skips legitimately, and the guard's macos != "true" branch accepts the skip.
Verified: Resolved areas: macos=false for a mux-only file set; all 36 detector tests pass including the new test_mux_only_skips_macos.
๐ค Generated with Claude Code
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.
[!NOTE]
Low Risk
CI routing-only change with a focused unit test; no runtime app or mux build behavior changes.
Overview
Fixes mux-only PRs failing tests / ci-status when macOS app-host shards are legitimately skipped. Paths under mux/ were treated as macOS changes because they were not in the neutral prefix list, so changes.macos=true conflicted with skipped app-host jobs after the linux preflight gate.
is_macos_neutral in detect_ci_change_areas.py now includes mux/, matching the standalone cmux-mux Rust tree covered by the separate mux workflow. Mux-only diffs resolve macos=false (and not web/go) so guards accept skipped macOS jobs.
Adds test_mux_only_skips_macos to lock in classification for typical mux paths.
Reviewed by Cursor Bugbot for commit ce33f774f62007cd2a6fe5601dad029ed15cb8a6. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by cubic
Classify mux/ as macOS-neutral in the CI change detector so mux-only PRs correctly skip macOS app-host tests and pass the routing guard.
- Bug Fixes
- Include
mux/inis_macos_neutral()to avoid falsemacos=true. - Add
test_mux_only_skips_macosto lock the behavior. - Result: mux-only changes run only the
muxworkflow;tests/ci-statusno longer fail due to skipped app-host shards.
- Include