Without network policy, the setup sent the host's whole ~/.claude.json:
primaryApiKey and customApiKeyResponses reached the VM's own
~/.claude.json, and the projects' history its setup's staging folder,
though sync.sh dropped it from the merge.
agentlogin.ClaudeCopy keeps only claudeTopKeys (claudeTop, which the
network policy copy uses too), with the MCP servers as they are, and the
setup sends it (Store.ClaudeCopy) for every VM without network policy. A
~/.claude.json devvm can't read stops the setup (login_copy_failed)
instead of reaching the VM unread. stage.has had no caller left.
Tests: sync.txtar's ~/.claude.json with an API key, its answers and a
project's history, none of which the copy holds (failing before), and
one that doesn't parse; TestClaudeCopy.
Co-Authored-By: Claude Opus 5.5 <[email protected]>