Document the quiet-gap keys in the README and test the JMAP gap hook #123
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/mail-mind-mcp#123
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?
Follow-up to #118 (PR #122). The quiet-gap change hit the 16-file dispatch ceiling, and two small items were left out by decision at the architect gate on 2026-11-02.
Change
README.md: add the two[sync]keys to the key table, with the same wording asconfig.example.tomllines 33 and 34:checkpoint_gap_seconds(seconds with no writes for Litestream; 0 disables, otherwise 2 to 60) andcheckpoint_gap_every(backfill batches between quiet gaps, across all accounts).tests/test_jmap.py: one test that drives the JMAP backfill hook injmap.pywith the gap enabled and assertsStore.quietis called aftercheckpoint_gap_everybatches, and one with the gap disabled asserting it is not. Mirror the IMAP case intests/test_ingest.pyadded by PR #122.Acceptance
python3 -m pytest tests/test_jmap.py.make checkpasses.Blocked by
None.
Filed under: operator word "Svd:go" sha256:6f587467a1c5
⏸ SVD architect gate: dev/mail-mind-mcp#123 document-the-quiet-gap-keys-in-the-readme-and-test-the-jmap
Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
additive· dispatch effortlowRun:
20261102T063839Z-c4d2393fHeld because: CLEAN but 2 open risk(s) (1 verification · 1 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
uv run python3 -m pytest -q tests/test_jmap.pyandmake checkon the branch. The failure set must match the pristine base, with two more passing tests in tests/test_jmap.py. [verification]Change: README.md:192: append
checkpoint_gap_seconds(seconds with no writes for Litestream; 0 disables, otherwise 2 to 60) andcheckpoint_gap_every(backfill batches between quiet gaps, across all accounts) to the [sync] keys cell, worded verbatim from config.example.toml:33-34. tests/test_jmap.py: add two tests in the # Backfill section, after test_an_interrupted_backfill_resumes_without_duplicates. Mirror tests/test_ingest.py:123-153: a RecordingStop(threading.Event) whose wait records (timeout, store._conn.in_transaction, len(store.source_flags("fm"))) and returns False; inject it via QuietGap(store, seconds, every) and gap.stop. Build the source as in test_idle_off_opens_no_stream (tests/test_jmap.py:943-955): config.model_copy with sync batch_size=1, then JmapSource(config.account("fm"), store, cfg, gap=gap), closed in finally. Gap on: QuietGap(store, 2, 2) over 5 INBOX emails; assert added==5 and waits == [(2.0, False, 2), (2.0, False, 4)]. Gap off: QuietGap(store, 0, 2); assert no waits (optionally monkeypatch store.quiet to fail if called). This exercises the hook at src/mail_mind_mcp/jmap.py:623-624. No src/ changes.Files:
README.md·tests/test_jmap.pyDecision: accept the 2 open risk(s) above and dispatch this spec (
svd:go), or park (svd:skip) / re-spec (svd:respec)?Your call (when this issue is held at the gate via
svd:hold):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-02-document-the-quiet-gap-keys-in-the-readme-and-test-the-jmap.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-02-document-the-quiet-gap-keys-in-the-readme-and-test-the-jmap.mdspec-verify-dispatch Half B for dev/mail-mind-mcp#123 document-the-quiet-gap-keys-in-the-readme-and-test-the-jmap completed integration verify.
6db0e083c06db0e08: no remote checks or commit statuses exist. Local pytest: 815 passed, 8 skipped, 18 deselected. No blockers.codex-svd ship --run-id 20261102T065351Z-cbcd815c --confirm-merge)