Skip to content

feat: --corpus downloads the smaller, faster messages pack - #108

Merged
andris9 merged 1 commit into
masterfrom
feat/corpus-pack
Nov 30, 2026
Merged

andris9 merged 1 commit into
masterfrom
feat/corpus-pack

Conversation

@andris9

@andris9 andris9 commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator
  • Corpus v1.0.2 now has a messages pack asset (synthetic-email-corpus-v1.0.2.messages.zst, 347 MB, one zstd stream of messages, mutations and manifests, built by the corpus builder). --corpus downloads and reads it when the runtime has zstd (Node.js 22.15+, Bun, Deno), the .tar.gz otherwise.
  • Full corpus load: 1.0s from the pack vs 2.0s from the archive; the storage is identical (checked on the real release, including mutations and internal dates).
  • A cached archive keeps working (with a tip), imapkit corpus pull fetches the pack, imapkit corpus list shows the format.
  • Both archive readers now reject a missing file instead of crashing, the pack reader checks its index offsets.

🤖 Generated with Claude Code

Corpus releases now carry a messages pack next to the full archive:
synthetic-email-corpus-<version>.messages.zst, the messages, mutations and
their manifests in one zstd stream (347 MB instead of 422 MB). --corpus
downloads it when the runtime has zstd (Node.js 22.15 and newer, Bun, Deno)
and reads it in about 1 second instead of 2 for the full corpus, with the
same mailboxes, UIDs and dates as the archive. Older Node.js versions keep
using the archive, and an archive that is already cached is used as it is;
imapkit corpus pull fetches the pack then. imapkit corpus list shows the
format of each cached file.

The archive and pack readers now reject a missing file instead of failing
with an unhandled stream error, and the pack reader checks that the files
are where its index says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andris9
andris9 merged commit a86c48f into master Nov 30, 2026
14 of 15 checks passed
@andris9
andris9 deleted the feat/corpus-pack branch November 30, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant