> Source: https://vitna.ai/docs/cli/witness/rebuild-periods > Raw Markdown: https://vitna.ai/docs/cli/witness/rebuild-periods.md > Corpus index: https://vitna.ai/llms.txt # npm run witness:rebuild-periods Replay every [observation](../../concepts/observation.md) into [price periods](../../concepts/price-period.md). ```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.