Get started

npm run witness:rebuild-periods

Source

Replay every observation into price periods.

bash
npm run witness:rebuild-periods
npm run witness:rebuild-periods -- --yes

Reports only, unless given --yes.

Why replaying is possible at all

Observations are append-only, so periods are derived rather than primary. A parser fix or a change to the confirmation rule can be applied to history rather than only to what arrives next.

That is the practical payoff of the append-only rule: the readings are the record, and the periods are a view of them that can be rebuilt.

The reporting default

The default prints what would change and writes nothing. A rebuild rewrites the history the boards draw and the rates are computed from, so the diff is read before it is applied rather than after.