You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Workspace maiden-run marker under /ax is lost on volumes-only resume #518
internal/substrate/client.go configures every Task with PreferredFidelity: SNAPSHOT_FIDELITY_VOLUMES and DurableDirs: []string{"/workspace"}. As noted in #486, resuming from a volumes-only snapshot boots the container fresh from the image and restores only /workspace.
docs/runner.md notes that workspace setup markers must live on the durable volume so resume skips setup:
Record that setup happened somewhere on the durable volume or in a known location, per workspace, then skip the work on later boots. Resume restarts the container, and re-cloning into a restored workspace would destroy the agent's state.
However, internal/workspace/setup.go sets DefaultAXDir = "/ax" on the root filesystem and writes the maiden-run marker to /ax/initialized-<path>. Because /ax is outside /workspace, a volumes-only suspend and resume loses the marker file. On resume, SetupWorkspace runs a second maiden setup against the restored /workspace:
writeFiles overwrites any inlined spec.files (such as AGENTS.md) that the agent or user edited.
runBootstrap runs antigravity_bootstrap.py again if a workspace goal is set.
Suggested fix
Store the maiden-run marker inside the target workspace directory (for example <targetPath>/.ax-initialized or under /workspace/.ax) or include /ax in DurableDirs so the marker survives SNAPSHOT_FIDELITY_VOLUMES suspend and resume cycles.
Thanks @moficodes, confirmed: only /workspace survives a volumes-only resume, so the setup marker under /ax is lost and setup runs again on every resume. Related to #486 (what survives a suspend).
Hey @mayawang, can I take this one? My plan is to save the setup marker inside /workspace instead of /ax, since /workspace is the only folder that comes back after a resume, and the runner docs already say to keep it on the durable volume. That way I don't touch the snapshot settings #486 is working on. I'll add a test that checks setup only runs once, and fix the line in docs/runner.md that mentions /ax. I'll push it to my fork.
Hi @mayawang, the fix for #518 is ready in rkb32#4 (branch fix-setup-marker-minimal, one commit on current main). It moves the maiden-run marker onto the workspace volume. CI is green, and Codex found no major issues on the same code. Could you open the upstream PR from rkb32/ax:fix-setup-marker-minimal? PR creation is collaborator-only (#448).
Thanks @mayawang! I've amended the commit to use my GitHub noreply address, so the CLA check should now match. I also removed the keep-existing-file change, so a declared spec.files entry overrides the repo copy again. I can open a separate issue for it if we want that protection back. The CLA check passes on the current head; CI is still running on it.
Activity
mayawang commentedon Oct 27, 2026
Thanks @moficodes, confirmed: only /workspace survives a volumes-only resume, so the setup marker under /ax is lost and setup runs again on every resume. Related to #486 (what survives a suspend).
rkb32 commentedon Oct 29, 2026
Hey @mayawang, can I take this one? My plan is to save the setup marker inside
/workspaceinstead of/ax, since/workspaceis the only folder that comes back after a resume, and the runner docs already say to keep it on the durable volume. That way I don't touch the snapshot settings #486 is working on. I'll add a test that checks setup only runs once, and fix the line indocs/runner.mdthat mentions/ax. I'll push it to my fork.mayawang commentedon Oct 29, 2026
Yes please, go for it! Plan sounds right to me
workspace: harden the marker path for google#518
workspace: keep the maiden-run marker on the workspace volume (google…
rkb32 commentedon Nov 1, 2026
Hi @mayawang, the fix for #518 is ready in rkb32#4 (branch
fix-setup-marker-minimal, one commit on currentmain). It moves the maiden-run marker onto the workspace volume. CI is green, and Codex found no major issues on the same code. Could you open the upstream PR fromrkb32/ax:fix-setup-marker-minimal? PR creation is collaborator-only (#448).workspace: keep the maiden-run marker on the workspace volume (google…
workspace: keep the maiden-run marker on the workspace volume (google…
rkb32 commentedon Nov 2, 2026
Thanks @mayawang! I've amended the commit to use my GitHub noreply address, so the CLA check should now match. I also removed the keep-existing-file change, so a declared
spec.filesentry overrides the repo copy again. I can open a separate issue for it if we want that protection back. The CLA check passes on the current head; CI is still running on it.workspace: keep the maiden-run marker on the workspace volume (#518) (#…