Repository navigation
0.9.53 — mesh-sync fetches again after a lost push race
·
105 commits
to 106fc1be232c87f10544a4c3d7b7871bb5921df3
since this release
mesh-syncfetches again when another node's push lands first. Every node pushes to one
mirror about once a minute, and a push that lands between this node's fetch and its push wins:
git refuses ours ("fetch first"), or the mirror cannot lock the branch it is moving. One node
lost one run in six that way, about 90 a day, each a minute of delay and a failed unit in
systemd's log. That failure, and only that one, now goes back to the fetch in the same run, up
toHUBD_SYNC_PUSH_TRIEStimes in all (default 3). Any other failed push is left to the next
run, as before.- A node's presence snapshot says when hubd last ran there.
presence.<node>.jsonwas
written on heartbeat only, so a node whose sessions never heartbeat (people at a terminal, not
agents in a loop) kept the one it wrote weeks before: from every other node it looked silent
for 24 days while it wrote to the mesh every minute. Any MCP tool call now refreshes it too, at
most every 5 minutes. A hub that has never published one gets none. hub doctorwaits for the hub's git. Its checks read git with an 8 s bound and took a read
that ran out as an empty answer: with every core busy,git ls-filesonce took longer, and a
case-colliding pair came back as no pair. Reads of the hub's own repository now get a minute;
reads of project repositories keep 8 s.