# fix: preserve history, quota cache and notification baselines \(\#582\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/2d141a98a5f07ba6dc1774595e6946c3faf0d66e)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 2d141a98a5f07ba6dc1774595e6946c3faf0d66e

Requested commit: 2d141a98a5f07ba6dc1774595e6946c3faf0d66e

Commit: 2d141a98a5f07ba6dc1774595e6946c3faf0d66e

Tree: 93dd16d0570c0806bb8fd05db17b84aa7f052638

Author: Simone

Committer: GitHub

## Message

```
fix: preserve history, quota cache and notification baselines (#582)

* fix(costs): preserve sparse all-history aggregates

Separate the input-record budget from the calendar span so old model rows and daily averages remain correct. Count eligible empty dates without allocating a calendar-sized array. Update usage and cost-history guides and Unreleased notes; no TODO parity item is completed.

* fix(costs): retain gap filling for measured dates

An amountless row for a date already covered by measured amounts must not disable empty-day inference. Match the existing daily gap filler with separate blocked and measured date sets. Document the rule and cover both input orders.

* fix(usage): preserve cache and notification baselines

Wait for an authoritative quota before priming initial quota and pace notification state. Preserve the fitting cache prefix when valid providers exceed the byte budget. Add adversarial transition and publication regressions and update usage/development guides and Unreleased notes; no TODO parity entry is completed.
```

## Parents

- [2a88027f4d1df2ea83e8422a0c064b472519ac65](https://git.cafe/lucenx/codexbar-plasma/commit/2a88027f4d1df2ea83e8422a0c064b472519ac65?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/2d141a98a5f07ba6dc1774595e6946c3faf0d66e?format=markdown)
