@@ -873,3 +873,34 @@ running multi-hundred-MiB derivations.
873873break cost bumps in the other direction: a reader shipped before the writer
874874would reject the new profile. A bounded budget keeps the forward
875875compatibility the header format exists for.
876+ ## 2026-07-25 — Do NOT run git surgery in the shared checkout while the fleet is live
877+
878+ ** Status:** FINDING (orchestrator error, no damage, caught by an agent's own report)
879+
880+ ` agent-cargo-hygiene.md ` says to fan the Sonnet fleet out in the SHARED
881+ checkout so twelve agents don't materialise twelve 7 GB ` target/ ` s. Correct —
882+ but it leaves out the consequence: the orchestrator's own git operations hit
883+ the same working tree the fleet is writing into.
884+
885+ This session: while an X25519 agent was still working, the orchestrator
886+ cherry-picked its branch and then ran ` git reset --hard origin/<branch> ` on
887+ the branch the agent was standing in. The reset deleted the agent's
888+ in-progress file from disk. The agent noticed (its file had vanished),
889+ rewrote it from what it had already verified, and reported the reflog entry —
890+ which is how this was caught at all.
891+
892+ ** No work was lost:** the file had already been committed and pushed to a
893+ separate branch minutes earlier, and the agent's reconstruction turned out
894+ byte-for-byte identical to the pushed version. The exposure was real anyway;
895+ the outcome was luck plus an agent that reported an anomaly instead of
896+ silently continuing.
897+
898+ ** The rule:** while any fleet agent is live in the shared checkout, the
899+ orchestrator may ` add ` /` commit ` /` push ` (append-only, non-destructive) but must
900+ NOT ` reset --hard ` , ` checkout ` another branch, ` stash ` , or ` clean ` . Branch
901+ surgery waits until every agent has reported. If it cannot wait, do it in a
902+ throwaway clone, not the shared tree.
903+
904+ ** Corollary worth keeping:** an agent that reports "my file disappeared and
905+ here is the reflog entry that explains it" is doing its job. Brief the fleet
906+ so anomalies get reported rather than worked around.
0 commit comments