Add the Jev assessor as a thread in the sync process #36
No reviewers
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/mail-mind-mcp!36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/assess"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #19. Stacked on #35 (ADR 0003): merge #35 first.
What it does
[assess]section. When it is absent, nothing leaves the host, and the startup andmailmind checksay so.[assess]is set,SyncWorkerstarts one more thread,assess, in thesyncprocess. The sync worker stays the one writer of the mirror tables.backlog_days,batchper call, toPOST https://api.typesafe.ai/v1/systemone. It uses stdliburllib, as in the estate's Python precedent.message_stateis the one place that builds it. A test pins the keys for each mode.headers: from, name, subject, date,List-Id, system flags (\Seen,\Answered,\Flagged), and attachment names and types.fulladdsexcerpt: the first 500 characters of the quote-trimmed body.retry-after(capped at 30 s).auth_error. Everything else maps tounavailable.mail_statusshows it.mail_statusprintsassess: fields=… model=…orassess: off, andassessed=Nper account.mailmind sync --oncealso runs one assess tick.Config defaults
fieldsheadersmodeljev-1.13.0(pinned)batchbacklog_dayspoll_secondstimeout_secondsDeploy
No change to the init script. A Secret key named
jev.keylands in thesyncruntime directory only, because only.tokenkeys go toapi. The base and compose comments say so.Tests
tests/test_assess.pyhas 13 tests:fullmodemake checkpasses (99 tests). The image's SQLite is 3.40.1, so theUPDATE … ASalias incopy_assessmentsis supported.🤖 Generated with Claude Code