## Lesson — Synchronize manifest metadata during cache pruning

**Tags:** cli, metadata, provenance
**Scope:** packages/cli/src/commands/**/*.ts, !**/*.test.*

When rewriting a data file due to a cache drain, the corresponding manifest must be updated with new hashes and counts to maintain state consistency.
