Skip to content
quarry View Ticket
Login

View Ticket

2026-09-24
00:53 • Ticket [5d40f1515d] Detect and surface divergence between a mirror and its upstream status still Closed with 1 other change artifact: 1a5b40ab45 user: zeitgeist
2026-09-23
11:55 • Closed ticket [5d40f1515d]. artifact: d76f1615e2 user: zeitgeist
2026-08-21
18:09 • New ticket [5d40f1515d]. artifact: 4c11f7555c user: ai-local

Detect and surface divergence between a mirror and its upstream

Closed5d40f1515d31e37da72df3c861623b3c89bbee07Created 101.2 days agoUpdated 68.0 days ago
Description2026-08-21 18:09:51
After each pull, check whether the store has open leaves the upstream lacks (local check-ins on a tracking store). Record `diverged` with the count on the mirror row; show it in the `/fleet` table and in the repo header ("this mirror has 3 local check-ins upstream lacks").

This is the signal that someone pushed before writes were refused, or that the fork decision has already been made de facto and the mirror should be detached.

2026-09-23 11:55:23

Measured on 0.1.0-beta+6db5c9d71693 (landings 3f0776bc store/API/UI half, f9f87716 gate half). zit has no probe for "leaves the upstream lacks", so the signal is quarry's own: a push admitted onto a tracking store. Negative: a push onto sqlar was refused ("this store mirrors https://sqlite.org/sqlar and does not accept local writes") and sqlar's divergedAt stayed empty. Positive: a throwaway store probe-5d40f151 mirroring sqlite.org/sqlar with writes accepted took one pushed branch at 11:53:20Z; GET /api/v1/mirrors and /api/v1/r/{repo}/info then carried divergedAt=2026-09-23T11:53:20Z, /fleet?tab=mirrors showed the chip data-hook="mirror-diverged" data-at=… "probe-5d40f151, pushed onto locally just now", and the repository header read "mirror of sqlite.org · accepts writes · holds pushes the upstream lacks" (data-hook="posture-diverged"). Detach cleared it; the probe store was then deleted. Shape: a time, not a count — the gate sees HTTP rounds, not pushes, and rarely a hash; divergedLast is filled only when a hash is known.