source-ledger.json/claim-ledger.json hard 16 MB read cap — how is this meant to scale for a continuously-growing corpus?

Author: andreadattola21-cloudCreated Sep 23, 2026Updated Sep 23, 2026
  1. Issue. Every read of wiki/meta/ledgers/source-ledger.json / claim-ledger.json goes through read_vault_regular(..., limit=16 * 1024 * 1024) (ledgers.py:87, same constant reused in transaction.py for transaction bundles). Above 16 MB it doesn't degrade gracefully — it raises VAULT_FILE_TOO_LARGE and blocks lint, capture apply, transaction apply, and wiki-ingest on that file. There's no config to raise it, and no prune/compact subcommand in the CLI (doctor, transaction, hook, lint, contracts, package, release, capture, mode, extension, migrate, init, adopt, checkpoint).

  2. Is there a known fix? We haven't found a documented way to recover a ledger once it's already past the cap — no migration or compaction path in the docs. Is there one we're missing?

  3. Scalability. We run this as an append-only "LLM wiki", and we're already over the cap: source-ledger.json is at ~17 MB, and the vault as a whole is ~16 GB. Is a vault of that size within the tool's expected operating envelope, or is that already outside the intended scale? As document volume keeps growing over months/years, is a single monolithic JSON file expected to remain the storage model for the ledgers long-term, or is sharding/pagination on the roadmap?

  4. Fit for our case. For code repositories specifically, we don't ingest per file: a deterministic capture step produces one document per repository (commit anchor, file census, short citable excerpts — no method bodies, not the source code itself), and only that single document becomes one ledger entry. Given the ledgers are meant to stay as single small files, is that the granularity you'd recommend, and is there a general policy for source types that can be arbitrarily numerous, so we don't design ourselves into this cap again?

  5. Context, high level. Internal knowledge base built from Confluence + Jira + code repositories into an Obsidian vault, following the source-ledger/claim-ledger provenance model. Vault size ~16 GB, most of it .raw/ (deterministic raw captures: documents, tickets, attachments, kept permanently by design); wiki/ (generated pages) is a small fraction of that. source-ledger.json is already at ~17 MB, over the read cap. Expected to keep growing as more sources get ingested over time.

Thanks in advance for taking the time to answer, let us know if this approach can still make sense for our case, or if we should be looking at something else.

Source: AgriciDaniel/claude-obsidian