- lock the full transitive closure with per-instance alias edges, root manifest digest, full content digests and structured path/git sources - reject v1/v2 locks; validate ids, digests, edges, reachability and sources - resolve every locked edge by (parent instance, alias) and fail closed on missing locks/edges/records, digest or source drift and root drift - require a lock for run/check/inspect when dependencies exist and map lock errors to exit 1 - make sync strict in both modes, never rewrite the lock, and materialize the whole closure with env.json schema 2 - verify Git cache markers, require full commit hashes and confirm HEAD - stop add/remove from patching the lock; regenerate example locks - update package-format.md and STATUS for S1
Multi-version package example
Two directories declare the same package name geometry at versions 1.0.0
and 2.0.0. They receive different package-instance ids and different
ModuleIds; importing both aliases is not an implicit override.
marqdo run examples/packages-multi-version/index.mq.md
marqdo lock
marqdo lock must be run from the example directory because it discovers the
project from the current working directory:
(cd examples/packages-multi-version && ../../target/debug/marqdo lock)
The lock records both content-addressed instances; no version silently wins.