mailmind Source: a failure late in the evidence phase repeats every mail_evidence call on the next pass #48
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/people-mind-mcp#48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
A mailmind pass keeps the results of the
mail_evidencephase only in memory. When the pass fails during that phase, the next pass repeats every evidence call from the start. Since #45 (PR #46), a Mail Mind restart fails the pass afterrequest_timeout_secondsinstead of hanging. A failure late in a large pass is now recoverable, but it is expensive.At the rc.6 checkpoint (5,505 pending addresses), one repeat costs about 23 minutes of evidence calls at the default 4 req/s. A Mail Mind restart during every pass would stop the evidence phase from ever finishing.
This was fix step 3 in #45. The triage brief and the approved spec left it out of scope as open risk R1.
Triage Notes
What we've established so far:
MailmindSource._fetchcheckpoints themail_changesphase per page:cursorplus thependingmap of addresses and interaction refs. The evidence phase writes nothing tostateuntil the pass succeeds.run_passsaves state only on a fetch failure or at pass end. Ingest is all-or-nothing: "Only fetch failures can checkpoint; ingest rollback must keep replayable state" (sync.py,run_pass).sent,signatures) to build itsSourceRecordat pass end.What we still need from you:
pending. This changes the all-or-nothing ingest contract ofrun_pass, so it needs an ADR 0004 amendment.pending?Related
Filed under: operator word "ok" sha256:2689367b205c
Duplicate of #47, which was filed at the same time and already covers this work under an approved decision (ADR 0009). It specifies bounded, durable evidence progress with reference-only checkpoints (ADR 0003) and serialized Forget. Closing in favour of #47.