forked from 1b-agent/fieldcraft-upstream
`cargo xtask affected` maps the changed files to workspace packages (by directory from cargo metadata; files outside every package to the packages whose sources name their top-level directory), adds every reverse dependency, and flags everything (manifest, lock file, toolchain, xtask, workflows), solver (the oracle's package or a package with #[ignore]d heavy tests) and wasm (a crate the wasm check builds). `cargo xtask ci --affected REV` runs the quick whole-tree gates, then clippy and the tests of the affected packages, and the wasm check only when flagged. Without the flag the gate is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo