You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1f82e53
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: PLAN.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -582,7 +582,7 @@ milestones but deliberately carries no completion state). Rules:
582
582
|**M1**| SQLite store (schema §4), read-only IMAP sync (discovery, tier detection, backfill, IDLE), hydration, `/changes` + SSE, preview | real Dovecot account browsable read-only; a flag flipped in another IMAP client appears in jmap-tui ≤ 2 s | FR-S.1–.9, FR-M.1–.8, FR-J.7–.8 | ✅ done 2026-09-29 (live local Dovecot 2.4: `test/live` foreign flag → store 505 ms and jmap-tui engine 563 ms, both ≤ 2 s over IDLE+SSE; backfill, hydration and preview against the real server; jmap-tui live suite + `smoke` green over loopback) |
583
583
|**M2**| Write path §7.1, `Mailbox/set`, drafts, IMAP-first commits | jmap-tui triage (star/archive/move/delete/undo) round-trips; changes visible from a second IMAP client | FR-M.9–.13 | ✅ done 2026-09-29 (live local Dovecot 2.4: `test/live` write gate — star/move/copy with undo, `Mailbox/set` create/rename/delete, draft `APPEND` with `\Draft`, destroy — each re-read from an **independent IMAP session**; jmap-tui triage scratch green over loopback 3× — read/star/undo/move/undo/copy/undo/archive/delete-to-trash/destroy, every step confirmed by python3/imaplib; gate caught and fixed `/get` dropping `id` per RFC 8620 §5.1) |
584
584
|**M3**| Send §7.2, `Identity/get`, blob upload/download, `EmailSubmission/set` with `onSuccessUpdateEmail`| compose → send → message in Sent **and** delivered to a test sink; attachment round-trip byte-exact | FR-M.14–.17 | ✅ done 2026-09-29 (`test/live` M3 gate against dev Dovecot + in-process SMTP sink: batched draft+submission, `#draft` creation reference, patch files Sent, sink held the message with its attachment byte-exact and no Bcc, second IMAP session saw one `\Seen` copy — plus fixture-tier suites `TestSubmission*`, `internal/submit` against the SMTP fixture, and the jmap-tui cross-client rig: `TestLiveM5Gate` (compose→attach→send→Sent), `TestLiveM5ProbeDraftRoundTrip` and the M1/M2 bridge gates green over loopback) |
585
-
| **M4** | Gmail profile: OAuth2 bootstrap, XOAUTH2 IMAP/SMTP, `X-GM-LABELS`↔mailboxes, All Mail/archive, `X-GM-THRID`, CONDSTORE tier validation, rate limits | live Gmail: folders+labels both ways, compose/send, archive from jmap-tui, no rate-limit warnings | FR-A.5–.10, FR-S.10, FR-S.12, FR-M.18 | ✅ done 2026-10-01 (live Gmail `you@gmail.com`, `dev/gate/m4gate.py` once, **14/14 checks, no `[THROTTLED]`**, every claim re-read from an independent `imaplib` client: a label applied in Gmail appears in the bridge; archiving from the bridge drops INBOX membership and the undo restores it; compose/send over XOAUTH2 SMTP delivers exactly one copy and files exactly one Sent copy. The gate caught and fixed **five real Gmail bugs**: a label write sourced from the folder being removed is accepted and silently ignored (archive now sources from All Mail); a fresh message with no cached All Mail copy is addressed there by a Message-ID search (`imapdrv.FindUID`); filing a draft into Sent tombstoned it (non-implicit label adds now commit locally); Gmail's draft label is `\Draft`, not `\Drafts`; and Gmail delays an SMTP submission whose Message-ID matches the upstream draft, so the submission path expunges that draft before SMTP and restores it on failure. Fixture coverage: per-folder UIDs in `internal/sync/gmail_test.go`, `TestGmailArchiveSearchesAllMailWhenUncached`, `TestGmailSendExpungesDraftBeforeSMTP`) |
585
+
| **M4** | Gmail profile: OAuth2 bootstrap, XOAUTH2 IMAP/SMTP, `X-GM-LABELS`↔mailboxes, All Mail/archive, `X-GM-THRID`, CONDSTORE tier validation, rate limits | live Gmail: folders+labels both ways, compose/send, archive from jmap-tui, no rate-limit warnings | FR-A.5–.10, FR-S.10, FR-S.12, FR-M.18 | ✅ done 2026-10-01 (live Gmail the user's Gmail account, `dev/gate/m4gate.py` once, **14/14 checks, no `[THROTTLED]`**, every claim re-read from an independent `imaplib` client: a label applied in Gmail appears in the bridge; archiving from the bridge drops INBOX membership and the undo restores it; compose/send over XOAUTH2 SMTP delivers exactly one copy and files exactly one Sent copy. The gate caught and fixed **five real Gmail bugs**: a label write sourced from the folder being removed is accepted and silently ignored (archive now sources from All Mail); a fresh message with no cached All Mail copy is addressed there by a Message-ID search (`imapdrv.FindUID`); filing a draft into Sent tombstoned it (non-implicit label adds now commit locally); Gmail's draft label is `\Draft`, not `\Drafts`; and Gmail delays an SMTP submission whose Message-ID matches the upstream draft, so the submission path expunges that draft before SMTP and restores it on failure. Fixture coverage: per-folder UIDs in `internal/sync/gmail_test.go`, `TestGmailArchiveSearchesAllMailWhenUncached`, `TestGmailSendExpungesDraftBeforeSMTP`) |
586
586
| **M5** | FTS5 + search-driven backfill, filter/sort/anchor/collapseThreads correctness, `PREVIEW`/partial-fetch, COMPRESS, 100k soak | jmap-tui live search cases green; cold browse of a 100k mailbox stays responsive; soak within NFR bounds | FR-X.1–.8, FR-S.11, NFR-1, NFR-2, NFR-8 | ✅ done 2026-09-30 (dev Dovecot 100k-message corpus, `test/live TestLiveSoak100k`: warm `Email/query` p95 browse 31.1 ms / collapseThreads 32.0 ms / body-token text 82.8 ms, all < NFR-1's 150 ms; hydration 133.4 bodies/s (≥ 15); idle RSS 29.0 MB (< 150 MB, NFR-8); 3 engine-reconnect cycles flat at the 3-goroutine baseline; cold reopen browse 37.7 ms / collapse 32.6 ms — and the same full workload under the race detector with **zero data races** (the soak relaxes its NFR budgets only under `-race`, which it also enforces verbatim otherwise); jmap-tui cross-client gate `TestLiveSearchVerification` green over loopback: 3000-message text search first page 505 ms, from/subject/hasKeyword/after/before/all-mailbox filters, engine `SearchOpen`/`SearchClose`, and both substring fallbacks (partial-word + fielded-subject scan matched 3000/3000); FTS5 index at ingest + hydration, tombstones, search-driven backfill and batched hydration covered by `internal/store/fts_test.go`, `internal/sync/backfill_search_test.go` and `internal/imapdrv/fetchbodies_test.go`) |
587
587
| **M6** | CardDAV §8: discovery, sync-collection, PUT/DELETE, vCard↔JSContact, photo blobs, capability gating | jmap-tui `contacts_live_test` suite green against a real CardDAV server; create/edit/delete contact round-trips | FR-P.1–.13 | ✅ done 2026-09-30 (loopback Radicale 3.8.1 as the real server — `dev/gate/radicale-start.sh`: jmap-tui `TestLiveContactsGate` green over loopback (capability + lazy load, create → SSE ContactCard push < 8 s → rename → destroy, card proven gone from the server); bridge-side `test/live TestLiveContactsGate` green against the same Rig (create/update/move/destroy each re-read from an **independent DAV session**, RFC 6578 sync-token replay + 412/refetch write guard); the gate caught and fixed a real bug — an update re-minted the card UID (Radicale answered 409 no-uid-conflict), now the uid is canonicalized into the stored JSContact on create and reused on update. Fixture-tier coverage: `internal/dav` (sync/getctag/bare tiers, well-known redirect, conditional PUT/DELETE, multiget/GET), `test/fixturecarddav`, `internal/convert` golden pairs (v3+v4, groups, inline photos, malformed), `internal/store/contacts_test.go` (bookkeeping never moves states, cascade tombstones), `internal/jmapapi` set/patch/error-mapping tests, `internal/httpapi` FR-P.3 session gating test)
588
588
|**M7**| Packaging: multi-account paths, credential encryption, metrics/health (`[metrics]` + `/metrics`), UIDVALIDITY recovery drill, Docker image + k8s manifests, README deployment verified, `JMAP-TestSuite` run | fresh `docker run` + `kubectl` install works end-to-end from the docs; JMAP-TestSuite subset for the implemented surface green (deliberate gaps enumerated below); all gates green | FR-M.19, FR-J.9–.10, FR-D.2–.12, NFR-3–.7, NFR-9–.10 | ✅ done 2026-10-03 (live k3s `v0.1.5` at https://jmap-bridge.geekify.me — cPanel IMAP + Gmail OAuth2 accounts, jmap-tui connected, `/healthz`=ok `/readyz`=ready; `JMAP-TestSuite` vs loopback dev Dovecot: **208/262 required pass**, 28 skip, 54 required fail — **all** in the documented out-of-scope gaps below, zero in-scope failures; `[metrics]``/metrics` demonstrated `200` enabled vs `404` disabled; FR-D.12 redaction tests; FR-S.6 UIDVALIDITY drill; all local gates green: build, vet, gofumpt, golangci-lint 0 issues, `go test -race`, version smoke) |
0 commit comments