Cap the WAL file beside Litestream: journal_size_limit, quiet gaps, checkpoint settings (follow-up to #91) #118

Closed
opened 2026-11-01 21:32:34 +00:00 by svc-agent-writer · 3 comments

This was generated by AI during triage.

Follow-up to #91, which names the cause with evidence. This issue holds the fix. The options are open until triage.

Problem

With Litestream 0.3.13 beside the sync worker, the WAL grows at the write rate for as long as the writer never pauses for one second, and the file never shrinks below its high-water mark until it passes 2 GB. Reproduced: 800 MB in 90 s of 100-row commits; 8.6 MB for the same writer without Litestream. Live: 0.99 GB beside a 2.08 GB database during a backfill (#91), 60 MB high-water after the 2026-11-01 restart with the embedder as the only writer.

Why (short form, details on #91)

  • Litestream holds a permanent read transaction, so only its own checkpoints can reset the WAL.
  • Its RESTART checkpoint runs every second with a fixed 1 s busy timeout and returns busy whenever a writer is active. A backfill is always active.
  • TRUNCATE fires only above 500,000 pages. An app-side wal_checkpoint(TRUNCATE) returns busy while Litestream runs (31 s in the reproduction).

Candidate fixes (decide at triage; they combine)

  1. PRAGMA journal_size_limit on the sync worker's connection, for example 64 MiB. SQLite truncates the WAL file to that limit after any checkpoint that resets it, including Litestream's RESTART. This caps the file without touching the checkpoint cadence. Cheapest, reversible, one line plus a test.
  2. Quiet gaps for the writer. After every N backfill batches, and after each embed batch, the sync worker releases the write lock for slightly more than 1 s, so a RESTART can land. Costs throughput; make N and the gap config with defaults.
  3. Litestream config: checkpoint-interval, min-checkpoint-page-count, max-checkpoint-page-count are settable per db in 0.3.13. Lower max-checkpoint-page-count makes RESTART attempts start earlier but does not fix the busy result. truncate-page-count is not exposed in 0.3.13 config. Record what is and is not tunable in the deploy comments.
  4. Shorter write transactions: the embedder's per-batch scans (separate issue) are the lock holder on the live pod today. Landing that removes most database is locked errors but does not stop a backfill from starving RESTART.
  5. Litestream upgrade. Out of scope here unless triage wants it: the 0.5 line changed the replication model and needs its own restore drill (#16).

Acceptance

  • The reproduction script from #91 (sync writer at 100-row commits beside Litestream 0.3.13 for 90 s) ends with a WAL file under the configured limit within one checkpoint interval of the writer pausing.
  • A unit test asserts the sync worker's connection pragma.
  • The deploy manifests and compose file document the settings and their reason.
  • No change to the api process. No mail-server call. Logs stay counts only.

Out of scope

  • The embedder's scans (own issue).
  • Changing the backup tool.

Filed under: operator word "implement #91" sha256:4cf5e63dc126

> *This was generated by AI during triage.* Follow-up to #91, which names the cause with evidence. This issue holds the fix. The options are open until triage. ## Problem With Litestream 0.3.13 beside the sync worker, the WAL grows at the write rate for as long as the writer never pauses for one second, and the file never shrinks below its high-water mark until it passes 2 GB. Reproduced: 800 MB in 90 s of 100-row commits; 8.6 MB for the same writer without Litestream. Live: 0.99 GB beside a 2.08 GB database during a backfill (#91), 60 MB high-water after the 2026-11-01 restart with the embedder as the only writer. ## Why (short form, details on #91) - Litestream holds a permanent read transaction, so only its own checkpoints can reset the WAL. - Its RESTART checkpoint runs every second with a fixed 1 s busy timeout and returns busy whenever a writer is active. A backfill is always active. - TRUNCATE fires only above 500,000 pages. An app-side `wal_checkpoint(TRUNCATE)` returns busy while Litestream runs (31 s in the reproduction). ## Candidate fixes (decide at triage; they combine) 1. **`PRAGMA journal_size_limit` on the sync worker's connection**, for example 64 MiB. SQLite truncates the WAL file to that limit after any checkpoint that resets it, including Litestream's RESTART. This caps the file without touching the checkpoint cadence. Cheapest, reversible, one line plus a test. 2. **Quiet gaps for the writer.** After every N backfill batches, and after each embed batch, the sync worker releases the write lock for slightly more than 1 s, so a RESTART can land. Costs throughput; make N and the gap config with defaults. 3. **Litestream config: `checkpoint-interval`, `min-checkpoint-page-count`, `max-checkpoint-page-count`** are settable per db in 0.3.13. Lower `max-checkpoint-page-count` makes RESTART attempts start earlier but does not fix the busy result. `truncate-page-count` is not exposed in 0.3.13 config. Record what is and is not tunable in the deploy comments. 4. **Shorter write transactions**: the embedder's per-batch scans (separate issue) are the lock holder on the live pod today. Landing that removes most `database is locked` errors but does not stop a backfill from starving RESTART. 5. **Litestream upgrade.** Out of scope here unless triage wants it: the 0.5 line changed the replication model and needs its own restore drill (#16). ## Acceptance - The reproduction script from #91 (sync writer at 100-row commits beside Litestream 0.3.13 for 90 s) ends with a WAL file under the configured limit within one checkpoint interval of the writer pausing. - A unit test asserts the sync worker's connection pragma. - The deploy manifests and compose file document the settings and their reason. - No change to the api process. No mail-server call. Logs stay counts only. ## Out of scope - The embedder's scans (own issue). - Changing the backup tool. Filed under: operator word "implement #91" sha256:4cf5e63dc126
Author
Member

This was generated by AI during triage.

Decided at triage 2026-11-02. Tested first: PRAGMA journal_size_limit on the sync connection does not shrink the WAL beside Litestream 0.3.13. In the reproduction a RESTART landed, the writer committed 20 more times, and the file stayed at 261 MB. Litestream's bookkeeping insert right after its checkpoint is the first write that restarts the log, from a connection with no limit. Option 1 of the body is withdrawn. The routing rule 3 proposal was overruled by the operator: the change is a sync-worker pragma call and one config knob, and the ruling is this label.

Agent Brief

Category: bug
Summary: Bound the WAL beside Litestream: truncate at sync-worker start, and give Litestream a quiet gap on request

Current behavior:
Litestream holds a permanent read transaction, so only its own checkpoints reset the WAL. Its RESTART checkpoint runs every second with a fixed 1 s busy timeout and returns busy while a writer is active. A backfill commits every 100 to 200 ms, so the WAL grows at the write rate until the writer pauses (800 MB in 90 s in the reproduction; 0.99 GB live). After a RESTART the file is reused but never shrunk; Litestream truncates only above 500,000 pages. An app wal_checkpoint(TRUNCATE) returns busy while Litestream runs (31 s in the reproduction) and completes in 9 ms when it does not.

Desired behavior:

  • When the store opens in writer mode, it runs PRAGMA wal_checkpoint(TRUNCATE) once with a short busy timeout of its own (about 2 s), logs the three result numbers and whether it was busy, and continues either way. At pod start the sync worker holds the database before Litestream takes its read lock (the live log shows Litestream waiting 65 s), so this shrinks a WAL left over from the previous run.
  • A new sync setting, quiet gap, default off: [sync] checkpoint_gap_seconds (0 disables; 2 to 60) and checkpoint_gap_every (batches, 1 to 1000, default 20). When on, after every checkpoint_gap_every backfill batches, and after every embed batch and attachment-embed batch, the worker holds no transaction and issues no write for checkpoint_gap_seconds. The gap must exceed Litestream's monitor interval plus its busy timeout, so the minimum is 2.
  • mail_status shows the WAL file size in bytes beside the database size, so the cap is observable without exec. The health endpoint is unchanged.
  • The compose file and the kustomize base document, in comments beside the Litestream config: journal_size_limit does not apply beside Litestream 0.3.13; truncate-page-count is not configurable in 0.3.13; max-checkpoint-page-count does not cure the busy result; the quiet gap is the lever.

Key interfaces:

  • Store.__init__ writer path: the startup checkpoint, after the schema migration and before the first write.
  • SyncConfig: the two new fields with bounds and defaults; mailmind check prints them.
  • SyncWorker backfill loop and EmbedWorker batch loop: the gap hook, one shared helper so both sleep the same way and honour the stop event.
  • Store.status and the mail_status renderer: WAL size field. The status counts issue (#110) is separate; the new field is one os.stat.

Acceptance criteria:

  • A test opens a store in writer mode over a WAL left at several MB with no other connection and asserts the file is 0 bytes afterwards and the log carries the result counts.
  • A test opens the same store while another connection holds a read transaction and asserts the open succeeds within 3 s, the WAL is unchanged, and the log says busy.
  • With checkpoint_gap_seconds=2, a test that drives 60 backfill batches through the worker observes a pause of at least 2 s with no open transaction after each 20.
  • The reproduction from #91 (100-row commits beside Litestream 0.3.13 for 90 s) with checkpoint_gap_seconds=2, checkpoint_gap_every=20 ends with a WAL high-water under one fifth of the no-gap run on the same machine, recorded in the PR.
  • mail_status output includes the WAL size; the evidence tool and health endpoint are unchanged.
  • make check passes.

Out of scope:

  • Upgrading Litestream (the 0.5 line changes the replication model; it needs the #16 restore drill again).
  • The embedder's per-batch scans (#119), which are the live lock holder today.
  • Any change to the api process or to journal_mode.
> *This was generated by AI during triage.* Decided at triage 2026-11-02. Tested first: `PRAGMA journal_size_limit` on the sync connection does **not** shrink the WAL beside Litestream 0.3.13. In the reproduction a RESTART landed, the writer committed 20 more times, and the file stayed at 261 MB. Litestream's bookkeeping insert right after its checkpoint is the first write that restarts the log, from a connection with no limit. Option 1 of the body is withdrawn. The routing rule 3 proposal was overruled by the operator: the change is a sync-worker pragma call and one config knob, and the ruling is this label. ## Agent Brief **Category:** bug **Summary:** Bound the WAL beside Litestream: truncate at sync-worker start, and give Litestream a quiet gap on request **Current behavior:** Litestream holds a permanent read transaction, so only its own checkpoints reset the WAL. Its RESTART checkpoint runs every second with a fixed 1 s busy timeout and returns busy while a writer is active. A backfill commits every 100 to 200 ms, so the WAL grows at the write rate until the writer pauses (800 MB in 90 s in the reproduction; 0.99 GB live). After a RESTART the file is reused but never shrunk; Litestream truncates only above 500,000 pages. An app `wal_checkpoint(TRUNCATE)` returns busy while Litestream runs (31 s in the reproduction) and completes in 9 ms when it does not. **Desired behavior:** - When the store opens in writer mode, it runs `PRAGMA wal_checkpoint(TRUNCATE)` once with a short busy timeout of its own (about 2 s), logs the three result numbers and whether it was busy, and continues either way. At pod start the sync worker holds the database before Litestream takes its read lock (the live log shows Litestream waiting 65 s), so this shrinks a WAL left over from the previous run. - A new sync setting, quiet gap, default off: `[sync] checkpoint_gap_seconds` (0 disables; 2 to 60) and `checkpoint_gap_every` (batches, 1 to 1000, default 20). When on, after every `checkpoint_gap_every` backfill batches, and after every embed batch and attachment-embed batch, the worker holds no transaction and issues no write for `checkpoint_gap_seconds`. The gap must exceed Litestream's monitor interval plus its busy timeout, so the minimum is 2. - `mail_status` shows the WAL file size in bytes beside the database size, so the cap is observable without exec. The health endpoint is unchanged. - The compose file and the kustomize base document, in comments beside the Litestream config: `journal_size_limit` does not apply beside Litestream 0.3.13; `truncate-page-count` is not configurable in 0.3.13; `max-checkpoint-page-count` does not cure the busy result; the quiet gap is the lever. **Key interfaces:** - `Store.__init__` writer path: the startup checkpoint, after the schema migration and before the first write. - `SyncConfig`: the two new fields with bounds and defaults; `mailmind check` prints them. - `SyncWorker` backfill loop and `EmbedWorker` batch loop: the gap hook, one shared helper so both sleep the same way and honour the stop event. - `Store.status` and the `mail_status` renderer: WAL size field. The status counts issue (#110) is separate; the new field is one `os.stat`. **Acceptance criteria:** - [ ] A test opens a store in writer mode over a WAL left at several MB with no other connection and asserts the file is 0 bytes afterwards and the log carries the result counts. - [ ] A test opens the same store while another connection holds a read transaction and asserts the open succeeds within 3 s, the WAL is unchanged, and the log says busy. - [ ] With `checkpoint_gap_seconds=2`, a test that drives 60 backfill batches through the worker observes a pause of at least 2 s with no open transaction after each 20. - [ ] The reproduction from #91 (100-row commits beside Litestream 0.3.13 for 90 s) with `checkpoint_gap_seconds=2, checkpoint_gap_every=20` ends with a WAL high-water under one fifth of the no-gap run on the same machine, recorded in the PR. - [ ] `mail_status` output includes the WAL size; the evidence tool and health endpoint are unchanged. - [ ] `make check` passes. **Out of scope:** - Upgrading Litestream (the 0.5 line changes the replication model; it needs the #16 restore drill again). - The embedder's per-batch scans (#119), which are the live lock holder today. - Any change to the api process or to `journal_mode`.
Collaborator

⏸ SVD architect gate: dev/imap-mailmind-mcp#118 cap-the-wal-file-beside-litestream-journal-size-limit-quiet

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 substrate · dispatch effort high

Run: 20261101T230708Z-408d2345

Held because: CLEAN but 5 open risk(s) (3 verification · 2 decision) — HOLD-ALL parks everything. The risks, verbatim:

Open risks:

  1. Should the quiet gap hold Store._lock, which blocks every writer thread in the sync process (the lean), or pause only the calling thread? A gap in one thread is defeated by the embedder, the assessor or another account thread writing during it, so Litestream's RESTART still returns busy. The cost of the lean: with the gap on, an embed-batch gap also stalls backfill writes and outbox drains in the sync process for up to checkpoint_gap_seconds. [decision]
  2. The 16-file ceiling left out README.md:165 (the [sync] key table) and a JMAP-side gap test in tests/test_jmap.py. The JMAP hook in jmap.py:_add is one line, the same as the IMAP hook, and calls the tested QuietGap.after_batch, but no test drives it directly. Should dispatch run with allowOverScope:true to add those two files (18 total), or should a follow-up issue cover the README row and the JMAP test? [decision]
  3. Before merge, run the #91 reproduction on the host: the sync writer at 100-row commits next to Litestream 0.3.13 for 90 s, once with checkpoint_gap_seconds=0 and once with checkpoint_gap_seconds=2, checkpoint_gap_every=20. Record the max -wal size of each run (stat, or wal_bytes from mail_status) in the PR. Pass if the gap high-water is under 0.2 times the no-gap high-water. The script is attached to #91; it is not in this snapshot or in the repo. [verification]
  4. After rollout, check on the live pod that the sync container's first 'startup checkpoint' JSON log line (logger imap_mailmind_mcp.store) shows busy: false, and that mail_status shows a small wal_bytes right after start. If it shows busy: true, the brief's premise (the sync worker opens before Litestream takes its read lock) does not hold on the pod, and the startup truncate does nothing there. [verification]
  5. The SQLite behaviour behind the truncate and busy tests was measured in the Half-A sandbox with system Python 3.14.7 and SQLite 3.53.3, not the repo .venv: busy returned (1,1402,1402) after 2.15 s, and the free case left a 0-byte WAL. On the host, run uv run python3 -m pytest -q tests/test_store.py -k "truncates_a_left_wal or reader_logs_busy" and confirm both pass with the venv's bundled SQLite. [verification]

Change: 1. Startup truncate. Add Store._startup_checkpoint, called in the writer branch of Store.init after the meta upsert (store.py:517-523) and before self._actions_conn = self._conn (store.py:524). It sets busy_timeout to 2000, runs PRAGMA wal_checkpoint(TRUNCATE), and restores busy_timeout 30000 in finally (the _connect value, store.py:2242). It logs 'startup checkpoint' with extra busy, wal_frames and checkpointed, treats an OperationalError as busy, and never raises. Add those three keys to the _JsonFormatter allowlist (cli.py:41-58).
2. Shared helper in store.py. Store.quiet(seconds, stop) holds self._lock with no transaction open and calls stop.wait(seconds). Holding the lock makes the gap cover the whole sync process. QuietGap(store, seconds, every) has a stop event, a counter guarded by a lock, after_batch() (pauses on every Nth batch) and pause() (pauses every time).
3. Config. SyncConfig gains checkpoint_gap_seconds (float, default 0, ge=0, le=60, with a field_validator rejecting values between 0 and 2, mirroring ServerConfig._path_shape at config.py:64-69) and checkpoint_gap_every (int, default 20, 1 to 1000).
4. Wiring. SyncWorker.init builds self.gap and passes gap= to open_source (keyword-only, forwarded to AccountSync and JmapSource as a dataclass field after blobs) and to EmbedWorker.from_config. run_forever sets self.gap.stop = stop before any thread starts.
5. Hooks. IMAP _backfill, after the 'backfill batch' log (ingest.py:234-237): if gap.after_batch(): break. JMAP _add (jmap.py:620-621): call after_batch() without break, because _backfill, _changes and _reconcile write EMAIL_STATE after _add returns. EmbedWorker._account: if gap.pause(): break, just before the existing pause at embed.py:244; this one site covers both message and attachment batches.
6. Status. Store.status adds wal_bytes from a single stat of the -wal file, mirroring db_bytes (store.py:2115,2125). mail_status line 682 becomes 'db: wal_bytes=N'.
7. cmd_check prints 'sync: checkpoint_gap_seconds=... checkpoint_gap_every=...'.
8. Comment blocks go above the backup service in compose.yaml:56 and deploy/k8s/base/deployment.yaml:157: journal_size_limit does not apply; truncate-page-count is not configurable in 0.3.13; max-checkpoint-page-count does not cure the busy result; the gap is the lever. config.example.toml [sync] gets the two keys, commented out.

Files: src/imap_mailmind_mcp/store.py · src/imap_mailmind_mcp/config.py · src/imap_mailmind_mcp/source.py · src/imap_mailmind_mcp/ingest.py · src/imap_mailmind_mcp/jmap.py · src/imap_mailmind_mcp/embed.py · src/imap_mailmind_mcp/server.py · src/imap_mailmind_mcp/cli.py · compose.yaml · deploy/k8s/base/deployment.yaml · config.example.toml · tests/test_store.py · tests/test_ingest.py · tests/test_config.py · tests/test_embed.py · tests/test_server.py

Decision: accept the 5 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):

  • add label svd:go — approve; Half-B dispatch accepts exactly this spec (open risks accepted)
  • add label svd:fire beside svd:go — approve AND authorise the Half-B fire from the phone; never on its own
  • add label svd:skip — park it; dispatch refuses it and the issue stays for a human
  • add label svd:respec — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context

Spec: /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-01-cap-the-wal-file-beside-litestream-journal-size-limit-quiet.md — next: codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-01-cap-the-wal-file-beside-litestream-journal-size-limit-quiet.md

### ⏸ SVD architect gate: dev/imap-mailmind-mcp#118 cap-the-wal-file-beside-litestream-journal-size-limit-quiet **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 `substrate` · dispatch effort `high` **Run:** `20261101T230708Z-408d2345` **Held because:** CLEAN but 5 open risk(s) (3 verification · 2 decision) — HOLD-ALL parks everything. The risks, verbatim: **Open risks:** 1. Should the quiet gap hold Store._lock, which blocks every writer thread in the sync process (the lean), or pause only the calling thread? A gap in one thread is defeated by the embedder, the assessor or another account thread writing during it, so Litestream's RESTART still returns busy. The cost of the lean: with the gap on, an embed-batch gap also stalls backfill writes and outbox drains in the sync process for up to checkpoint_gap_seconds. [decision] 2. The 16-file ceiling left out README.md:165 (the [sync] key table) and a JMAP-side gap test in tests/test_jmap.py. The JMAP hook in jmap.py:_add is one line, the same as the IMAP hook, and calls the tested QuietGap.after_batch, but no test drives it directly. Should dispatch run with allowOverScope:true to add those two files (18 total), or should a follow-up issue cover the README row and the JMAP test? [decision] 3. Before merge, run the #91 reproduction on the host: the sync writer at 100-row commits next to Litestream 0.3.13 for 90 s, once with checkpoint_gap_seconds=0 and once with checkpoint_gap_seconds=2, checkpoint_gap_every=20. Record the max -wal size of each run (stat, or wal_bytes from mail_status) in the PR. Pass if the gap high-water is under 0.2 times the no-gap high-water. The script is attached to #91; it is not in this snapshot or in the repo. [verification] 4. After rollout, check on the live pod that the sync container's first 'startup checkpoint' JSON log line (logger imap_mailmind_mcp.store) shows busy: false, and that mail_status shows a small wal_bytes right after start. If it shows busy: true, the brief's premise (the sync worker opens before Litestream takes its read lock) does not hold on the pod, and the startup truncate does nothing there. [verification] 5. The SQLite behaviour behind the truncate and busy tests was measured in the Half-A sandbox with system Python 3.14.7 and SQLite 3.53.3, not the repo .venv: busy returned (1,1402,1402) after 2.15 s, and the free case left a 0-byte WAL. On the host, run uv run python3 -m pytest -q tests/test_store.py -k "truncates_a_left_wal or reader_logs_busy" and confirm both pass with the venv's bundled SQLite. [verification] **Change:** 1. Startup truncate. Add Store._startup_checkpoint, called in the writer branch of Store.__init__ after the meta upsert (store.py:517-523) and before self._actions_conn = self._conn (store.py:524). It sets busy_timeout to 2000, runs PRAGMA wal_checkpoint(TRUNCATE), and restores busy_timeout 30000 in finally (the _connect value, store.py:2242). It logs 'startup checkpoint' with extra busy, wal_frames and checkpointed, treats an OperationalError as busy, and never raises. Add those three keys to the _JsonFormatter allowlist (cli.py:41-58). 2. Shared helper in store.py. Store.quiet(seconds, stop) holds self._lock with no transaction open and calls stop.wait(seconds). Holding the lock makes the gap cover the whole sync process. QuietGap(store, seconds, every) has a stop event, a counter guarded by a lock, after_batch() (pauses on every Nth batch) and pause() (pauses every time). 3. Config. SyncConfig gains checkpoint_gap_seconds (float, default 0, ge=0, le=60, with a field_validator rejecting values between 0 and 2, mirroring ServerConfig._path_shape at config.py:64-69) and checkpoint_gap_every (int, default 20, 1 to 1000). 4. Wiring. SyncWorker.__init__ builds self.gap and passes gap= to open_source (keyword-only, forwarded to AccountSync and JmapSource as a dataclass field after blobs) and to EmbedWorker.from_config. run_forever sets self.gap.stop = stop before any thread starts. 5. Hooks. IMAP _backfill, after the 'backfill batch' log (ingest.py:234-237): if gap.after_batch(): break. JMAP _add (jmap.py:620-621): call after_batch() without break, because _backfill, _changes and _reconcile write EMAIL_STATE after _add returns. EmbedWorker._account: if gap.pause(): break, just before the existing pause at embed.py:244; this one site covers both message and attachment batches. 6. Status. Store.status adds wal_bytes from a single stat of the -wal file, mirroring db_bytes (store.py:2115,2125). mail_status line 682 becomes 'db: <human> wal_bytes=N'. 7. cmd_check prints 'sync: checkpoint_gap_seconds=... checkpoint_gap_every=...'. 8. Comment blocks go above the backup service in compose.yaml:56 and deploy/k8s/base/deployment.yaml:157: journal_size_limit does not apply; truncate-page-count is not configurable in 0.3.13; max-checkpoint-page-count does not cure the busy result; the gap is the lever. config.example.toml [sync] gets the two keys, commented out. **Files:** `src/imap_mailmind_mcp/store.py` · `src/imap_mailmind_mcp/config.py` · `src/imap_mailmind_mcp/source.py` · `src/imap_mailmind_mcp/ingest.py` · `src/imap_mailmind_mcp/jmap.py` · `src/imap_mailmind_mcp/embed.py` · `src/imap_mailmind_mcp/server.py` · `src/imap_mailmind_mcp/cli.py` · `compose.yaml` · `deploy/k8s/base/deployment.yaml` · `config.example.toml` · `tests/test_store.py` · `tests/test_ingest.py` · `tests/test_config.py` · `tests/test_embed.py` · `tests/test_server.py` **Decision:** accept the 5 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`): - add label `svd:go` — approve; Half-B dispatch accepts exactly this spec (open risks accepted) - add label `svd:fire` **beside** `svd:go` — approve AND authorise the Half-B fire from the phone; never on its own - add label `svd:skip` — park it; dispatch refuses it and the issue stays for a human - add label `svd:respec` — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context <sub>Spec: `/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-01-cap-the-wal-file-beside-litestream-journal-size-limit-quiet.md` — next: `codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-01-cap-the-wal-file-beside-litestream-journal-size-limit-quiet.md`</sub>
Collaborator

spec-verify-dispatch Half B for dev/imap-mailmind-mcp#118 cap-the-wal-file-beside-litestream-journal-size-limit-quiet completed integration verify.

  • PR: dev/imap-mailmind-mcp#122
  • Branch: feat/svd-dev-imap-mailmind-mcp-118-cap-the-wal-file-beside-li-408d2345
  • Commit: 7b693feaab
  • Build: none
  • Test: green
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: True
  • Check forgejo-commit-statuses: absent
  • Checks: PR #122 head 7b693fe: no Forgejo commit statuses (absent). Local: 794 passed, 8 skipped; make check green.
  • Warning: Spec item 'reproduce #91 beside Litestream' was not run (no reproduction script); live-pod startup verification is pending rollout.
  • Warning: No remote CI statuses exist on the PR head.
  • Warning: no CI for forgejo-commit-statuses: PR head 7b693fe has no commit statuses on git.groupthink.asia; CI files are added by the architect (no pipeline run in history) — reported as absent, not blocking (gh#633)
  • Decision: review the PR and merge? (codex-svd ship --run-id 20261101T230708Z-408d2345 --confirm-merge)
spec-verify-dispatch Half B for dev/imap-mailmind-mcp#118 cap-the-wal-file-beside-litestream-journal-size-limit-quiet completed integration verify. - PR: https://git.groupthink.asia/dev/imap-mailmind-mcp/pulls/122 - Branch: feat/svd-dev-imap-mailmind-mcp-118-cap-the-wal-file-beside-li-408d2345 - Commit: 7b693feaab24d89f2fb819adc66712273cfe6748 - Build: none - Test: green - Reader audit clean: True - Spec fidelity: True - Ready for merge: True - Check forgejo-commit-statuses: absent - Checks: PR #122 head 7b693fe: no Forgejo commit statuses (absent). Local: 794 passed, 8 skipped; make check green. - Warning: Spec item 'reproduce #91 beside Litestream' was not run (no reproduction script); live-pod startup verification is pending rollout. - Warning: No remote CI statuses exist on the PR head. - Warning: no CI for forgejo-commit-statuses: PR head 7b693fe has no commit statuses on git.groupthink.asia; CI files are added by the architect (no pipeline run in history) — reported as absent, not blocking (gh#633) - Decision: review the PR and merge? (`codex-svd ship --run-id 20261101T230708Z-408d2345 --confirm-merge`)
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dev/mail-mind-mcp#118
No description provided.