fix(onset): the git view always catches up, without waiting for a land
Radin committed
- Author
- Radin · radin@coline.appNov 6, 2026 at 18:39
- Committer
- Radin · radin@coline.appNov 6, 2026 at 18:40
- Parents
- 7c7bcfc4fb5e
fix(onset): the git view always catches up, without waiting for a land Seen in production (radin/onset-bench-02 after 2,048 agents; 17 of 20 projects in a 20-project run): the git view stopped thousands of versions behind with no copy making progress, until a land came more than five minutes later. Logs from the live repro: the stuck copies sent nothing to git.coline.app for 5 minutes; pushes that did go took 14-38 s because git.coline.app's sign-in call to Coline was timing out; and nothing in the git view had a time limit, while the isolate-wide pack lock was held for the whole network wait (and by a clone's stream to a slow client). - Every call to git.coline.app has an idle and a total time limit (2 min / 15 min); a push that fails or times out fails the pack's writer too, so nothing waits on a stream nobody reads. - A push's pack (up to 32 MB) is made in memory and sent after the core is let go; the lock is held only while the core packs. Waiters poll on their own clock (no promise chain between objects), log waits over 10 s, and take the pack from a holder that got nowhere for 10 minutes. A pack's reader that takes nothing for 2 min is given up on. - The running copy's beat moves as it packs and sends; a quiet copy is replaced after 3 min (was 5), and a replaced copy stops. - While the view is behind, the project's alarm looks every minute (less often while that doesn't help) and starts a copy again when none got anywhere or the last one gave up, with the lander's token kept sealed until the view has caught up. - Push logs carry lock wait, pack and send times. Tests: git.sh hangs and refuses pushes on the stand-in git server and checks the view catches up with no further land (192 passed); bench/git.test.mjs checks the time limits and the lock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed+51−2