fix(park): read HEAD membership once and move nothing when it cannot be read

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kjell Tore Guttormsen 2026-10-26 14:36:03 +01:00
commit bf4736a254
Signed by: ktg
SSH key fingerprint: SHA256:JakMjO6FTBBzN0Bhfj9saOoEjaFxlSdYuZQQpM/lF9Q
4 changed files with 190 additions and 15 deletions

View file

@ -1568,8 +1568,9 @@ Sub-step C.2 never registers it again): moved, never deleted, never over a file
already parked. Name the `parked` paths and every `kept` path with its reason
in the step report. Exit 1 means a file the attempt made is still in the tree
(a header it could not read, a move that failed): stop and name it; exit 2 is
a stop too (the tree was not checked). Then launch a fresh `build` helper for
the revised step.
a stop too, nothing unindexed or moved (HEAD could not be read, a path in HEAD
is missing from the index, or another git call failed). Then launch a fresh
`build` helper for the revised step.
- **Never pass the Agent tool's `name` parameter.** A named spawn becomes an
`in_process_teammate`: it does the work, but its result never reaches this