• v0.8.0 170127cb92

    0.8.0 Stable

    svc-agent-writer released this 2026-11-01 12:29:10 +00:00 | 106 commits to main since this release

    No known key found for this signature in database

    Attachment text in semantic and hybrid search, attachment flags for search and wakes, and a copy collapse that no longer makes large searches slow (#79, #87, #96).

    Image: git.groupthink.asia/dev/imap-mailmind-mcp:0.8.0@sha256:ccb81a053f97e0abd7cf5265500e388a79e5b0f4203c543e71864730ef25a982 (linux/amd64, config sha256:53eb630fa04d…).

    Added

    • Attachment text in semantic search (#79, #99). Needs both [embed] and [attachments]. Nothing leaves the host.
      • The embedder cuts each attachment's text into chunks of 512 tokens with the pinned tokenizer, from the start, at most [attachments] embed_chunks (default 4, at most 16). Each chunk carries the file name. New messages are embedded before attachment chunks.
      • Semantic and hybrid modes score a message by its best vector: the message vector or any chunk vector. When a chunk wins, the snippet line starts with [attachment N].
      • similar_to compares against every vector.
      • mail_status shows attachment_chunks=N.
    • Attachment flags (#87, #100). Local rules over stored attachment text mark a message invoice, deadline, contract or form. The flags are advisory.
      • mail_search takes an attachment_flag filter.
      • [wake] attachment_boost (0..1, default 0) adds to the wake score of a message flagged invoice or deadline. The per-thread and daily caps still apply.
      • mailmind replay adds per-flag columns and boosted, the wakes that reach the threshold only through the boost. --attachment-boost tries another value.
      • The Jev payload does not change. No attachment text goes to Jev.
    • Triage confidence. mail_read shows triage: <class> (<confidence>) wake=<score> when Jev supplied a confidence.

    Changed

    • Re-extraction. The backlog records a content hash and an extractor string (parser version and max_chars) for each attachment. It reuses a matching hash. A change of the extractor string extracts the attachment again. Rows extracted before 0.8.0 have no extractor string and stay as they are.
    • Search cost (#96, #103). The copy collapse now uses a stored key and an index. In the image, on 210,000 synthetic rows, an unfiltered search fell from about 1.4 s in 0.7.0 to about 0.5 s. Against 0.6.0, with no collapse, the ratios of medians are 1.00 unfiltered, 0.69 with account, and 1.36 with sender. Output does not change.

    Known issues

    • Semantic search, hybrid search and similar_to with an account filter can take seconds on a large mirror: about 17 s on 210,000 synthetic vectors. #102 tracks it.

    Upgrade

    • The sync worker moves the store from schema v7 to v10 on its first start. The api container waits for v10, as before.
      • The first start builds the copy-key index once: seconds per hundred thousand messages.
      • With [embed] and [attachments] both set, the embedder then works through a backlog of attachment chunks on one core. Watch the sync container's memory against its limit while it runs.
    • Config: two new optional keys, [attachments] embed_chunks and [wake] attachment_boost. No key is required.
    • Rollback: no process lowers the stored version. The 0.7.0 image opens a v10 store as writer and as reader, so a rollback needs nothing.
    Downloads