1# @ajax/mesh-fleet-edit
23A change to the fleet's desired state, as the control port asks for it (`mfe_parse`: `load`, `upgrade`,
4`rollback`, `unload`, `start`, `stop`, `reset`, `task`, `place`, `group <name> reform|on_loss`,
5`sched pin|unpin|pause|resume|autoreform|cordon|uncordon`), the next document it makes (`mfe_edit`, with
6the control port's refusals in the Rust's words), and `mfe_revert`: undo exactly what a change that
7failed on every member changed, keeping what committed after it.
89The leader's catalog and the up members that can run a program come in through `mfe_ctx`.
1011## Ported from
1213[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) `crates/mesh-host/src/fleet.rs`: `Req`
14(`parse`), `Image`, `EditCtx`, `edit`, `revert`.
1516## Tests
1718`tests/edit.c`: the Rust's `changes_edit_the_document`, `a_lockstep_upgrade_must_run_on_every_member`
19and `a_revert_undoes_only_its_change`.
2021## Licence
2223MIT. See the repository's LICENSE.