calternaldav: CalDAV, WebDAV, reminders, notes, mail and calendar sync (epic, grill first) #543
Open
opened 2026-10-17 16:44:27 +00:00 by kayg
·
21 comments
No Branch/Tag specified
main
port/tasks-float-2
fix/train-1116-2
fix/train-1116-3
fix/train-1116-1
fix/flake-1134
fix/server-1182
dev
port/notes-float-3c
docs/auto-update-ig
feat/dav-transport
port/tasks-float-1
wip/mail1011-sv-order-1116
fix/flake-1179
fix/flake-1178
fix/guards-1153-fsio-split
fix/guards-1153-notes-split-we
fix/guards-1153-notes-lib
fix/guards-1153-notes-home
fix/guards-1153-ui-primitives
fix/guards-1153-primitives-e2e
fix/guards-1153-visibility-doc
feat/paper-grey-1116
fix/flake-1165
fix/flake-1119
docs/imap-766-plan-v2
fix/e2e-unique-ports
t3/paged-search-reconcile-final
wip/mail1011-final-1115
docs/tasks-float-port
perf/editor-first-paint-1c
feat/imap-notes-fetch
feat/imap-notes-projection
feat/imap-notes-readonly
feat/imap-notes-auth
feat/imap-notes-server-foundation
wip/mail1011-txn-ownvocab-1115
wip/mail1011-txn-novocab-1115
perf/p1117-final-harness
perf/single-shot-repeats
port/tasks-matrix
wip/mail1011-txn-1115
fix/static-gates-1155
feat/files-s1-identity-r7
fix/files-r7-idle-loop
fix/daily-train-1152
port/notes-float
fix/editor-tables-test-types
port/notes-float-listscript
feat/tasks-actions
port/notes-float-phone-preload
perf/sound-comparator
port/notes-float-listscroll
port/notes-float-budgets
port/notes-float-suite-fix-b
port/notes-float-sidebar-fix
port/notes-float-trim
port/notes-float-3-lists
fix/attachments-meta-capability
docs/carddav-writes-v2-plan
feat/contacts-companion-pure
issue/carddav-read-perf-fix-r2
issue/carddav-read-r2
port/notes-float-devsync2
review/calendar-2
review/switcher-a-pills
port/notes-float-switcher-a
port/port-tables-2
review/switcher-ends
wip/whiteboard-s1-1114
port/port-tables
wip/mail1011-perfneutral
review/photo-tint
port/notes-float-shell
wip/local/collections-db
wip/local/mail-p1
wip/local/cold-growth-on-tiering
wip/local/tiering-v3-s1
wip/local/wal1051-cap
wip/local/tiering-v3-s1-resume
wip/local/index-position-startup-scan
port/notes-float-flat
port/notes-float-promote
wip/handover/mail1011-candidate
wip/handover/files-s1-candidate
port/notes-float-shell-only
port/notes-float-perf
feat/whiteboard-s1
feat/tiering-v5
fix/app-switch-hitch
wip/local/files-s1-dev-v4-final
feat/files-s1-dev-v4
fix/c2-glass-shared
feat/flat-lists
wip/handover/whiteboard-s1-resume
wip/att-lazy-861
feat/switcher-browse
wip/att-lazy-860
feat/tasks-float
recovered/flat-backup-candidate
perf/stalls-1054-kc
land/ai-toolbar
feat/collections-db
feat/collections-db-fixes
codex/mail-1011-redesign-20261111
fix/ai-toolbar
backup/macos-vm/st3-head
perf/trim-candidate-phonestack
feat/switcher-three
fix/1051-index-idle-checkpoint
perf/stalls-1054-kb
perf/stalls-1054-k
perf/stalls-1054-r3
fix/c2-contrast-tail
perf/stalls-1054-r3-preview
feat/collections-before
feat/tiering-v4
fix/timelog-caret
wip/local/tasks-actions
docs/tasks-writes-v2-plan
st3-r3
feat/pass8
review/calendar-2-before-1111
wip/tiering-v3-cold4
perf/stalls-1054-r2
fix/suite-A4
fix/suite-A5-probe
fix/suite-A6
fix/suite-A3
fix/suite-A2
fix/suite-A5
fix/suite-A1
wip/local/attachments-861-fix
feat/contrast
wip/local/ports-861
storage/wal-checkpoint-off-save-1051
wip/local/mail-1011-reconcile-20261110
feat/style-sheet-fixes
feat/money-round
perf/stalls-1054
wip/tiering-v3-cold5
t3/mail-1011-liveness
feat/iphone-fixes
feat/notes-approve
wip/local/shrow-work
feat/files-s1-identity
feat/quickfix
wip/tiering-v3-cold
wip/local/shared-row-swipes
backup/macos-vm/pfx-B
backup/macos-vm/pfx-C
backup/macos-vm/pfx-D
feat/contrast-r1
feat/tiering-v3-s2-tags
feat/folder-drop
t3/photos-s1
feat/tiering-v3-s1-namespace
wip/local/photos-s1
t3/photos-plan-slice-one
recovered/backup/p1b-61505
t3/paged-search-reconcile
t3/smooth-pane-transitions
t3/index-position-startup-scan
fix/private-staging-759b-r2
backup/macos-vm/hk/hk1009/pr877
backup/macos-vm/hk/hk1009/pr878
docs/undo-block-ids-plan
fix/undo-768
backup/macos-vm/hk/hk1009/pr875
backup/macos-vm/hk/hk1009/pr904
proto/block-identity-v7d
backup/macos-vm/hk/hk1009/pr846
backup/macos-vm/hk/hk1009/pr860
backup/macos-vm/hk/hk1009/pr861
backup/macos-vm/hk/hk1009/pr849
backup/macos-vm/hk/hk1009/pr848
backup/macos-vm/hk/hk1009/pr853
backup/macos-vm/hk/hk1009/pr957
backup/macos-vm/hk/hk1009/pr893
backup/macos-vm/hk/hk1009/pr889
backup/macos-vm/hk/hk1009/pr902
docs/imap-notes-plan
docs/quota-plan-2
fix/parallel-test-flakes
docs/calendar-backend-v2-plan
feat/calendar-ical-converter
backup/macos-vm/hk/hk1009/pr808
docs/contacts-import-v2-plan
issue/610-pm-midnight
feat/calendar-v2-s1-containment
backup/macos-vm/hk/hk1009/pr854
backup/macos-vm/hk/hk1009/pr845
backup/macos-vm/hk/hk1009/pr917
docs/dav-recorder-v2-plan
plan/previews-865
plan/save-log-durable-entry
backup/macos-vm/hk/hk1009/pr934
fix/e2e-data-on-ram
backup/macos-vm/hk/hk1009/pr888
feat/appwindow3
feat/appwindow2
feat/appwindow
feat/money-p1
feat/keys-sheet
review/calendar-2-themes
feat/smooth-cursor
fix/float-style
review/calendar-2-float
release/2026-11-06-hotfix
archive/port/rows-drop-code
archive/port/rows-actions
archive/port/rows
scratch/tasks-894-ui-gates
review/calendar-2-night-wip
recovered/flaky/toast-reduced
release/2026-11-05
archive/flaky/rows-drop-fixed
archive/flaky/rows-actions
archive/flaky/rows
sim/bm15-final
sim/bm15-bis-932
sim/bm15-bis-909
sim/bm15
sim/bm15-bis-887
perf/tiering-option-b
fix/sw-lazy-precache
archive/plan/save-log-durable-entry
mock/money-fix2
archive/fix/e2e-data-on-ram
mock/appearance-all
mock/pill-press
mock/pill-press-mac
backup/macos-vm/appearance-after
mock/auto-swipes
mock/mail-actions
backup/macos-vm/mock/mail-actions
mock/money-static
archive/review/standards-917
perf/tiering-761-fix
mock/type-audit
mock/third-pane
feat/contacts-import-v2-s1
perf/executor-hot-path
archive/port/hidden-blocks
archive/port/devices
scratch/executor-on-894
scratch/executor-spans2
scratch/executor-spans
archive/port/rows-drop
feat/tiering-761-d-scale
feat/tiering-761-c-index
feat/tiering-761-b-reader
archive/review/sharing-pr3-review-9fec3d1f
perf/ports-lazy-budgets
feat/tiering-761-a-migration
archive/review/sharing-pr3-review
archive/review/sharing-pr3-review-code
archive/plan/previews-865
archive/port/port-attachments-3
archive/port/contacts-merge
fix/motion-audit-859
fix/motion-audit-859-mac
archive/port/port-pickers
archive/port/port-tables-2
archive/port/port-tables
recovered/local/sharing-s1-pr2-room-snapshot-candidate
archive/fix/parallel-test-flakes-code-minipc01
docs/imap-766-readonly-slice
feat/dav-recorder-v3
research/788-diagnosis
archive/fix/parallel-test-flakes
archive/perf/pr792-cold-index-edit
docs/sharing-slice-1
recovered/feat/dav-recorder-v2
recovered/feat/dav-recorder-v2-edd7bbb
spike/imap-766-s0-cases
archive/fix/undo-768
recovered/feat/dav-recorder
recovered/feat/dav-recorder-901acd4
feat/contacts-import
perf/cold-growth-on-764
perf/cold-growth-on-tiering
recovered/feat/tasks-set-status
feat/tasks-move-reorder
feat/tasks-delete-promote-duplicate
feat/carddav-writes
perf/quota-on-tiering
perf/quota-simple
perf/cold-growth-on-quota-stack
recovered/perf/cold-growth-on-tiering
feat/calendar-identity
feat/calendar-event-parser
feat/calendar-props-maps
port/glass-when-ring
recovered/feat/tiering-761-s1-wip-8132a84
recovered/feat/tiering-761-s1-wip-9da4094
recovered/feat/tiering-761-s1-wip-724512c
recovered/feat/tiering-761-s1-wip-66e667e
recovered/feat/tiering-761-s1
wip/6by32-01-tier-761-s1-pause-20261030
spike/imap-766-s0
wip/6by32-02-calternal-pause-20261030
wip/8by64-01-review-688-pause-20261030
wip/6by32-01-verify-744-pause-20261030
wip/6by32-01-verify-742-pause-20261030
fix/private-staging-759b
wip/6by32-01-review-748-pause-20261030
wip/6by32-01-review-733c-pause-20261030
wip/6by32-01-review-733b-pause-20261030
review/calendar-month
wip/local/bm15-trash
plan/759b-staging
review/767b-tests
review/preview-2026-10-29
docs/tiering-731-plan
wip/c6b02-review-733d
wip/c6b02-bm1-full-a
docs/deploy-plan
fix/storage-owner-liveness-642
fix/storage-fix-7
feat/tiering-731
wip/tiering-731-first-attempt
perf/idle-honest-2
fix/storage-private-tmp-642-dev
fix/storage-exact-file-quarantine-642
perf/one-flush-save
review/calendar-static
review/indexing-ring
review/when-field-2
proto/block-identity-2-review
proto/block-identity-review
review/when-field
issue/tasks-create-ids
issue/tasks-create
review/combined
review/task-polish
review/top-buttons
review/q1-q5
archive/integ325-293
archive/integ325-ci
issue/calendar-adr
archive/old/train/2026-10-23bk2
archive/old/train/2026-10-23bk
issue/469-mockup-9a
issue/smart-tasks-mockup
issue/469-menus
issue/652-signout-flake
issue/652-history-fix7
issue/652-history-fix6
archive/old/issue/spring-check-perf
issue/spring-check-perf
issue/659-rename-fast
archive/old/train/2026-10-21ar
issue/search-hardening-3
issue/652-history-fix5
issue/660-port-sheets-glass
issue/652-history-fix4
issue/652-history-fix3
issue/652-history-fix2
issue/652-history-flake
train/2026-10-21an
issue/settings-admin-port
issue/search-port
train/2026-10-20am
issue/storage-split-fix2
issue/storage-split
archive/old/issue/folder-ids-fix
train/2026-10-20al
archive/old/issue/folder-ids
train/2026-10-20ak
issue/tables-mockup
train/2026-10-19aj
train/2026-10-19ai
issue/469-merge-fixes
issue/sidebar-band
archive/old/issue/608-settings-spec
train/2026-10-19ah
issue/swipe-offscreen
train/2026-10-19ag
archive/old/issue/590-nlp-adr
archive/old/issue/587-event-after-write-2
train/2026-10-19af
archive/old/issue/587-event-after-write
issue/469-pill-room-c
issue/469-pill-room
train/2026-10-19ae
issue/469-narrow-handle
issue/397-ios-swipe-2
issue/469-desk-fixes
archive/old/issue/auto-update-adr
issue/469-filter-gap
issue/469-port-1b
issue/442-opacity-flake
issue/327-web-fast-3
archive/old/issue/469-port-1
issue/469-port-1
issue/327-web-fast-2
archive/old/issue/327-web-fast
archive/old/issue/425-stt-bench-vq1
archive/old/issue/445-no-bleed
archive/old/issue/400-swipe-mockup-2
issue/426-client-review
issue/426-client-2
issue/426-client
archive/old/issue/476-safe-area-lab
archive/old/issue/445-top-light
issue/471-blocks-mockup
archive/old/issue/448-links-app-2
archive/old/issue/448-links-app
archive/old/issue/398-cold-links
issue/434-442-small-2
issue/434-442-small
archive/old/issue/398-unload
archive/old/issue/445-bottom-band
issue/445-bottom-band
issue/351-rem-3
issue/351-rem-2
issue/351-rem
archive/old/issue/327-first-note
issue/395-width-phone
archive/old/issue/327-typing
issue/396-ios-edges
issue/397-ios-swipe
archive/old/issue/327-notes-index
issue/345-347-contrast-empty-2
archive/old/issue/44-arenas
issue/44-arenas
archive/integ325
archive/old/issue/327-perf-harness
archive/old/issue/44-thp
issue/44-thp
archive/old/issue/285-sticky-pills
archive/old/issue/44-trim-3
issue/44-trim-3
archive/old/issue/165-cards
archive/old/issue/165-picker-2
archive/old/issue/212-multi-select
No results found.
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
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
kayg/calternal#543
Loading…
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?
Decided direction by kayg: B10 (2026-10-13, think about calternaldav as a foundation), Q1b (2026-10-13: DAV clients get app passwords and Installation profiles signed with kayg's Apple Developer ID), L21 and F5 (2026-10-17: our own CalDAV, WebDAV as a plugin inside calternaldav), TQ9 (2026-10-17: reminders, notes, mail and calendar sync, "released in foolproof chunks").
Nothing tracks it. This epic is grill-first: order of chunks, release gates (real Reminders in the simulator, conflicts, 1k tasks per T7/T8), plugin boundaries. Depends on the Tasks and Files grills. Do not build before the ADRs.
Found by the 2026-10-17 decided-but-not-started audit (nothing had an issue, PR or branch). Listed in #174. Grill/ADR rules still apply before foundational code.
Starting read-only v0 DAV decision extraction. Source branch: dev; base SHA: ebaa86165145f871441efe5ae950c7cfc94cc953. I will write the four requested research files under /home/kayg/Developer/calternal-research/dav-v0 and will not change this repository.
Finding: v0 does not implement a native CardDAV address book. The DAV router exposes CalDAV routes and
/.well-known/caldavonly (crates/calternal-dav/src/protocol.rs:682-699, 770-864); the Contacts checkbox was explicitly hidden until Contacts exists (docs/DESIGN.md:3186-3199). The general design listed.vcfas the contact format (docs/DESIGN.md:51-53), while the rewrite owner now directs new contacts to Markdown Notes withformat: calternal-contact. Socontacts-vcard.mdis a rewrite proposal, not a v0 storage decision.Finding: several v0 documents are snapshots, not current contracts.
docs/research/file-protocols.md:29-43says the DAV crate had only Journal CalDAV and no file WebDAV, and its conclusion at:405-416says no adapter measurement existed; the currentcrates/calternal-dav/src/files.rs:1-15,418-446implements file WebDAV with class 1/2 and the route. Likewise, the CalDAV README says alarms are rejected (crates/calternal-dav/README.md:28-33), while the current source retains valid VALARM components (crates/calternal-dav/src/lib.rs:35-37,128-138,310-345). I will mark these as stale claims and use code plus later evidence for current behavior.Finding: v0 had a real Calendar data-loss bug and Apple-specific concurrency failures. The captured matrix reports that an early Calendar DELETE removed child Task/Note lines with the Log line, fixed by the shared reparenting rule (
docs/research/apple-caldav-matrix.md:61-62; current rule indocs/DESIGN.md:2822-2832). Apple MOVE and DELETE omit If-Match; strict 428 broke them, and the first compatibility fix left duplicate hrefs until REPORT listed the guessed href as 404 (apple-caldav-matrix.md:61-62). The same matrix records stale VTODO ETags with an old sync token yielding no changes until the feed epoch was rotated (:103-109). These are included as known v0 failures and rewrite tests, with the fixes distinguished from the original failures.Finding: the v0 performance evidence is useful but not a release baseline. The 50,000-entry CalDAV profile missed its 5-second move visibility target (18.349s p95 after the change), and local auth verification measured 5.283s p95 under a loaded shared host (
docs/perf/caldav-scale-573.md:13-20,24-36). The DAV App Password cache reduced a local debug warm p95 from 6,241ms to 315ms and cold p95 from 5,995ms to 856ms, but the report says the perf VM lock was busy (docs/perf/runs/2026-10-01-issue-512-app-password-dav.md:1-24,36-38). I will preserve the figures with their host/load caveats, not treat them as rewrite targets without fresh runs.Finding: the tested Apple Notes bridge keeps Markdown Notes authoritative and treats each Tag folder as a copy. Apple can show the same UUID in two folders as separate Notes, and a change in one folder does not update the other; the bridge therefore fans edits out and permits only one live UID per UUID per mailbox (
docs/research/apple-notes-imap.md:190-199,225-251). Concurrent or ambiguous edits become conflict Notes instead of overwriting source (crates/calternal-imap/README.md:62-75). A flattened table-cell edit initially became a conflict because the visible text lost the Markdown cell boundary; the later fix uses a retained neighboring cell and still preserves both sources when the boundary is unclear (apple-notes-imap.md:488-495,600-601).Finding: the Mail proxy still has a separate reliability and scope frontier. An interrupted APPEND was accepted locally but had no upstream receipt; the cause was an uncertain upstream acknowledgement, so replaying it blindly could duplicate a draft. Later recovery uses an operation keyword or a unique exact MIME match (
tests/adversarial/mail-sync.md:1174,1203-1207;docs/DESIGN.md:3447-3455). Folder CREATE/RENAME/DELETE remains unsupported (mail-sync.md:970-982), and one native Apple Mail run crashed during mutation while the server stayed ready and the server cause was not established (mail-sync.md:168-179).Finding: two adjacent v0 audit limits matter for a rewrite. The cross-user audit found DAV row reads were User-scoped, but Files change-feed cursors used Instance-wide sequences, exposing gaps tied to other Users' activity; issue #334 tracked that metadata boundary (
docs/audits/cross-user-2026-09-28.md:24,28,33,43). A separate review explicitly keeps_calternal/hiddenin raw WebDAV Markdown/XMP exports, where an external XMP client may show it as a keyword (review-1153.md:188-196). These are different behaviors: cursor privacy must be fixed at sync-token design, while raw source export is an explicit fidelity choice.Finding: the latest broad audit retained one unresolved DAV discovery finding: an imported area did not become a Calendar collection, while the focused 100-resource replay passed; the cause was not established (
docs/audits/merge-round-9.md:81-89,489-501,545-550). I will document this as an unresolved test result, not claim a code root cause.Finished the read-only v0 extraction. The four deliverables are in
/home/kayg/Developer/calternal-research/dav-v0/:decisions.md,critique.md,questions.md, andcontacts-vcard.md. They distinguish v0 decisions from the new Contacts-first proposal and include source line citations, the Apple CalDAV matrix, performance evidence, known failures, and a lossless vCard mapping proposal.Head SHA:
ebaa86165145f871441efe5ae950c7cfc94cc953Gate output:
Not run.This was read-only research with no code changes; no build or test gates were invoked. The source worktree remains clean.Starting notes-imap-probe for #543. Feature test only, no product changes or pushes. Branch: none. Base SHA: not applicable (job directory is not a Git checkout). Target: macOS 27 VM macos-01-std on Mac Studio via NetBird SSH. Will test IMAP-backed Notes and preserve raw messages/screenshots, then remove test resources.
Decided by kayg in the roadmap doc, 28 Oct (AP1–AP5):
hidden:frontmatter field keeps blocks/notes out. No new tag.🤖 Generated with Claude Code
Probe setup evidence: VM macos-01-std is macOS 27.0.1 (26A434); Notes 4.13 (3195); Cua Driver 0.37.0. Dovecot 2.4.5 (0cbb641e3e) downloaded through Nix, but its child processes fail Darwin setrlimit(RLIMIT_DATA) with both 256 MB and unlimited; stopped that process. Switched to pymap 0.36.7 with Python 3.13.15. Verified LOGIN, LIST, and CREATE Notes from an external IMAP client. Server advertises IMAP4rev1, UIDPLUS, MOVE, CHILDREN, IDLE, OBJECTID, MULTIAPPEND. It listens only on Studio's VM NAT interface 192.168.64.1:1143. A disposable VM loopback forward supplies port 143 for Internet Accounts setup. Cua Driver TCC works when launched as its app bundle; direct SSH launch uses the wrong responsible identity. No product changes.
First confirmed wire finding: Notes 4.13 wrote a 657-byte RFC 822 message for a GUI-created IMAP note. Headers include X-Uniform-Type-Identifier: com.apple.mail-note; X-Universally-Unique-Identifier: 693430CD-FC26-45C4-948F-6BA8097BD332; Content-Type: text/html; charset="us-ascii"; Content-Transfer-Encoding: 7bit; Mime-Version: 1.0 (Mac OS X Notes 4.13 (3195)); Message-Id and X-Mail-Created-Date. HTML is a body with WebKit style attributes and a div for the next paragraph. Saved full raw message and IMAP UID/flags/body-structure metadata in evidence. GUI menu inspection shows Title, Heading, Checklist, Mark as Checked and Table disabled in this IMAP account; standard lists and font commands remain enabled. Still testing actual edits/attachments and reverse-direction behavior; enabled controls alone are not evidence of round-trip support.
AP3 decided (kayg, 28 Oct): Siri, Spotlight and Apple Notes (IMAP) see exactly what search sees. Anything carrying the existing
hidden:frontmatter property stays out of all of them. Search > "Show all hidden items" only SHOWS hidden items faded in our app; it never removes the property, so they still don't reach Apple Notes or Siri. Only an explicit Unhide (context menu, or the left-to-right swipe) removes the property, and only then does the note sync out and get indexed. Removing a hide must also remove the note from Apple Notes and the index on the next sync.Confirmed feature results after resolving the self-signed certificate prompt: GUI-created PNG and PDF attachments are both written as multipart/related messages, with HTML application/x-apple-msg-attachment objects referencing MIME Content-IDs. Bold text becomes , and a GUI bulleted list becomes
Reverse direction matters: an externally APPENDed HTML note rendered its heading, HTML checkbox inputs, table, web link, note-scheme link and CID image in the IMAP editor. The new note appeared at the first GUI observation about 1.1 seconds after APPEND. These HTML controls are distinct from Notes' disabled native Checklist/Table authoring commands. Editing that imported note in Notes produced new UID 116, replacing external UID 115; preservation details and checkbox semantics are being checked.
Further measured results: external replacement preserved the note UUID, changed UID 114 to 117, and appeared in the GUI at the first observation (under 1 second after the external command returned). Editing the externally supplied rich HTML in Notes changed UID 115 to 116 and preserved its heading, table, links, and PNG bytes; Notes normalized the table with tbody and rewrote img into an attachment object.
HTML checkbox limitation: the second checkbox visibly became checked when clicked, but after editing text and saving, its serialized input still had no checked attribute. The original first checkbox retained checked="". Rendered checkbox state is therefore not a lossless native checklist representation.
Conflict probe: GUI edit finished at 16:57:47.876 UTC; external APPEND completed 0.169 seconds later, replacing UID 118 with 119. Notes then wrote UID 120 with the GUI edit and removed the competing server version. After 14 seconds there was one note, with the GUI marker and no server marker; no duplicate or conflict dialog. This is one observed pending-local-edit race, not a claim about all conflict orderings.
Spotlight: mdfind returned no note records for either the IMAP note or the On My Mac control, after excluding the job's own evidence files. A text-file positive control was indexed and found, and mdutil reports indexing enabled. The test shows no mdfind discoverability for either note account in this VM; it does not establish that Spotlight's separate UI/Core Spotlight cannot search them.
Attachment byte validation found an important PDF edge case. The GUI-attached ASCII PDF fixture was 599 bytes. Notes sent it as application/pdf with Content-Transfer-Encoding: 7bit, converting every LF to CRLF; the decoded server part is 631 bytes and exactly equals that newline conversion. qpdf 12.3.2 reports the original has no syntax or stream encoding errors; the Notes-emitted PDF reports "file is damaged", "xref not found", and reconstructs the cross-reference table. The PDF is offered and stored, but this fixture does not survive byte-for-byte. Do not generalize this to ordinary binary PDFs, which were not tested.
Both the GUI-attached PNG and the externally imported PNG after a Notes edit retained exactly the original 209 bytes (SHA-256 c29de0e15931b2082f795ce5449c0ede5763159f08b3958c7a5fc4e567b2ce58).
Typing a web URL in this IMAP editor left plain URL text on the wire in this configuration; externally supplied HTML anchors rendered and survived editing. Typing >> left literal escaped text, with no native note-link picker. Native Title, Heading, Checklist, Table and Pin commands remained unavailable.
Cleanup verified: test Internet Account removed; local Spotlight control note permanently deleted; temporary certificate and trust removed; IMAP server and VM forward stopped; macos-01-std restored to stopped. Only evidence remains in the two remote job directories. Notes automatically switches to an empty On My Mac account when its last Internet Account is removed.
Finished notes-imap-probe for #543. Feature test only; no product changes, pushes, merges or deployments. Head SHA: not applicable (no Git checkout or commits).
Full result.md · Raw messages and metadata · Gate output
The tested IMAP editor offers plain text, bold, standard lists, image/PDF attachments, folders and nested folders. Native Title/Heading, Checklist, tags, note links, Table, drawing controls and pinning are unavailable. Externally supplied rich HTML can still render headings, tables, checkbox inputs, anchors and images, and most of it survives a Notes text edit.
Two losslessness limits were reproduced: clicking an imported HTML checkbox changes its display but loses that changed checked state on save/reselect; the 599-byte ASCII PDF became 631 bytes through LF-to-CRLF conversion in a 7bit MIME part, damaging xref offsets. PNG payloads stayed byte-identical. Typed URLs remained plain text in this configuration, while imported HTML anchors persisted.
Updates replace messages with new UIDs while retaining the note UUID. External creation and replacement appeared at first observations within 1.13 and 0.97 seconds respectively. In the tested race, Notes' pending local edit removed the competing server version; one note survived, with no conflict dialog. mdfind found neither IMAP nor local note records, although a file positive control worked; Spotlight UI behavior remains untested.
The report includes exact versions, all feature rows, raw header/MIME/HTML samples, timings, conflict evidence and bridge mapping limits. Local evidence is about 18.2 MB at /home/kayg/codex-jobs/notes-imap-probe/evidence/. Test account, local control note, certificate trust and services were removed. Both remote job directories contain only evidence. The VM was restored to stopped. The issue remains open.
Checkbox immediately after clicking and editing:
After reselecting the saved note:
Native IMAP format menu:
Gate output verbatim:
iPhone check by kayg, 28 Oct 23:27 IST (iOS 27, real device): Siri finds notes stored in an IMAP (non-iCloud) Notes account. Asked about the made-up word, Siri answered "I found two notes about Raycast: 'zubrovka finds spotlight in the raycast' and …", i.e. it searched the IMAP note's text and returned it alongside an iCloud note. So IMAP notes sync from Calternal gives Siri context over Calternal notes, before any native app exists.
Also confirmed on the phone: the IMAP note editor shows a typed "- [ ] test" as plain text, not a checklist, matching the macOS probe (no native checklists in IMAP accounts; Calternal must write checkboxes as HTML).
Design plan ready for review: Plan: Apple Notes over IMAP (#543), into
devfromdocs/imap-notes-plan.docs/plans/0543-imap-notes.mdcovers the requested sizes, reversible Markdown/HTML mapping with a private versioned companion, IMAP IDLE/CONDSTORE/QRESYNC and UID validity, pending-edit conflicts preserved in server history, echo suppression, hidden-content exclusion, operation budgets, failure cases, per-device app passwords, tests and ordered slices. Scale tests are required in the first code PR; real Apple Notes acceptance runs on macos-01-std before release.The macOS 27 findings are explicit constraints: checkbox state is read-only, attachments use base64 and decoded-byte verification, and Apple replacement deletes cannot discard newer server work. The two-second online gate includes actual client fetch/render and MIME bytes, with Apple debounce and slow-link limits stated.
Validation: documentation-only scope and local links checked;
git diff --cached --checkpassed; temporary A4 rendering fits four pages at 10.5-point text. No product code, builds, native tests or deploys. Head:a4230326.kayg referenced this issue2026-11-05 23:21:12 +00:00