Repository navigation
workspace: keep the maiden-run marker on the workspace volume (#518) - #551
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
Thanks @rkb32! The marker move looks right. Two things: the commit email is a placeholder so the CLA check can't match you, could you amend it with your real email? And the change to keep existing files on maiden run is a behavior change (a spec.files entry no longer overrides the repo's copy, e.g. a CLAUDE.md). Could you drop that part here and open an issue if you think it's needed? |
c0fa710 to
c9a8642
Compare
…#518) The marker lived under /ax, which a volumes-only resume does not restore, so setup reran and could overwrite the agent's edits. Write it under the workspace instead: .git/.ax/initialized for a Git repo, otherwise .ax/initialized. Migrate a legacy marker only when it names this workspace. Refuse a marker path that is a symbolic link. Keep an existing inlined file on a rerun. Make MarkerName portable across path separators. Check the marker path in the E2E test and in the runner test.
c9a8642 to
ffb4b43
Compare
|
We need a better solution for the marker files. workspace is the directory that will be modified by the agents/harness and it's better to create a durdir that contains both a workspace and some ax related files. |
|
Thanks @rakyll. I agree the marker shouldn't sit in the agent-modified workspace. Two questions before I change it:
If it's the PR, I'll push a new commit, which will need a fresh approval. |
Opened on behalf of @rkb32 from rkb32#4, since PR creation is limited to collaborators for now (#448).
Fixes #518. A volumes-only resume restores only the workspace volume, so the setup marker under /ax was lost and setup ran again on every resume. This moves the marker onto the workspace volume, and migrates an existing marker from /ax.