#948·monty

v2: rename MountDir to LocalVolume and configure it at checkout

Author: samuelcolvinCreated Sep 27, 2026Updated Sep 27, 2026
LabelsenhancementV2

MountDir and RemoteVolume are the same idea, a directory mounted into the sandbox at a virtual path with an access mode, under unrelated names and with different lifecycles. In v2 they should become a matching pair.

Rename

  • MountDir becomes LocalVolume in pydantic_monty and @pydantic/monty.
  • MountSpec becomes LocalVolume in monty-pool.

Both carry a TODO rename to LocalVolume at v2 today.

Configure at checkout

A RemoteVolume is part of the session's configuration: it is passed to checkout(volumes=...) and lasts for the session. A MountDir is passed to each feed_run(mount=...), and its overlay lasts for one feed.

In v2 a LocalVolume should be set up the same way, at checkout, so both kinds of volume are declared in one place and an overlay lives for the session in both.

Open questions

  • Whether feed_run(mount=...) stays as a per-feed override or is removed.
  • Whether one volumes= argument takes both kinds, or each keeps its own.
  • What happens to a local overlay when a session is dumped and restored.