cx.lock records exactly what a resolution used, so that every build and every machine gets the same dependencies. Commit it to version control.
Change summary: cx prints what it changed:
--resolution=lowest is useful in CI to check that the lower bounds in your requirements are real: cx update --resolution=lowest && cx test.
--locked fails if cx.lock would change. That catches a cx.toml that was edited without updating the lockfile.
Lockfiles from older cx versions (version = 1) are still read, and are rewritten as version 2 on the next resolution.