A virtualenv in the worktree stops every checkpoint and is committed into the pull request #105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happened
Run #26 on production (cmoriarty/scratch, "When the hand ends…") failed at
git.commit.feature, and resuming it fails again with0 commit(s) since entry, wanted 1.openspec.apply[1]the agent made a.venvin the worktree to run the tests. The repository has no.gitignore, so its ~3,090 files are untracked rather than ignored.openspec.apply[1]has its entry checkpoint and no exit;apply[2],apply[3],agent.reconcile-tasks,agent.test.unitandgit.commit.feature#1have none. A checkpoint commit's message carries the untracked manifest and is passed togit commit-tree -mas one argument. The.venvpaths alone come to 230,824 bytes, and Linux refuses any single argument over 131,072 (MAX_ARG_STRLEN), so each checkpoint failed ("Argument list too long"), was logged, and was skipped.git.commit.feature#1then committed the whole worktree (git add -A): 3,126 files and 550,174 insertions, 3,090 of them the virtualenv. With no entry checkpoint itsgit-advancedcheck could not be evaluated, so the step failed after its commit had already landed.0 commit(s) since entry, wanted 1.Expected
node_modulesor tool cache that an agent creates in the worktree is never committed into the run's pull request, and is left out of checkpoints.Related: #67 (the disk footprint of the same installs).
Shipped in
4a6a643, as the OpenSpec changeworktree-environments(now archived; its requirements are the newrun-worktreespec).git commit-tree -F -on stdin, and a scoped rollback's paths go togit reset --pathspec-from-file. Neither is limited any more by Linux's 128 KiB cap per argument. Run #26's checkpoints failed there (E2BIG) once the agent had made a 3,090-file.venv. Tests: a checkpoint of 1,500 untracked files with over 1 MB of paths, and a scoped rollback of 1,500 paths. Both fail on the old code..git/info/exclude:.venv/,venv/,node_modules/,__pycache__/,*.py[cod],.pytest_cache/,.mypy_cache/and.ruff_cache/. An environment an agent creates stays out of the run's commits and checkpoints. Files the repository already tracks are still committed.4b5a4f4: a new run oncmoriarty/scratchgot the block in its worktree, andgit check-ignoreleaves out.venv/,node_modules/and__pycache__/there.Run #26 can't be resumed cleanly. Its feature commit
0b53f1dalready contains the.venv, and its first attempt atgit.commit.featurehas no entry checkpoint to roll back to. So the retry finds nothing new to commit, and "one commit since entry" fails.