Unidentified mechanism reverted edits to scripts/merge-pr.sh inside a subagent
Observed twice during PR #628. A review-leg subagent reported that its edits to
scripts/merge-pr.sh in the live worktree were auto-restored within seconds,
without the agent reverting them.
What is known
- It happened twice, in the same leg's environment.
- My own mutations to the same file, from the main session, persisted
normally — including three deliberate mutation-test edits that stayed put
long enough to run full suites against them. So this is not a global watcher
on the path.
- No mechanism has been identified. Candidates not yet ruled out: an editor or
IDE with the file open restoring from its own buffer, a sibling agent process
in another worktree, or something in the subagent's own tooling.
Why it is worth a name
scripts/merge-pr.sh is the merge boundary. An unidentified process that
can rewrite it — even one that only restores it — is a thing that should not be
left unnamed. The benign explanations are all plausible; the point is that none
of them has been confirmed.
Not urgent
Did not block #628, and does not block #521. This is a placeholder so the
observation does not evaporate. Reproduce first; do not fix anything until the
mechanism is identified.
Unidentified mechanism reverted edits to
scripts/merge-pr.shinside a subagentObserved twice during PR #628. A review-leg subagent reported that its edits to
scripts/merge-pr.shin the live worktree were auto-restored within seconds,without the agent reverting them.
What is known
normally — including three deliberate mutation-test edits that stayed put
long enough to run full suites against them. So this is not a global watcher
on the path.
IDE with the file open restoring from its own buffer, a sibling agent process
in another worktree, or something in the subagent's own tooling.
Why it is worth a name
scripts/merge-pr.shis the merge boundary. An unidentified process thatcan rewrite it — even one that only restores it — is a thing that should not be
left unnamed. The benign explanations are all plausible; the point is that none
of them has been confirmed.
Not urgent
Did not block #628, and does not block #521. This is a placeholder so the
observation does not evaporate. Reproduce first; do not fix anything until the
mechanism is identified.