Skip to content

v0.3.1 β€” vault bloat fix & self-healing memory 🧹

Choose a tag to compare

@smixs smixs released this 25 Jul 08:55
· 1142 commits to main since this release

Fix: vault memory files no longer grow to gigabytes β€” and existing installs self-heal.

  • πŸ› Root cause fixed β€” the frontmatter writer in the vendored autograph scripts kept the old folded description line whenever it contained a :, doubling the value on every nightly rewrite (2^N growth: a card crossed 100 MB in two weeks and could reach gigabytes). Bloated cards OOM-killed both Iva and the nightly memory doctor. The writer now replaces folded values by indentation, enforce collapses any repeated description, and a hard cap keeps descriptions one-line forever.
  • 🧹 New cleanup module in autograph β€” a surgical, bounded-memory cleaner: it streams even gigabyte .md files (peak RAM ~25 MB), collapses the duplicated garbage in the description block, copies the card body byte-for-byte and touches nothing else. Dry-run by default, --apply to fix; runs automatically as the first step of the nightly doctor and during iva update, so bloated vaults shrink back without manual steps.
  • πŸ”„ Vendored skill scripts now follow the template β€” iva update, the nightly doctor and init-vault now sync the skill code (never schema.json, cards or any user data) from the template into the live vault, so every existing install picks up this fix β€” and future ones β€” automatically.

Just run iva update (or accept the update prompt in Telegram) β€” the bloated files are repaired during the update itself.