Workspaces
A workspace is the cloud counterpart of one project directory on one machine. It holds:- a copy of your source files;
- your project’s build outputs (
.lake/build) and any dependencies that are not part of a prebuilt environment.
pp workspace list shows yours.
To share one workspace across machines, for example so CI jobs reuse each
other’s build cache, name it:
What is uploaded
Inside a Lake project, ProofPod uploads the project’s source files:- If the project is in a git repository: every tracked file, plus untracked
files that are not ignored. This is
git ls-files --cached --others --exclude-standard. - If it is not a git repository: the same
.gitignorerules still apply. - If git is not installed: everything except common build directories and compiled artifacts.
.lake/, .git/, .proofpod/.
Local path dependencies outside the project root (require foo from "../foo") are detected from the manifest and synced alongside the project.
To exclude more, list patterns in proofpod.toml:
proofpod.toml
pp lean A.lean uploads A.lean and nothing else from the directory.
How little travels
Each sync is a comparison of content hashes:- The CLI lists your files and hashes the ones whose size or modification time changed since last time.
- It compares that against what the workspace is known to hold.
- Changed and new files go up in a single compressed archive; deletions are sent as a list.
What comes back
After a cloud command finishes, ProofPod looks for source files that the command changed: created, modified or deleted. Those changes are applied to your working tree.
The same ignore rules apply in this direction: a new file that your
.gitignore ignores is not sent back, and nothing under .lake/ ever is.
Your edits are never overwritten
A local file is replaced or deleted only if it still has exactly the content that was uploaded for this command. If you edited it while the command was running, your version is kept and you are told:Limits
Files larger than 64 MiB, or more than 256 MiB in total, are not sent back; you get a warning naming them.Turning it off
sync_back = false in proofpod.toml. The cloud workspace keeps the
command’s changes; your local tree is untouched. The next command you run
re-syncs the workspace to match your local files again.
Things that are deliberately not synced
- Build outputs.
.lake/stays in the cloud. If you need compiled artifacts on your machine, build locally withpp --local lake build. .git. A command that inspects git history will not find a repository.- Your environment. Pass variables explicitly with
--env.
Limits
A project’s source files may total up to 2 GiB. If you hit this, large data files are probably being picked up: add them to.gitignore or
[sync] exclude.
If the two sides disagree
The workspace records the digest of the sources it holds. If that does not match what the CLI expects, for example because the workspace was reset from another machine, the command is automatically retried with a full comparison. Unchanged files are still not rewritten. You will only notice with--verbose.