Skip to content

Review legs mutate the same working tree concurrently — mutation evidence is untrustworthy in both directions #634

Description

@BaseInfinity

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions