Gauge
One edge's replicated virtual-time gauge: an asserted lower bound on its gross position, paired with the base issuance the writer had actually observed when it asserted it.
A gauge is a claim of the form "when this edge's base issuance stood at folded, its gross position was at least P". The position is the ticks (ticksHigh, ticksLow): a 128-bit count of ticks of the edge's own service, TICKS_PER_UNIT to a unit (#3353). The pairing with the fold is the whole point. The read reconstructs the current position by advancing the asserted one over whatever issuance has arrived since the fold:
gross(e) = ticks(e) + (baseIssued(e) − folded) · G (no gauge ⇒ baseIssued(e) · G)
raw(e) = gross(e) − returned(e) · G
ev(e) = raw(e) / (G · w)Why the pair, and not just the position (issue #1752, F1)
The refuted §5.2 register stored a seat addend alone and recombined it with a counter the writer had never seen, which implicitly asserted "committed service = 0" at every write. A peer missing only the newborn's own issued slots — ordinary per-author delta loss, or a one-way partition, both legal under an order-free join — therefore re-seated an already-served edge to the moved front and the read double-counted the service in between. Storing the observed issuance alongside the position makes that assertion explicit and complete at write time, so a stale write is self-limiting: it says what it saw, and the join below can only correct it downward.
The join, and why componentwise
join is the componentwise max — max on the ticks and on the fold, independently. That is a product of two total orders, so idempotence, commutativity and associativity are free, and it has the load-bearing property that a stale position gets paired with a better-informed fold and is thereby deflated: in units, (70¼, 0) ⊔ (70, 20) is (70¼, 20), which reads 70¼ at issuance 20 rather than the 90¼ the stale pair alone would claim.
The ticks are joined as one 128-bit number, the low word unsigned, and the wider value is kept whole. A max on each word would assemble a position neither writer asserted: 2⁶⁴ + 5 against 7 would come out as 2⁶⁴ + 7.
Do not "simplify" this to a lexicographic join. Keeping the higher-position pair whole ((70¼, 0)) preserves the stale fold and reintroduces the exact double count the design was built to remove. GaugeTest.componentwiseJoinLawsHoldAndLexicographicWouldNot pins both halves, and GaugeTicksTest pins the word-wise half.
Absolute and uncapped (#3353)
The ticks are never rewritten in place and never capped in storage. A seat and a checkpoint store the exact value, past the position ceiling, and past Long if the edge's history goes there. Every read is wide up to the effective position a pick orders, and only that is narrowed (rawTicksAt, HeddlePolicy.effectiveTicks).
Neither engine raises a fold, and nothing rebases a parent (#3472), so every gauge's ticks are absolute, and every gauge asserts a position of at least its fold's issuance in ticks. A fold never stands above any writer's observed issuance, and so never above the edge's.
The read is deliberately not monotone in the view
A growing fold lowers the reconstructed value, and that deflation is the mechanism — it is how a better-informed write corrects a stale one. So the property that holds is not monotonicity of the read but a sandwich over every reachable view: no view can read an edge behind the service that view itself contains (the §10.5 no-lifetime-credit direction), and no view can inflate it beyond the largest stale write's excess. Do not "fix" the non-monotonicity. The one place the lower half gives is the position ceiling (#3313): an effective position past it is narrowed to the ceiling, behind what it stands for, and every pick that would order it is refused, so the shortfall is never spent.
Wire form
folded is an issuance count and the ticks a position, so both are non-negative; the init check below is the read-path guard for them — GaugeSerializer calls this primary constructor, so an off-wire value cannot bypass it (the same shape as MintRecord). Each tick word is elided at zero, so a position below 2⁶³ carries only ticksLow.
A gauge carrying a non-zero floor is refused, under every decoder configuration, ignoreUnknownKeys included. v0.7.4 kept the position there, as a fraction of virtual time; this release reads only the ticks, and a gauge read as if its floor were absent would read lower than it was written. GaugeSerializer says why that takes a serializer of its own.