A merge writes its intent (pull_landing: the commit, who lands it, on what) before it moves the base ref. At boot (core/reconcile.ts) and every 30 s (main.ts, lease tick; intents under a minute old are left to their own merge) settleLandings closes as merged any open pull whose landing commit is already in its base, with a pull.merged event; an intent whose ref never moved is dropped.
Lock files a kill left under refs/ (and HEAD.lock, packed-refs.lock) older than 5 s are removed at boot and when a merge meets one (git/locks.ts). A lock still held answers ref_locked, not base_moved.
A run records its holder (host:pid:start) at each heartbeat. At boot a running run whose holder was a process of this host that is gone has its lease lapsed, so the existing sweeps settle it at once instead of after 90 s.
Not done: the slow tick does not walk every repository for locks; saying why an app did not answer within 90 s of a restart.