Skip to content
go-libfossil Check-in [ec8b4c770b]
Login

Check-in [ec8b4c770b]

Overview
Comment:Merge branch 'feat/horizon-cones' into wip/horizon-cursor
Timelines: family | ancestors | descendants | both | trunk | feat/horizon-cones
Files: files | file ages | folders
SHA3-256: ec8b4c770bab6986eaa794e548b92a3684db62aa61b428097e314ca201980702
User & Date: [email protected] on 2026-10-22 15:06:06.000
Other Links: branch diff | manifest | tags
Context
2026-10-22
15:06
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. check-in: f704c6d58b user: [email protected] tags: feat/horizon-cones, trunk

15:06
Merge branch 'feat/horizon-cones' into wip/horizon-cursor check-in: ec8b4c770b user: [email protected] tags: feat/horizon-cones, trunk
15:05
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. check-in: b61bd3475c user: [email protected] tags: feat/horizon-cones, trunk

14:48
docs(changelog): the public horizon API check-in: 76d780fde1 user: [email protected] tags: feat/horizon-cones, trunk
Changes
Added horizon_test.go version [7e39c6f8aa].