geo({...}) from @bijectionhq/library-geo returns a subtree. Place it in the app
tree and its tables and functions take their paths there:
fleet.positions, fleet.subjects,
fleet.fences, fleet.memberships and fleet.transitions. Its exposed
functions:
Paged functions take
{ size, cursor } and answer { facts, next }, so
usePages holds them. An observation is
{ subject, id, at, position: { point, accuracy_m } }. Admission deduplicates
by id: the same content again is a duplicate, and other content under the
same id refuses ObservationConflict. publish refuses FenceGapUnsafe
when the series’ timing cannot decide the fence within its maxGap.
fleet.admitBatch(ctx, observations) admits from your own mutation, under
exactly the positions’ label (an HTTP ingest, a connector).
onTransition: mutation runs your mutation once per final transition, as a
task whose once is the transition. See the
Geo library
for the fence fold and its finality rules.