calternaldav contacts 1: lossless contact note ⇄ vCard converter #645
Closed
opened 2026-10-20 14:17:09 +00:00 by kayg
·
81 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#645
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?
calternaldav, contacts slice, piece 1 (kayg 2026-10-20: "small, atomic, testable, break-tested bits"; decisions C1–C8 and D1–D19).
A pure library (no server, no network): a contact note in
Contacts/<Name>.md(format: calternal-contact) ⇄ vCard, with no data lost either way.Research: calternal-research/dav-v0/contacts-vcard.md, calternal-research/dav-profiles/APPLE-TESTS.md.
Starting issue #645 on issue/645-vcard in /home/kayg/Developer/calternal-wt-vcard. Base origin/dev:
1f445a3829. I will build a standalone contact format library, preserve original wire bytes, test edits and Apple rewrites, and run the requested workspace gates. No PR, merge or deployment.Findings from the research and current tree:
Implementation and break-test findings:
First workspace gate pass: cargo fmt --check passed. Clippy found two collapsible nested if statements in the new crate (merge.rs UID protection and version.rs photo data URI mapping). Both are fixed using let chains. The first workspace test build is still running under a build slot with four compiler jobs; no unrelated code has been changed.
Additional break tests cover real text replacements in frontmatter while keeping the old raw block, both ADR examples, new and edited note stability, reordered field entries, incorrect value tags, and GEO edits that retain the coordinate's decimal precision and structured semicolon. GEO must be structured in 3.0 and a URI in 4.0; treating the 3.0 pair as plain text would wrongly escape its separator on edit.
Finished on issue/645-vcard. Head:
7b23d64e52. The branch is pushed; no PR, merge or deployment.Built calternal-contacts as a pure shared format crate: byte-preserving vCard 3.0/4.0 parsing, typed contact inventory, Markdown read/write, isolated field edits, inline attachment/cover photos and snapshot-based Apple rewrite merging. Canonical notes use an ordered JSON flow list in YAML frontmatter, a name heading and a base64 raw block. ADR 0061 gives two complete examples. Imported UID stays separate from calternal-id; new UID is the deep-link id.
25 contact tests passed, with eight synthetic client profiles and 1,280 generated cases. The large cases cover 10 MB photo bytes and 10,000 properties. Whole workspace: 656 passed, 2 ignored. Formatting, Clippy with warnings denied and workspace tests all passed. The complete final gate output follows verbatim in consecutive comments.
Limits are explicit: original-version export is the byte-identical archival route; default 3.0 changes defined wire mappings for 4.0 imports. The initial note reader accepts the documented YAML subset, rather than arbitrary YAML/prose. Ambiguous repeated ungrouped client merge occurrences return a conflict. No native-client application test is claimed for these authored fixtures.
The earlier 4.0 default and claim that URI photos fail are contradicted by the owner's Apple round-2 observations. This slice also keeps embedded photos in the note rather than forcing a separate file on every import.
Final speed measurement (same machine, optimized build, allocations and both conversions included; 1,000 contacts cycle through the eight profiles). Scheduling outliers remain visible in these wall times:
Final gate output for
7b23d64e52, part 1/4, verbatim:Final gate output for
7b23d64e52, part 2/4, verbatim:Final gate output for
7b23d64e52, part 3/4, verbatim:Final gate output for
7b23d64e52, part 4/4, verbatim:Starting format round 2 on branch issue/645-vcard-format2, base
7b23d64e52. Keeping the lossless parser and Apple merge engine; replacing the note layout, moving original bytes into an explicit caller-stored value, updating corpus tests and ADR 0063. The overriding format in this job is the source of truth.Finding: the lossless parser/exporter already copies unchanged raw occurrences, including folds and opaque lines. Only note serialization needs replacement. Existing merge_client rejects duplicate ungrouped property names (tests/apple.rs duplicate_ungrouped_occurrences_are_a_conflict_not_a_guess); keeping that explicit conflict rather than guessing occurrence identity. Stored original bytes will be supplied through OriginalCard; no raw bytes will be embedded in Markdown.
Progress: readable grouped fields and OriginalCard input/output are implemented; the corpus and property tests now supply stored originals explicitly. Added focused coverage for field mappings, single-property outgoing changes, Notes boundaries, local prose, Unicode Markdown links and phone additions. ADR has moved to 0063 with three examples. Validation is currently queued behind all three shared build slots; no other jobs or processes have been touched. Local photo edits require the caller to resolve attachment bytes through set_photo before export, rather than sending a filesystem path to the phone.
Finding: Apple cards can contain both X-ABShowAs:COMPANY and X-ADDRESSBOOKSERVER-KIND:individual (synthetic apple-macos.vcf). The note now shows one company kind, with untouched conflicting wire metadata retained in OriginalCard. ISO dates are rendered by a single helper; Apple's omit-year parameter also renders a yearless birthday while preserving the stored wire value. Photo attachment extraction is explicit and pure, including a test that blocks unresolved changed local paths from export.
Branch issue/645-vcard-format2 is pushed through
b51559d(implementation, field/layout tests and ADR 0063 in separate commits). Validation remains blocked on shared resources: the local build-slot wrapper is waiting for the active priority test train; a 45-second attempt to acquire /root/perf-vm.lock on 10.69.69.63 timed out with exit 124. An isolated crate test/benchmark run is now queued under that lock with bounded timeouts; full workspace gates remain queued locally. No locks were bypassed and no other processes were stopped.Isolated contact validation on root@10.69.69.63, holding flock -o /root/perf-vm.lock: all 36 tests passed at
b51559d(4 Apple merge, 10 hostile/property, 12 layout, 10 roundtrip). Exact synthetic Apple example output is asserted in apple_example_note_matches_the_published_layout. Verbatim test output:Release speed measurement is now compiling. Full workspace gates remain queued behind the local priority train.
Performance at
b51559don root@10.69.69.63, exclusive /root/perf-vm.lock, release build, synthetic eight-profile corpus, 1000 distinct contact ids per run. One warm-up and ten measured runs. Both directions include allocations and verify byte-identical wire output. Median combined time 78.246 ms; maximum 89.811 ms. Verbatim speed output:The isolated contact crate also passed cargo fmt --check and cargo clippy -p calternal-contacts --all-targets -j4 -- -D warnings. Verbatim lint output:
Known limits retained deliberately: ambiguous repeated ungrouped properties require explicit reconciliation; concurrent edits, UID changes and opaque client merge lines remain conflicts. Related URI identities stay URIs until the caller can resolve note paths. Local photo references require caller attachment I/O through photo_attachment/set_photo. The corpus is synthetic; live client integration and exhaustive break testing are separate work. Full local workspace gates are still queued behind the priority test train.
Finding and fix: the public typed-field API must remain usable after from_note. Retaining a note without checking subsequent field edits made to_note return stale text. Commits
e056610andf4356ddretain the read field inventory and patch typed changes into the existing note, including before a later client merge. Evidence: typed_edits_after_reading_a_note_patch_the_readable_card now checks both paths and preservation of the local section. Headf4356dd335passed all 37 contact tests, formatting and clippy on the performance VM under /root/perf-vm.lock. Verbatim complete validation and speed output for this head:Latest-head speed: 1000 contacts in both directions, median 145.548 ms, maximum 150.128 ms across ten warm runs. These replace earlier-head measurements; shared-machine timings vary. Full local workspace gates remain queued behind the priority train.
Known format gap for the independent break-testing job: phone NOTE text containing a literal H1 or H2 is rendered into the body, and note_io/body.rs treats that heading as the end of ## Notes. This can shorten NOTE on the next export, although the full text remains in the Markdown and in the caller's original snapshot. The current nested-heading test covers H3, which stays inside Notes; H1/H2 need an explicit rendering/escape policy. Recording this rather than claiming arbitrary phone prose is fully covered. Full local workspace gates are still waiting behind the priority train after more than 30 minutes.
Full workspace fallback uses root@10.69.69.63 with flock -o /root/perf-vm.lock and an exact copy of /home/kayg/codex-jobs/_lib/build-slot.sh. The local wrapper has remained queued behind the priority train for over 40 minutes; remote commands are allowed directly by the job rules. Full formatting and workspace clippy passed. The test build then failed because the VM has only a 4 GiB tmpfs /tmp, not because a test assertion failed. Root disk has only 2.3 GiB free, so no build cache was moved there. Retrying with CARGO_INCREMENTAL=0 after clearing only this job's workspace artifacts, and removing this job's cache when the bounded run finishes. Failed attempt output, verbatim, follows in parts.
Workspace attempt output, part 1/2:
Workspace attempt output, part 2/2:
The reduced-cache workspace build completed. The suite then stopped in crates/calternal/tests/attachments_crash.rs:278, a_big_upload_streams_in_bounded_memory, with BrokenPipe during the large upload. This target does not use the contacts crate. Retrying the gates with the existing documented CALTERNAL_TEST_UPLOAD_DIR knob pointing at a unique real-disk directory and CALTERNAL_TEST_UPLOAD_MB=128; no unrelated product or test code is changed. Full failed-attempt output, verbatim:
Additional known layout limits for the independent break-testing job: multiple separate CATEGORIES properties render as one tags array and currently lose their separate wire occurrences on read-back. Labels containing the delimiter colon plus space are ambiguous when that line is edited; unchanged generated lines recover their original binding. The phone NOTE H1/H2 boundary gap was recorded separately above. These cases are not covered by the passing synthetic corpus claims.
Finished vcard-format2. Branch issue/645-vcard-format2 is pushed at
f4356dd335. The worktree contains only product code, tests and lasting ADR 0063; no evidence artifacts are committed. The lossless wire engine remains in place.All gates passed with exit 0 on root@10.69.69.63 under flock -o /root/perf-vm.lock, using an exact copy of /home/kayg/codex-jobs/_lib/build-slot.sh: cargo fmt --check; cargo clippy --workspace --all-targets -j4 -- -D warnings; cargo test --workspace -j4. The local wrapper remained queued behind the priority train, so the permitted remote-run exception was used and only my own queued local wrapper PID 2995384 was stopped afterward. CARGO_BUILD_JOBS=4, CARGO_INCREMENTAL=0; the existing large-upload fixture used CALTERNAL_TEST_UPLOAD_MB=128 and a unique CALTERNAL_TEST_UPLOAD_DIR on real disk. This job's VM build cache and upload directory were removed on completion.
Workspace totals: 668 passed, 0 failed, 2 ignored. All 37 contact tests are included. Latest-head release benchmark: 1000 contacts, both directions, ten warm runs, median 145.548 ms, maximum 150.128 ms. Its full output was posted above.
Known limits are listed above: ambiguous repeated-property merges remain explicit conflicts; local photo paths need caller resolution; related URI identities need caller path resolution; phone NOTE H1/H2 boundaries, multiple CATEGORIES occurrences and edited labels containing colon plus space need the independent break-testing pass. No PR, merge, deployment or issue closure.
Gate output, verbatim, part 1/3:
Final head
f4356dd335.Gate output, verbatim, part 2/3:
Final head
f4356dd335.Gate output, verbatim, part 3/3:
Starting independent break testing on branch issue/645-vcard-breaktest, base
f4356dd335. I will judge ADR 0063 and the round 2 examples against the owner overrides, commit permanent tests and confirmed fixes, measure release speed locally, and post gate output. No PR, merge or deployment.Build scheduling blocker: the required build-slot wrapper is waiting behind the active test train (PID 2930698, observed at 55 minutes elapsed). I will keep writing independent tests while waiting and will not bypass its priority or touch other jobs. Baseline release measurement is queued before product edits.
Source findings to reproduce: name parts currently iterate N components in wire order (last, first, middle, prefix, suffix); TYPE=CELL displays cell instead of mobile; TYPE=IPHONE displays iphone; Apple's wrapped HomePage displays HomePage. These violate the explicit owner decisions.
Further source findings, with permanent reproduction tests now written:
P1: body.rs takes only the first ## Notes and truncates at any following H1/H2, so a phone NOTE containing those headings can lose its tail on an unchanged note round trip. It also searches for Notes beyond a second H1, incorrectly syncing another contact's section. The safest representable policy is to reject ambiguous phone Notes with an explaining error, reject duplicate Notes sections, and scope Notes to the first H1.
P1: CRLF note content is compared directly with LF-decoded NOTE, introducing carriage returns into the outgoing value. Duplicate single facts (including two first-name entries) can overwrite a component. Tests require exact preservation or an explicit duplicate error.
P2: group headings with trailing spaces stop being recognized; labels containing ': ' are recovered during initial reading but not during later client merge, which can leave the old line and append a new one. Related names beginning with '[' bypass Markdown link rendering entirely; angle brackets in destinations and backslashes in display names need escaping.
Each finding is under independent test. Runtime confirmation is queued behind the active train; these are source-level findings until those results arrive.
Additional reproducible source findings: creating a department before a company appends a second ORG instead of filling its first component; adding multiple phone values to a new group in a CRLF note writes the group heading repeatedly because the deduplication check hardcodes LF. Both now have focused tests and fixes.
Performance work keeps exact-match precedence and occurrence queues, indexes labels by group, and avoids exporting/reparsing an already decoded imported card just to display it. It also avoids formatting every old line for colon recovery when there are no ambiguous labels or values. No losslessness assertion has been removed. Measurements and runtime results remain blocked by the active train's priority marker.
P1 source finding: deleting NOTE on the phone removes only its text from the customised note and leaves the ## Notes heading. Reading that saved note creates a new empty NOTE, reversing the deletion. A new test checks merge, saved-note reread, and exact outgoing bytes; the fix removes the synced section heading with its deleted content.
The unchanged empty-CATEGORIES case is another losslessness hole: the writer omits tags when their joined text is empty, and reading the note deletes the original CATEGORIES line. Empty visible properties now have a table-driven round-trip test.
P1 source findings from deeper merge tests: a local rename of an ungrouped phone label moves it into an Apple group; the existing key-only merge then treats a phone-side deletion as already deleted and leaves the locally renamed number without a conflict. Separately, an Apple label and its number are merged as unrelated properties, allowing both sides to edit the same displayed line without the required conflict. New tests cover label-versus-delete and label-versus-value in both directions; the fixes use canonical source bindings and detect concurrent edits to a labeled group.
P1: changing Studio to a label containing ': ' can write the remainder of the label into the phone number. Saved values and known label prefixes now recover unambiguous colon edits. If both the label and value change and the delimiter cannot be proved, the parser returns an explaining ambiguity error instead of guessing.
P2: repeated home/work values were always rejected by merge even when TYPE distinguishes them. The new merge accepts distinct TYPE signatures and still refuses indistinguishable repeats. Tests exercise reorder, add, delete, concurrent edits, and preservation of customised local text.
P2 source finding: a card with no FN is accepted by the wire parser, but rendering its empty H1 and reading it back silently adds FN:. The new test requires unchanged bytes for the nameless input and adds FN only when a user actually enters a name. This preserves tolerated input without inventing wire data.
P2 related-link findings: a colon in a text name was treated as proof that it was a URI, bypassing the required Markdown name link; an escaped closing bracket followed by '(<'' inside a name was still treated as the link delimiter when applying an edit. Tests now distinguish typed URI values from text names and exercise edits to a name containing the delimiter sequence. Link destinations encode colons and angle brackets while keeping the link relative.
P2 performance source finding: assigning each new custom label starts group allocation at calternal1, retries every existing group, and scans the whole inventory for each retry. Large hand-written cards therefore do cubic work. The allocator now starts at the current inventory size and still checks collisions; a permanent test creates and rereads 10,000 new labeled phone fields. Existing imported-label lookup is indexed separately.
Open P2 format limits, chosen conservatively under the unattended-job instruction: a valid phone NOTE containing an H1/H2 heading cannot be written as plain text inside a section that ends at the next H1/H2 without ambiguity. Rendering and merge now return an explaining error and retain the original input rather than truncate it. Repeated singleton wire views and edits where both a colon-bearing label and its value change also return explicit ambiguity errors. These guards prevent silent loss, but they do not provide successful round trips for those representations. I am not inventing an unapproved escaping format; these limits will be included in the merge verdict.
P3 fixed in the tests: not-a-field diagnostics now retain the original trailing whitespace, while the saved note stays byte-identical.
P1 source finding: when multiple same-label values are edited in a note, the reader pairs them with old properties by occurrence order even though a reorder cannot be ruled out. This can move hidden parameters to the wrong value. A test uses two home numbers with distinct hidden X-USER parameters: changing both must report an occurrence conflict; changing only one must patch exactly that original property. Fallback binding now requires one remaining candidate instead of guessing.
Runtime evidence against untouched product code at
f4356dd: the first baseline layout run had 8 passes and 18 failures. Confirmed failures include name order and labels, H1/H2 phone Notes truncation, duplicate Notes and singleton facts, colon-label edits and subsequent merges, multiple ORG department lines, empty categories, nameless cards gaining FN:, multiline labels creating phone fields, BOM handling, whitespace/group parsing, and guessing edited occurrences. The generated tests and the large imported-card case passed on the baseline (4 tests; the combined large case took most of that 37.84-second suite).Initial local release measurement: 1,000 contacts both directions, 10 warm runs, median 117.347 ms. perf captured 1,241 samples with zero lost. The flat profile attributed 9.89% to free, 7.71% to malloc, 7.47% directly to card import and 4.12% to quoted-token splitting. A second baseline measurement was 103.042 ms under different shared-host load; final before/after will run sequentially.
First workspace gates: fmt passed, clippy passed, test stopped on my duplicate-view guard rejecting the existing macOS fixture's multi-part ORG hierarchy. That guard is fixed: one department line displays the hierarchy, unchanged imports retain all original components, and a company edit leaves them intact. A regression covers explicit department edits too.
P1 source finding: tag handling flattened a validated category list into comma-separated text. A category named 'One, Two' could be split by an unrelated tag edit, and changing list boundaries without changing joined text could be ignored. Tags now retain list boundaries internally; frontmatter remains the same readable list.
Correction to the earlier CRLF finding: the simple canonical NOTE test passed on the baseline because the exporter normalizes carriage returns. The stronger test checks original uppercase newline escape spelling and a formatting-only note followed by a phone edit; those are the relevant minimal-diff and false-conflict risks.
The ordinary build queue is now waiting behind three other browser runs holding the slots. Focused reruns, remaining baseline merge checks, and a fresh release measurement are queued. I will not bypass the slot locks or touch their processes.
Further P1 merge findings now have saved-note reread regressions: identical visible rows reused the first old binding, dropping the second row even on an unchanged client merge; changing a related person whose Markdown link used a custom relative target appended the new person without replacing the old row; adding the first card group to a photo-only note could put the photo after the card, making a reread remove PHOTO. Simultaneous grouped phone/photo additions had the same ordering problem. The fixes consume each old binding once, recover related-link bindings by the retained person name, and keep photos before newly inserted card groups.
All 89 contact tests passed after fixing the first fast-render regression. New regressions and further performance work are still being checked. The most recent completed release median was 76.066 ms, so the 50 ms target is not yet met. No passing speed claim is being made.
P1 final date finding: starting from BDAY;CALSCALE=chinese;X-APPLE-OMIT-YEAR=1604:16040314, the note shows --03-14. Editing it to 2000-03-14 changed the value but retained the omit-year flag, so a fresh phone-to-note import hid the entered year again. The fix removes only that flag when the birthday edit supplies a year; the calendar and unrelated wire lines remain intact. A regression covers both compact and dashed Apple anchor dates.
The earlier frozen head passed fmt, clippy with warnings denied, and 733 workspace tests. This additional confirmed defect justifies another gate run before pushing. The last final paired release measurement was 79.989 ms before and 35.022 ms after, with every unchanged wire export checked byte for byte.
Final gate at head
f58f5059af: cargo fmt --check exited 0. The command produced no output.Final gate at head
f58f5059af: cargo clippy -j4 --workspace --all-targets -- -D warnings exited 0. Complete output quoted verbatim, part 1 of 1.Final gate at head
f58f5059af: cargo test -j4 --workspace exited 0. Complete output quoted verbatim, part 1 of 3.Final gate at head
f58f5059af: cargo test -j4 --workspace exited 0. Complete output quoted verbatim, part 2 of 3.Final gate at head
f58f5059af: cargo test -j4 --workspace exited 0. Complete output quoted verbatim, part 3 of 3.Finished independent break testing and pushed issue/645-vcard-breaktest.
Base:
f4356dd335Head:
f58f5059afThe remote branch was checked and matches this head. No PR was opened. The issue remains open.
P1 fixed: silent loss around Notes boundaries and duplicate values; wrong occurrence and related-link bindings; same-line edit/delete conflict gaps; photo placement that removed PHOTO on reread; category list-boundary loss; and an entered birthday year being hidden again by Apple's omit-year flag. Ambiguous representations now fail explicitly rather than lose input.
P2 fixed: human name order and user-facing labels, composite labels and custom casing, Markdown links and escaped delimiters, BOM and whitespace handling, CRLF false conflicts, ORG hierarchy display, nameless/empty-property round trips, distinct repeated TYPE matches, and extension parameter restoration order.
P3 fixed: not-a-field diagnostics retain the original whitespace.
Open P2 limits: phone Notes containing H1/H2 headings, repeated singleton wire views, and genuinely ambiguous label/value edits return explaining errors and retain the inputs. Those cases do not yet have successful round trips under this format.
Validation: 734 workspace tests passed, 2 ignored; 103 contact tests include 66 new permanent break tests. The two new proptests run 4,096 generated cases in total per run. Stress cases include more than 1 MB of note text, 10,000 visible fields, 10,000 newly typed labels, and a 10 MB photo. Vendor cards are synthetic; no real-device claim is made.
Final paired release measurement at this head, 1,000 contacts both directions, ten warm runs: before median 76.147 ms; after median 36.193 ms, maximum 44.824 ms. Every unchanged export was checked byte for byte. Both perf captures completed; reports and raw measurements remain outside the repository. Local prerequisites installed were linux-perf, pkg-config and libssl-dev.
All three gates exited 0. Their complete output is quoted verbatim in comments 61203 through 61207 at this head.
Merge verdict: HOLD until the open representation limits are resolved. The safety fixes, tests and speed improvement are ready for review.
Starting the approved format decisions N1, N2 and N3 on branch issue/645-vcard-format3. Base SHA:
f58f5059af. I will update ADR 0063, add permanent regression and property tests, measure the 1,000-contact conversions, and run the requested gates. No PR, merge or deploy.Confirmed the three open limits from break-test report 61209 in the base source: note_io/body.rs ends Notes at the next H1/H2; note_io.rs validate_views rejects headings in NOTE and repeated single-fact views; recover_entries and unique_unused return ambiguity errors. merge.rs also returns errors for repeated occurrences and concurrent edits. The changes replace these paths with the owner's N1-N3 decisions, preserve explicit failures for unrepresentable malformed input, and add caller-owned ReplacedLines and quiet MergedFromPhone data. The shared build-slot wrapper is currently waiting behind an active test train; no slot policy is bypassed.
A second occurrence problem was in note_io/fields.rs add(): every newly typed company or department reused the first ORG property. Repeated company lines would silently overwrite it even after removing the duplicate-field rejection. New ORG components now fill only a missing component, then create a separate occurrence. Removing all visible components of one ORG removes that occurrence. Permanent tests cover imported and hand-typed pairs of nicknames, companies/departments, titles and birthdays, preserving per-occurrence X-ORDER metadata through edits and deletes.
The Notes examples now put Calternal Projects before Notes. A section manually written after Notes is explicitly phone text. The former heading, duplicate-singleton, label/value ambiguity and concurrent-edit rejection tests have been converted to successful outcomes under N1-N3, retaining malformed-input rejection tests.
The first perf-VM contact run compiled and exercised the permanent tests. It exposed older test fixtures that placed local sections below Notes; those fixtures are now moved above Notes where they are intended to stay private. The extended generator also found its no-email case was inserting private prose after Notes rather than into the card; that generator placement is corrected. A new regression caught an extra blank separator when an ambiguous Notes value was removed and then appended. Whole-group replacements now patch the original range in place, preserving the surrounding local section bytes. The other former rejection cases and the repeated-single-fact edit/delete tests passed this run. The full rerun is queued under the perf lock; local gates are still waiting for the active train.
Code inspection found two additional occurrence traps within N2/N3. Exact-value matching before occurrence matching could attach an edit to the sibling when a repeated single fact was edited to the sibling's value. Same-length single-fact lists now bind by line order before exact matching; indistinguishable deletions use the phone group and return the old lines. Also, recover_entries collected colon-bearing rendered lines into a map with one value per key. Two distinct label/value pairs can render as the same line, for example Desk + east: 123 and Desk: east + 123. That map now retains an ordered queue of occurrences; an indistinguishable deletion takes the phone group. Permanent regressions cover both paths and verify the untouched hidden occurrence parameters and neighboring edits.
Validation is temporarily blocked by shared resource queues. The local build-slot wrapper is waiting for the active test train (PID 3732695; about 22 minutes elapsed, four of nine browser shards completed). The final perf-VM validation and benchmark are queued with flock -o /root/perf-vm.lock behind another approved run. No process was killed and no lock was bypassed. I also checked staging as an alternative: disk is 23%, but no Rust toolchain is installed, so I left it untouched. The requested workspace gates are queued through /home/kayg/codex-jobs/_lib/build-slot.sh as specified; it uses the same three global slot locks as the scratchpad wrapper. I will continue when the existing jobs release these resources.
The ORG regressions now cover a shared-wire detail of N2/N3: company and the whole department hierarchy are separate note facts even though they share ORG. Concurrent changes to those distinct facts merge independently, including added/deleted ORG properties. For changed companies combined with ORG deletions, a unique unchanged department anchors the occurrence. Only when the wire occurrence remains truly ambiguous for both facts do both affected kinds take their phone values, each with its own ReplacedLines and MergedFromPhone data. This prevents a company fallback from silently discarding an independently edited department. ADR 0063 documents that case. These additional permanent regressions are part of the queued final run.
The final occurrence review found two related N3 edges. Inventory matching compared all parameters before accepting an unchanged value, so a client that omitted extension parameters could make a uniquely identifiable deletion look ambiguous. A unique unchanged value now anchors that occurrence, and the matched occurrence's extension parameters are restored. Conversely, deleting one of two identical repeatable rows with different hidden parameters is truly ambiguous; it now returns the phone group and the exact old lines instead of selecting the first occurrence. Permanent regressions cover both. Repeated KIND occurrences within the chosen wire kind spelling now also render as repeated single-fact lines rather than hiding later occurrences; the singleton edit/delete test covers them alongside the four required fact names.
The final contact run on root@10.69.69.63 completed under flock -o /root/perf-vm.lock: all 122 contact tests passed, zero failed or ignored. This keeps the original 103 tests and adds 19 permanent regressions. The extended generated-card test now produces Notes containing H1/H2 headings, repeated Notes headings, dividers, lists and blank lines, plus repeated nicknames, ORG, titles and birthdays. Its 2,048 cases and the separate 2,048 arbitrary-input cases passed. The new regressions all passed, including ordered identical singletons, indistinguishable deletes, colon collisions, whole-group history, ORG component concurrency and dropped extension parameters. cargo clippy -p calternal-contacts --all-targets -j4 -- -D warnings also exited 0. The paired release benchmark is building under the same lock. Requested local workspace gates are still queued behind the shared train.
Final contact tests on the perf VM passed: 122 tests, zero failures. The first final release speed run was 68.817 ms median for 1,000 contacts both ways, above the 50 ms target. The earlier 36.193 ms reference was on the local host, so a same-VM base comparison is queued before drawing a regression conclusion. The required local benchmark and workspace gates remain queued behind the shared train. Full VM speed output follows verbatim:
A final review of the new value-anchor fallback caught an ordering trap before the workspace gates: it tried each row's value fallback immediately after that row's failed exact match. With an existing TITLE;X-ORDER=original:Same and a returned parameterless Same row before the exact original row, the new row could take the original binding and duplicate its hidden parameter. Inventory matching now completes exact matches across the entire group before attempting unique-value anchors. The added regression covers TITLE, TEL and NICKNAME, plus an identical-value deletion whose retained parameter identifies the right occurrence. This is the twentieth new regression; the earlier 122-test VM pass predates this last correction. The queued local package and workspace tests will validate the final source.
The shared local train has finished and the requested gate chain has acquired a build slot. cargo fmt --check exited 0. cargo clippy --workspace --all-targets -j4 -- -D warnings is compiling dependencies, followed by cargo test --workspace -j4 and the local book_speed release benchmark. Final source contains the original 103 contact tests plus 20 new regressions. The final gate output will be quoted verbatim at the pushed head. The paired base/final VM measurement is still queued under its lock.
Final gate output at
681b577b6d, fmt, part 1 of 7, verbatim:Final gate output at
681b577b6d, clippy, part 2 of 7, verbatim:Final gate output at
681b577b6d, test, part 3 of 7, verbatim:Final gate output at
681b577b6d, test, part 4 of 7, verbatim:Final gate output at
681b577b6d, test, part 5 of 7, verbatim:Final gate output at
681b577b6d, test, part 6 of 7, verbatim:Final gate output at
681b577b6d, test, part 7 of 7, verbatim:Finished and pushed issue/645-vcard-format3.
Head:
681b577b6dBase:
f58f5059afThe remote branch was checked and matches this head. No PR was opened, no merge or deployment was performed, and the issue remains open. The worktree is clean.
N1: Notes owns the file tail, with phone headings, dividers, lists and blank lines preserved. Local sections stay above Notes; a hand-written section below it is phone Notes. N2: repeated single facts have separate property occurrences, ordered bindings and correct edit/delete handling. N3: ambiguous kinds take the phone values and return exact ReplacedLines plus quiet MergedFromPhone notices. Unrelated kinds still merge line by line. ADR 0063 and its examples describe all three decisions.
Validation: 123 contact tests passed, keeping the original 103 and adding 20 permanent regressions. All proptests passed, including the extended headings/repeated-singleton generator and the two 2,048-case generated suites. Workspace totals: 754 passed, zero failed, 2 ignored. Formatting, workspace Clippy with warnings denied, and workspace tests each exited 0. Complete gate output is quoted verbatim in comments 61387 through 61393 at this head.
Speed on the local host used by report 61209: 1,000 contacts both ways, ten warm runs, median 44.345 ms, maximum 58.127 ms. The median meets the 50 ms limit. Every unchanged export was checked byte for byte. Full local speed output follows verbatim.
The earlier separate perf-VM run was 68.817 ms median and is reported in comment 61340; no 50 ms claim is made for that different host. I discarded the shared-target comparison because the base could reuse compiled artifacts. The independent base comparison was still queued after the required local gates and speed check passed, so I stopped only my recorded waiter (PID 1181760, verified start time and no children) before it started any work. No other process was stopped. Evidence and build artifacts remain outside the repository.
Independent re-audit starting. Review branch: issue/645-vcard-format3 at
681b577b6d; comparison base: origin/issue/645-vcard-breaktest atf58f5059af.P2 finding: a repeated identical sync returns an old MergedFromPhone notice again. I tested a sent card with TEL values 123 and 789, local edits to the first phone line and the email line, and a phone response with one TEL value 456. The first merge correctly replaced only the phone group, preserved the local email, and returned the exact prior phone lines. I then merged the identical rebased card against itself. Its exported bytes and note text were unchanged, but notices still contained MergedFromPhone { kind: phone }. This comes from carrying the prior Contact notices into the next merge result and violates the requested no notice on a second identical sync. The scratch test is crates/contacts/tests/zz_reaudit_format3.rs, test ambiguous_phone_group_replacement_keeps_other_group_edits_and_is_idempotent.
P3 finding: the existing proptest does not generate several requested break shapes. Its Notes choices include a nested ## Notes line and a bare ---, but no fenced block with a heading inside, trailing whitespace, a five megabyte value, or a Notes value without a final newline. Its CRLF option changes the whole Markdown line ending, not the Notes body shape. The singletons vector can repeat fields, but the strategy does not force three to five repetitions or perform a middle deletion and two edits. The deterministic scratch tests cover these cases, and all of those round trips and occurrence checks passed.
Gate output at head
681b577b6d.cargo fmt --check exited 0 and produced no output.
cargo clippy --workspace --all-targets -j4 -- -D warnings exited 0. Output follows verbatim:
Gate output at head
681b577b6d.cargo test --workspace -j4 exited 101 because the requested scratch idempotence test fails. Output follows verbatim:
Independent re-audit finished at head
681b577b6d. The review base wasf58f5059af.P1: none.
P2: a second identical sync repeats an old MergedFromPhone notice. Failing input: the sent card has two phone values, 123 and 789; the local note changes the first phone and email; the phone returns one phone value, 456, with the base email. The first merge correctly replaces only the phone group, keeps the local email, and returns every old phone line. Merging the resulting card against itself leaves card bytes and note text unchanged but returns the phone notice again.
P3: the existing proptest does not force the requested fenced heading, trailing spaces, large Notes, missing final newline, three to five repeats, middle deletion, or two edits. The deterministic checks below cover them.
N1 passed all requested Notes round trips, section placement, CRLF, and five megabyte input checks. N2 passed three to five repeats, middle deletion, reorder, and two edits. N3 passed first merge group isolation and exact ReplacedLines, but the repeated sync notice fails. Release speed was 37.503 ms median for 1,000 contacts both ways over ten warm runs.
Gates: formatting passed; Clippy passed; workspace tests stopped at the failing scratch idempotence assertion. Verbatim gate output is in comments 61430 and 61431.
Merge verdict: HOLD until the repeated sync returns no old notice. No product files were changed or committed. Scratch tests and the review worktree were removed; the issue remains open.
Starting vcard-fix4 on branch issue/645-vcard-format3 at head
681b577b6d, using review base SHAf58f5059af.P2 finding update: merge_client_groups cloned the previous contact, so the next sync carried forward its old notices and replaced_lines. The permanent regression test failed before the fix at the second sync assertion (second.notices.is_empty). After clearing sync metadata on each merge and recording replacements only when existing note lines actually change, the same targeted test passes. It also checks that three identical syncs leave the notice count at one and keep exported bytes and note text unchanged.
Progress is blocked temporarily by local capacity: the required fixed-seed test is queued through the shared build-slot wrapper, but all three slots are currently occupied. No local build has started yet. The source and test changes are ready; I will resume the requested gates and release measurement as soon as the wrapper obtains a slot.
Performance finding: the release example on the perf VM, with /root/perf-vm.lock held, measured 1,000 contacts in both directions over ten warm runs. The reported median was 62.649 ms and maximum was 74.309 ms, above the 50 ms target. The code path is not the merge-notice path; I am repeating the same measurement under the lock to check run variance before deciding whether a product change is needed.
Performance recheck: the second locked release run reported a 73.342 ms median and 115.228 ms maximum for 1,000 contacts both ways. The subsequent locked VM sample reported load averages 1.67, 2.11, 1.92 on four vCPUs. The benchmark exercises vCard/note conversion, not merge_client or replace_note_group. Both locked runs are above 50 ms; the earlier re-audit run at the reviewed head was 37.503 ms. I will include the current results in the finish report.
P3 finding update: the permanent proptest generator now covers fenced Notes with heading lines, nested ## Notes, dividers, trailing spaces, missing final newlines, CRLF, one to five repeated single facts with deletes, reorders and edits, and simultaneous phone/email edits. The fixed-seed test samples 256 shapes and passes its minimum counts (at least 64 for each Notes and group-edit flag, at least 20 per repeat count, and at least 16 per repeated-fact operation). The 2,048-case generated round-trip property also passes. A dedicated 5,000,000-byte Notes test is in the workspace suite; that gate is still pending.
Workspace gate note: one full run failed in the unrelated calternal-notes test review_fuzz_old_new_bytes_history_versions_and_restarts at seed 21 with "history write failed". The focused rerun passed all 24 seeds, 2,424 saves and 264 restarts, with the differential checks agreeing. The first full workspace run also passed. I am rerunning the full gates after formatting.
Performance update: the final release run held /root/perf-vm.lock and measured 1,000 contacts in both directions over ten warm runs. At VM load averages 1.00, 1.35, 1.58 on four vCPUs, it reported a 39.948 ms median and 43.416 ms maximum, meeting the 50 ms target. The two earlier locked runs were noisy and above target (62.649 ms and 73.342 ms medians) while the measured VM load was higher.
Finished vcard-fix4 on branch issue/645-vcard-format3 at head
f7514d2acd. The branch is pushed.Release check: 1,000 contacts both ways over ten warm runs measured a 39.948 ms median and 43.416 ms maximum on the locked perf VM. Earlier noisy runs measured 62.649 ms and 73.342 ms medians; the final run met the 50 ms target.
An earlier workspace attempt hit a transient history write failure in an unrelated calternal-notes fuzz test. Its focused rerun and the final workspace run passed.
cargo fmt --check exited 0 and produced no output.
cargo clippy --workspace --all-targets -j4 -- -D warnings exited 0. Output follows verbatim:
cargo test --workspace -j4 exited 0. Output follows verbatim:
Landed in train AO, #653.
Train AO ran the full suite at
80f0516(run ao4): fmt, clippy, workspace tests, the build, svelte-check, every Playwright project in parallel shards: admin 39, cr1440 298, cr390 233+197, wk1440 136+162, wk390 141+180+112, small 19 — all passed, 0 failed.Earlier runs: ao1 failed notes_crash kill_nine_never_loses_or_doubles (500); ao2 and the shard rerun ao3 had scattered browser crashes and ENOSPC. Cause: the build host's /tmp tmpfs was 87% full and / was 98% full (host cleanup, not a code issue). The 500 is tracked on #652 (history write failing with SQLITE_FULL; fix in review). This train changes no web or server code.
Contents (#645, ADR 0063):
Closing during the 26 Oct handover cleanup: Landed in train AO (#653).