Artifact 8a0c2070b699b123d09d62085c1510f0ad48ee3a212e1eb2e24fabc5f805051e:
- File
internal/sync/session.go
-
2026-10-22 15:05:34
— part of check-in
[b61bd3475c]
on branch feat/horizon-cones
— feat(sync): horizon cursor, origin and client
A horizon pull announced the client's whole holding with igot on every request, and the origin answered with its whole kept inventory: one card per artifact, both ways, on every pull. draft-fossil-horizon-00 §6.2.6 replaces both with a position.
The origin values pragma horizon-cursor right after horizon-served in every reply to a horizon pull, as zit places it. Its position is rid order (the clone SEQNO sense), stopped short of the lowest phantom: a filled phantom keeps its old rid, so a cursor covering it would hide the arrival. Receiving a cursor, any reply that pulls announces nothing at or below it. A filled phantom that a check-in from an earlier receipt already named as parent is recorded as the reclassification position; a cursor below it is answered as if absent. A cursor beyond the origin's own position is ignored.
The client keeps, per origin and cone, the last reply's cursor and the rid count the origin holds through, sends the cursor on every request, announces nothing on a pull-only request and only what it appended on one that sends. Sessions name their origin with SyncOpts.Origin; without it nothing is kept and every request announces in full. (user: [email protected], size: 18082) [annotate] [blame] [check-ins using]
-
2026-10-22 15:06:07
— part of check-in
[f704c6d58b]
on branch feat/horizon-cones
— Merge branch 'wip/horizon-cursor' into feat/horizon-cones
The horizon cursor (draft-fossil-horizon-00 §6.2.6): an origin that classified a request answers pragma horizon-cursor with its position, a converged client records it per origin and cone and sends it back, and neither side announces again what the other already has. Interoperates with zit both ways. (user: [email protected], size: 18082) [annotate] [blame] [check-ins using]
-
2026-10-22 15:05:34
— part of check-in
[b61bd3475c]
on branch feat/horizon-cones
— feat(sync): horizon cursor, origin and client