Saves copy the whole last-saved note (sync_title): cost grows with note length #570

Closed
opened 2026-10-18 07:22:56 +00:00 by kayg · 11 comments
Owner

Follow-up from #527 / PR #529. Every save still copies the last saved version of the note in save.rs::sync_title, which has the same quadratic yrs cost as the old append path, but once per save instead of per append. Cache the saved text, or derive the title without a full copy, keeping identical results and crash safety. Measure save p50/p95 at 100, 1k and 3.5k lines before and after.

🤖 Generated with Claude Code

Follow-up from #527 / PR #529. Every save still copies the last saved version of the note in `save.rs::sync_title`, which has the same quadratic yrs cost as the old append path, but once per save instead of per append. Cache the saved text, or derive the title without a full copy, keeping identical results and crash safety. Measure save p50/p95 at 100, 1k and 3.5k lines before and after. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

Starting #570 on branch issue/570-save-copy, base b42e8b9819 (origin/dev). I will measure saves before and after, remove the save-time document copy, verify equivalence, crash recovery and concurrent edits, and open a new PR into dev. No merge or deploy.

Starting #570 on branch issue/570-save-copy, base b42e8b98192c2b30b8a4b0188a01c58457d3bfa0 (origin/dev). I will measure saves before and after, remove the save-time document copy, verify equivalence, crash recovery and concurrent edits, and open a new PR into dev. No merge or deploy.
Author
Owner

Finding: sync_title reconstructs base_state with ydoc::fork on every dirty save just to read the old H1 and title. The base changes on successful save, outside ingest, seed and load recovery; the cache must follow all four. Review comment 56746 confirms actor serialization, so concurrent typing cannot interleave inside a save. Baseline build initially failed with error: linker cc not found; retrying with the installed Nix GCC wrapper on PATH. No changes to save durability ordering are planned.

Finding: sync_title reconstructs base_state with ydoc::fork on every dirty save just to read the old H1 and title. The base changes on successful save, outside ingest, seed and load recovery; the cache must follow all four. Review comment 56746 confirms actor serialization, so concurrent typing cannot interleave inside a save. Baseline build initially failed with `error: linker cc not found`; retrying with the installed Nix GCC wrapper on PATH. No changes to save durability ordering are planned.
Author
Owner

Baseline measured before the product change, release build, 50 dirty saves per size; every appended line has its own idempotency key and Yjs writer. Automatic saves, watching and automatic renames disabled. Only notes.save is timed, including durable history and file replacement. Local build-slot results:

  100 lines: save p50 0.66 ms, p95 0.86 ms, max 1.94 ms
 1000 lines: save p50 3.28 ms, p95 3.97 ms, max 4.88 ms
 3500 lines: save p50 15.49 ms, p95 21.01 ms, max 23.64 ms

The p50 grows from 0.66 ms to 15.49 ms. A second baseline is running under flock on the perf VM; its storage latency is much higher, so I will report it separately. Regression tests are queued for a shared local build slot.

Baseline measured before the product change, release build, 50 dirty saves per size; every appended line has its own idempotency key and Yjs writer. Automatic saves, watching and automatic renames disabled. Only notes.save is timed, including durable history and file replacement. Local build-slot results: ``` 100 lines: save p50 0.66 ms, p95 0.86 ms, max 1.94 ms 1000 lines: save p50 3.28 ms, p95 3.97 ms, max 4.88 ms 3500 lines: save p50 15.49 ms, p95 21.01 ms, max 23.64 ms ``` The p50 grows from 0.66 ms to 15.49 ms. A second baseline is running under flock on the perf VM; its storage latency is much higher, so I will report it separately. Regression tests are queued for a shared local build slot.
Author
Owner

The old implementation passed the 800-case saved-byte/title oracle, both real SIGKILL save-boundary cases and the paused-save concurrent-typing case. The new no-decode regression failed on the old path exactly as intended:


---- room::save::tests::title_sync_does_not_decode_the_saved_document stdout ----

thread 'room::save::tests::title_sync_does_not_decode_the_saved_document' (2084121) panicked at crates/notes/src/room/save/tests.rs:242:29:
called `Result::unwrap()` on an `Err` value: Error { code: InvalidInput, detail: "bad update: while trying to read more data (expected: 1 bytes), an unexpected end of buffer was reached" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    room::save::tests::title_sync_does_not_decode_the_saved_document

test result: FAILED. 4 passed; 1 failed; 0 ignored; 0 measured; 216 filtered out; finished in 4.38s

error: test failed, to rerun pass `-p calternal-notes --lib`

Perf VM baseline (same release binary, flock -o /root/perf-vm.lock, 50 saves per size):

  100 lines: save p50 33.97 ms, p95 50.64 ms, max 53.47 ms
 1000 lines: save p50 33.07 ms, p95 42.85 ms, max 50.57 ms
 3500 lines: save p50 54.97 ms, p95 69.19 ms, max 78.76 ms

The cache change is now implemented. It follows base_state on load recovery, durable outside ingest and successful save; pending history, atomic file placement and promotion stay in their existing order.

The old implementation passed the 800-case saved-byte/title oracle, both real SIGKILL save-boundary cases and the paused-save concurrent-typing case. The new no-decode regression failed on the old path exactly as intended: ``` ---- room::save::tests::title_sync_does_not_decode_the_saved_document stdout ---- thread 'room::save::tests::title_sync_does_not_decode_the_saved_document' (2084121) panicked at crates/notes/src/room/save/tests.rs:242:29: called `Result::unwrap()` on an `Err` value: Error { code: InvalidInput, detail: "bad update: while trying to read more data (expected: 1 bytes), an unexpected end of buffer was reached" } note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace failures: room::save::tests::title_sync_does_not_decode_the_saved_document test result: FAILED. 4 passed; 1 failed; 0 ignored; 0 measured; 216 filtered out; finished in 4.38s error: test failed, to rerun pass `-p calternal-notes --lib` ``` Perf VM baseline (same release binary, flock -o /root/perf-vm.lock, 50 saves per size): ``` 100 lines: save p50 33.97 ms, p95 50.64 ms, max 53.47 ms 1000 lines: save p50 33.07 ms, p95 42.85 ms, max 50.57 ms 3500 lines: save p50 54.97 ms, p95 69.19 ms, max 78.76 ms ``` The cache change is now implemented. It follows base_state on load recovery, durable outside ingest and successful save; pending history, atomic file placement and promotion stay in their existing order.
Author
Owner

All five new save tests now pass after the cache change:

   Compiling calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/notes)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 10.14s
     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_notes-6ac741039e501ea4)

running 5 tests
test room::save::tests::save_kill_child ... ok
test room::save::tests::title_sync_does_not_decode_the_saved_document ... ok
test room::save::tests::concurrent_typists_and_saves_converge ... ok
test room::save::tests::kill_nine_mid_save_recovers_title_and_bytes ... ok
test room::save::tests::saved_bytes_and_titles_match_the_old_copy_path ... ok

test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 216 filtered out; finished in 1.91s

First local after run:

  100 lines: save p50 0.59 ms, p95 3.72 ms, max 6.55 ms
 1000 lines: save p50 2.59 ms, p95 7.76 ms, max 8.34 ms
 3500 lines: save p50 3.30 ms, p95 5.60 ms, max 9.46 ms

At 3,500 lines p50 fell from 15.49 to 3.30 ms and p95 from 21.01 to 5.60 ms. Small-note tails were noisy on this shared host. A consecutive before/after run is underway under one perf VM lock. Workspace clippy reached an environment blocker: openssl-sys cannot discover OpenSSL because pkg-config is absent from PATH. The installed Nix OpenSSL development and library paths have been located; I will rerun the gates with those paths explicitly set.

All five new save tests now pass after the cache change: ``` Compiling calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/notes) Finished `test` profile [unoptimized + debuginfo] target(s) in 10.14s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_notes-6ac741039e501ea4) running 5 tests test room::save::tests::save_kill_child ... ok test room::save::tests::title_sync_does_not_decode_the_saved_document ... ok test room::save::tests::concurrent_typists_and_saves_converge ... ok test room::save::tests::kill_nine_mid_save_recovers_title_and_bytes ... ok test room::save::tests::saved_bytes_and_titles_match_the_old_copy_path ... ok test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 216 filtered out; finished in 1.91s ``` First local after run: ``` 100 lines: save p50 0.59 ms, p95 3.72 ms, max 6.55 ms 1000 lines: save p50 2.59 ms, p95 7.76 ms, max 8.34 ms 3500 lines: save p50 3.30 ms, p95 5.60 ms, max 9.46 ms ``` At 3,500 lines p50 fell from 15.49 to 3.30 ms and p95 from 21.01 to 5.60 ms. Small-note tails were noisy on this shared host. A consecutive before/after run is underway under one perf VM lock. Workspace clippy reached an environment blocker: openssl-sys cannot discover OpenSSL because pkg-config is absent from PATH. The installed Nix OpenSSL development and library paths have been located; I will rerun the gates with those paths explicitly set.
Author
Owner

Consecutive before/after release benchmark on root@10.69.69.63, under one flock -o /root/perf-vm.lock, 50 dirty saves per size and one fresh writer per appended line:

BEFORE
  100 lines: save p50 24.23 ms, p95 39.00 ms, max 47.66 ms
 1000 lines: save p50 24.94 ms, p95 36.61 ms, max 54.29 ms
 3500 lines: save p50 33.44 ms, p95 55.45 ms, max 95.31 ms
AFTER
  100 lines: save p50 20.90 ms, p95 26.86 ms, max 28.55 ms
 1000 lines: save p50 27.76 ms, p95 48.50 ms, max 236.46 ms
 3500 lines: save p50 20.83 ms, p95 38.97 ms, max 68.97 ms

At 3,500 lines p50 fell 37.7% and p95 fell 29.7%. The 1,000-line VM sample regressed and had a 236.46 ms outlier; storage latency varies enough that these end-to-end numbers should not be read as a guarantee at every size. The local large-note improvement was 78.7% at p50 and 73.3% at p95. The no-decode regression directly proves the title path no longer reconstructs saved state.

The environment blocker is resolved with explicit Nix GCC, OpenSSL include and library paths. cargo fmt --all --check passed. Workspace clippy with all targets and warnings denied passed:

    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 06s

The complete workspace test run is still building.

Consecutive before/after release benchmark on root@10.69.69.63, under one flock -o /root/perf-vm.lock, 50 dirty saves per size and one fresh writer per appended line: ``` BEFORE 100 lines: save p50 24.23 ms, p95 39.00 ms, max 47.66 ms 1000 lines: save p50 24.94 ms, p95 36.61 ms, max 54.29 ms 3500 lines: save p50 33.44 ms, p95 55.45 ms, max 95.31 ms AFTER 100 lines: save p50 20.90 ms, p95 26.86 ms, max 28.55 ms 1000 lines: save p50 27.76 ms, p95 48.50 ms, max 236.46 ms 3500 lines: save p50 20.83 ms, p95 38.97 ms, max 68.97 ms ``` At 3,500 lines p50 fell 37.7% and p95 fell 29.7%. The 1,000-line VM sample regressed and had a 236.46 ms outlier; storage latency varies enough that these end-to-end numbers should not be read as a guarantee at every size. The local large-note improvement was 78.7% at p50 and 73.3% at p95. The no-decode regression directly proves the title path no longer reconstructs saved state. The environment blocker is resolved with explicit Nix GCC, OpenSSL include and library paths. cargo fmt --all --check passed. Workspace clippy with all targets and warnings denied passed: ``` Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 06s ``` The complete workspace test run is still building.
Author
Owner

Finished on branch issue/570-save-copy. Head: b97d6b4909. Base: b42e8b9819.

PR into dev: #574

Title sync now uses cached saved H1/title values instead of reconstructing the saved document. Load recovery, outside ingest and successful saves keep the cache in step with the base. Durability ordering is preserved. The byte/title oracle passed all 800 seeded cases, including outside edits, reloads, Unicode, CRLF and BOM. Real SIGKILL before and after file replacement, three typists during a paused save, and the existing workspace crash suites all passed.

Final release measurements, p50 / p95 in ms, 50 saves per size:

Lines Local before Local after Perf VM before Perf VM after
100 0.66 / 0.86 0.59 / 3.72 24.23 / 39.00 20.90 / 26.86
1,000 3.28 / 3.97 2.59 / 7.76 24.94 / 36.61 27.76 / 48.50
3,500 15.49 / 21.01 3.30 / 5.60 33.44 / 55.45 20.83 / 38.97

The VM runs were consecutive under one flock. Small-note tails and VM storage latency varied; the VM 1,000-line after run included a 236.46 ms outlier. At 3,500 lines, local p50/p95 fell 78.7%/73.3%, and VM p50/p95 fell 37.7%/29.7%. These results do not establish an improvement at every size.

All final gates ran through the required local build slot with cargo -j4 and CARGO_TARGET_DIR=/home/kayg/Developer/calternal-target-570. Installed Nix GCC and OpenSSL paths resolved the initial environment failures. Final gate output verbatim:

cargo fmt --all --check: exit 0
cargo clippy --workspace --all-targets -- -D warnings: exit 0
cargo test --workspace: exit 0

Workspace totals: 496 passed, 0 failed, 2 ignored, across 57 result groups. No merge, deploy, issue closure or evidence files committed. The worktree is clean.

Final gate logs, verbatim

cargo fmt --all --check produced no output.

cargo clippy --workspace --all-targets -j4 -- -D warnings:

    Checking serde v1.0.229
    Checking tracing v0.1.44
    Checking tokio v1.53.2
    Checking thiserror v2.0.21
    Checking ref-cast v1.0.27
    Checking futures-util v0.3.34
    Checking zerocopy v0.8.62
    Checking schemars v1.2.3
    Checking zerofrom v0.1.8
    Checking yoke v0.8.3
    Checking calternal-fsio v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/fsio)
    Checking zerovec v0.11.8
    Checking serde_urlencoded v0.7.1
    Checking axum-core v0.5.6
    Checking tinystr v0.8.4
    Checking icu_locale_core v2.3.0
   Compiling openssl-sys v0.9.117
    Checking potential_utf v0.1.6
    Checking zerotrie v0.2.5
   Compiling icu_properties_data v2.3.0
   Compiling icu_normalizer_data v2.3.0
    Checking utf8_iter v1.0.4
    Checking regex-syntax v0.8.11
    Checking icu_collections v2.3.0
    Checking calternal-core v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/core)
    Checking tokio-util v0.7.20
    Checking ppv-lite86 v0.2.21
    Checking hyper v1.12.0
    Checking calternal-store v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/store)
    Checking rand_chacha v0.9.0
    Checking rand v0.9.5
    Checking calternal-engine v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/engine)
    Checking tower v0.5.3
    Checking tungstenite v0.29.0
    Checking async-compression v0.4.50
    Checking hyper-util v0.1.21
    Checking icu_provider v2.3.1
    Checking inotify-sys v0.1.8
    Checking crossbeam-utils v0.8.23
    Checking tower-http v0.6.11
    Checking event-listener-strategy v0.5.4
    Checking tokio-tungstenite v0.29.0
    Checking minimal-lexical v0.2.1
    Checking axum v0.8.9
   Compiling thiserror v1.0.69
    Checking same-file v1.0.6
    Checking hashbrown v0.14.5
    Checking walkdir v2.5.0
    Checking nom v7.1.3
    Checking arc-swap v1.9.2
    Checking dashmap v6.2.1
    Checking async-lock v3.4.2
    Checking inotify v0.11.5
    Checking notify-types v2.1.0
    Checking smallstr v0.3.1
   Compiling thiserror-impl v1.0.69
   Compiling synstructure v0.13.2
    Checking rusticata-macros v4.1.0
    Checking notify v8.2.0
    Checking yrs v0.28.0
    Checking calternal-server v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/server)
    Checking icu_normalizer v2.3.0
    Checking icu_properties v2.3.0
    Checking sha2 v0.11.1
   Compiling asn1-rs-impl v0.2.0
    Checking hashbrown v0.16.1
   Compiling asn1-rs-derive v0.5.1
    Checking similar v3.2.0
    Checking fnv v1.0.7
    Checking unicode-segmentation v1.13.3
    Checking idna_adapter v1.2.2
    Checking num-integer v0.1.47
   Compiling pastey v0.1.1
    Checking foreign-types-shared v0.1.1
   Compiling oid-registry v0.7.1
    Checking base64 v0.21.7
   Compiling openssl v0.10.81
    Checking foreign-types v0.3.2
    Checking num-bigint v0.4.8
    Checking calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/notes)
    Checking base64urlsafedata v0.5.5
    Checking idna v1.1.0
   Compiling openssl-macros v0.1.1
   Compiling webauthn-attestation-ca v0.5.5
    Checking asn1-rs v0.6.2
    Checking url v2.5.8
    Checking calternal-plugin-hello v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/plugin-hello)
    Checking half v2.7.1
    Checking der-parser v9.0.0
    Checking base64 v0.23.1
   Compiling webauthn-rs-core v0.5.5
    Checking x509-parser v0.16.0
    Checking serde_cbor_2 v0.13.0
    Checking webauthn-rs-proto v0.5.5
    Checking hex v0.4.3
    Checking sha1 v0.11.0
    Checking tungstenite v0.30.0
   Compiling ring v0.17.14
    Checking tokio-tungstenite v0.30.0
    Checking regex-automata v0.4.18
    Checking zeroize v1.9.1
    Checking rustls-pki-types v1.15.1
    Checking sharded-slab v0.1.7
    Checking webauthn-rs v0.5.5
    Checking calternal-auth v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/auth)
    Checking tracing-log v0.2.0
    Checking getrandom v0.2.17
    Checking thread_local v1.1.10
    Checking nu-ansi-term v0.50.3
    Checking untrusted v0.9.0
    Checking matchers v0.2.0
   Compiling rustls v0.23.46
    Checking tracing-subscriber v0.3.23
    Checking web-time v1.1.0
    Checking subtle v2.6.1
    Checking imagesize v0.14.0
    Checking cfb v0.14.0
    Checking webpki-roots v1.0.9
    Checking ureq-proto v0.6.4
    Checking utf8-zero v0.8.1
    Checking calternal-search v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/search)
    Checking infer v0.22.0
    Checking tempfile v3.27.0
    Checking wait-timeout v0.2.1
    Checking bit-vec v0.10.1
    Checking quick-error v1.2.3
    Checking rusty-fork v0.3.1
    Checking bit-set v0.11.1
    Checking calternal-attachments v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/attachments)
    Checking calternal-daily v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/daily)
    Checking calternal-prefs v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/prefs)
    Checking calternal-migrate-v0 v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/migrate-v0)
    Checking rand_xorshift v0.5.0
    Checking unarray v0.1.4
    Checking core_detect v1.0.0
    Checking futures-executor v0.3.34
    Checking proptest v1.12.0
   Compiling async-stream-impl v0.3.6
   Compiling webauthn-authenticator-rs v0.5.5
    Checking futures v0.3.34
    Checking tokio-stream v0.1.19
    Checking serde_bytes v0.11.19
   Compiling num-derive v0.4.2
    Checking rustls-webpki v0.103.15
    Checking async-stream v0.3.6
    Checking bitflags v1.3.2
    Checking calternal-fixtures v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/fixtures)
    Checking calternal-perf v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/perf)
    Checking ureq v3.4.2
    Checking calternal-backdrops v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/backdrops)
    Checking calternal v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/calternal)
    Checking calternal-testkit v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/testkit)
    Checking calternal-memory v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/memory)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 06s

cargo test --workspace -j4:

   Compiling calternal-server v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/server)
   Compiling potential_utf v0.1.6
   Compiling zerotrie v0.2.5
   Compiling utf8_iter v1.0.4
   Compiling icu_collections v2.3.0
   Compiling minimal-lexical v0.2.1
   Compiling icu_provider v2.3.1
   Compiling nom v7.1.3
   Compiling icu_normalizer_data v2.3.0
   Compiling icu_properties_data v2.3.0
   Compiling thiserror v1.0.69
   Compiling icu_properties v2.3.0
   Compiling icu_normalizer v2.3.0
   Compiling rusticata-macros v4.1.0
   Compiling yrs v0.28.0
   Compiling asn1-rs v0.6.2
   Compiling notify v8.2.0
   Compiling idna_adapter v1.2.2
   Compiling num-integer v0.1.47
   Compiling calternal-plugin-hello v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/plugin-hello)
   Compiling foreign-types-shared v0.1.1
   Compiling base64 v0.21.7
   Compiling foreign-types v0.3.2
   Compiling num-bigint v0.4.8
   Compiling base64urlsafedata v0.5.5
   Compiling idna v1.1.0
   Compiling openssl-sys v0.9.117
   Compiling base64 v0.23.1
   Compiling openssl v0.10.81
   Compiling der-parser v9.0.0
   Compiling url v2.5.8
   Compiling calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/notes)
   Compiling oid-registry v0.7.1
   Compiling half v2.7.1
   Compiling serde_cbor_2 v0.13.0
   Compiling x509-parser v0.16.0
   Compiling webauthn-attestation-ca v0.5.5
   Compiling webauthn-rs-proto v0.5.5
   Compiling hex v0.4.3
   Compiling webauthn-rs-core v0.5.5
   Compiling webauthn-rs v0.5.5
   Compiling sha1 v0.11.0
   Compiling tungstenite v0.30.0
   Compiling regex-automata v0.4.18
   Compiling zeroize v1.9.1
   Compiling rustls-pki-types v1.15.1
   Compiling matchers v0.2.0
   Compiling tokio-tungstenite v0.30.0
   Compiling calternal-auth v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/auth)
   Compiling sharded-slab v0.1.7
   Compiling tracing-log v0.2.0
   Compiling getrandom v0.2.17
   Compiling thread_local v1.1.10
   Compiling nu-ansi-term v0.50.3
   Compiling untrusted v0.9.0
   Compiling ring v0.17.14
   Compiling tracing-subscriber v0.3.23
   Compiling imagesize v0.14.0
   Compiling rustls-webpki v0.103.15
   Compiling subtle v2.6.1
   Compiling web-time v1.1.0
   Compiling cfb v0.14.0
   Compiling rustls v0.23.46
   Compiling webpki-roots v1.0.9
   Compiling ureq-proto v0.6.4
   Compiling utf8-zero v0.8.1
   Compiling infer v0.22.0
   Compiling calternal-search v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/search)
   Compiling proptest v1.12.0
   Compiling calternal-attachments v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/attachments)
   Compiling ureq v3.4.2
   Compiling calternal-daily v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/daily)
   Compiling calternal-backdrops v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/backdrops)
   Compiling calternal-migrate-v0 v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/migrate-v0)
   Compiling calternal-prefs v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/prefs)
   Compiling futures-executor v0.3.34
   Compiling async-stream v0.3.6
   Compiling futures v0.3.34
   Compiling tokio-stream v0.1.19
   Compiling serde_bytes v0.11.19
   Compiling bitflags v1.3.2
   Compiling calternal-fixtures v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/fixtures)
   Compiling webauthn-authenticator-rs v0.5.5
   Compiling calternal-perf v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/perf)
   Compiling calternal v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/calternal)
   Compiling calternal-fsio v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/fsio)
   Compiling calternal-engine v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/engine)
   Compiling calternal-store v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/store)
   Compiling calternal-core v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/core)
   Compiling calternal-testkit v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/testkit)
   Compiling calternal-memory v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/memory)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 1m 59s
     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal-deae764bfc911c7c)

running 12 tests
test args::tests::dev_user_never_on_a_public_address ... ok
test args::tests::fix_commands ... ok
test args::tests::defaults_and_flags ... ok
test args::tests::migrate_v0 ... ok
test args::tests::user_create ... ok
test args::tests::web_folder ... ok
test args::tests::origin_defaults_to_the_local_port ... ok
test args::tests::user_recover ... ok
test plugins::tests::contract_matches_the_server ... ok
test isolation::bob_cannot_reach_alices_attachments ... ok
test isolation::bob_cannot_join_alices_note_room ... ok
test isolation::bob_reaches_nothing_of_alices_through_any_action ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.35s

     Running tests/attachments_crash.rs (/home/kayg/Developer/calternal-target-570/debug/deps/attachments_crash-15b919419a9652ee)

running 2 tests
test kill_nine_mid_upload_leaves_nothing_half_written ... ok
test a_big_upload_streams_in_bounded_memory ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.33s

     Running tests/fix_tz_live.rs (/home/kayg/Developer/calternal-target-570/debug/deps/fix_tz_live-bbbb7269f8652284)

running 2 tests
test fix_without_a_running_server_says_so ... ok
test strip_tz_markers_on_a_live_home_with_a_client_typing ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.32s

     Running tests/notes_crash.rs (/home/kayg/Developer/calternal-target-570/debug/deps/notes_crash-525ee4dd007d6a3f)

running 3 tests
test kill_nine_mid_tag_rename_renames_each_tag_once ... ok
test kill_nine_mid_append_on_a_long_note ... ok
test kill_nine_never_loses_or_doubles ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.45s

     Running tests/notes_crash_typing.rs (/home/kayg/Developer/calternal-target-570/debug/deps/notes_crash_typing-a00d0438ca4746bf)

running 1 test
test kill_nine_while_people_type_loses_and_doubles_nothing ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.55s

     Running tests/notes_live.rs (/home/kayg/Developer/calternal-target-570/debug/deps/notes_live-887fed695e542f34)

running 2 tests
test type_over_the_websocket_and_read_it_back ... ok
test joining_a_missing_note_fails_politely ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s

     Running tests/prefs_live.rs (/home/kayg/Developer/calternal-target-570/debug/deps/prefs_live-e6d54e1ebbd4bf71)

running 1 test
test preferences_are_saved_checked_and_kept ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s

     Running tests/search_live.rs (/home/kayg/Developer/calternal-target-570/debug/deps/search_live-a06d5856f7b093bb)

running 1 test
test notes_from_everywhere_are_found ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.05s

     Running tests/startup.rs (/home/kayg/Developer/calternal-target-570/debug/deps/startup-127357492c08b075)

running 5 tests
test refuses_dev_user_on_a_public_address ... ok
test refuses_plain_http_on_a_public_origin ... ok
test recover_only_knows_real_people ... ok
test a_new_server_prints_a_setup_token ... ok
test answers_within_budget ... ok

test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_attachments-889c5893e05a73dd)

running 19 tests
test serve::tests::dispositions_quote_safely ... ok
test serve::tests::only_plain_visible_paths_are_served ... ok
test serve::tests::ranges ... ok
test tests::sniffing::days_are_strict ... ok
test tests::sniffing::names_are_kept_but_made_safe ... ok
test tests::sniffing::pictures_and_videos_go_to_photos ... ok
test tests::sniffing::text_types_come_from_the_extension_and_html_never_runs ... ok
test tests::sniffing::the_name_never_decides_a_binary_type ... ok
test tests::http::uploads_need_a_session_our_page_and_a_key ... ok
test tests::http::the_sweep_removes_what_a_crash_left_and_spares_live_uploads ... ok
test tests::http::a_connection_that_breaks_off_leaves_nothing ... ok
test tests::http::paths_that_climb_out_of_the_home_are_not_found ... ok
test tests::http::an_upload_lands_in_its_dated_folder_and_is_served_back ... ok
test tests::http::the_limit_holds_while_streaming_without_a_length ... ok
test tests::http::check_finds_only_your_own_files ... ok
test tests::http::a_retry_with_the_same_key_never_makes_a_second_copy ... ok
test tests::http::the_same_file_again_says_already_uploaded_and_keeps_one_copy ... ok
test tests::http::unsafe_types_are_downloads_with_a_strict_policy ... ok
test tests::http::names_can_not_steer_where_a_file_goes ... ok

test result: ok. 19 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_auth-5e8eb246e070ea06)

running 12 tests
test config::tests::origins ... ok
test limit::tests::stops_after_the_limit ... ok
test passkeys::tests::ids_round_trip ... ok
test passkeys::tests::names_are_trimmed_short_and_never_empty ... ok
test session::tests::names_are_cleaned ... ok
test setup::tests::names ... ok
test setup::tests::usernames ... ok
test token::tests::junk_is_not_a_token ... ok
test token::tests::setup_tokens_round_trip_through_pasting ... ok
test db::tests::opens_twice_and_keeps_schema ... ok
test db::tests::a_version_1_database_gets_passkey_names ... ok
test setup::tests::recover_needs_a_known_person ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running tests/abuse.rs (/home/kayg/Developer/calternal-target-570/debug/deps/abuse-5b62c855d6367504)

running 9 tests
test oversized_bodies_are_refused ... ok
test non_json_requests_are_refused ... ok
test junk_setup_tokens_are_refused_then_rate_limited ... ok
test bad_json_and_unknown_fields_are_refused ... ok
test nothing_about_the_server_leaks_before_sign_in ... ok
test open_prompts_are_capped ... ok
test forged_sessions_get_nowhere ... ok
test other_sites_cannot_act_for_you ... ok
test garbage_credentials_never_crash ... ok

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s

     Running tests/create.rs (/home/kayg/Developer/calternal-target-570/debug/deps/create-94fcea8192201cea)

running 6 tests
test an_earlier_first_owner_token_stops_working ... ok
test an_expired_enrolment_token_is_refused ... ok
test nothing_about_the_person_leaks_before_sign_in ... ok
test names_must_be_usable_and_unique ... ok
test a_created_person_enrolls_their_first_passkey_and_is_the_same_person ... ok
test an_enrolment_token_works_exactly_once_under_a_storm ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

     Running tests/isolation.rs (/home/kayg/Developer/calternal-target-570/debug/deps/isolation-e5c44b0d42bee2d9)

running 3 tests
test a_cookie_sent_from_another_sites_page_does_not_count ... ok
test another_persons_passkey_prompt_cannot_be_used_or_cancelled ... ok
test devices_and_passkeys_of_another_person_are_not_found ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

     Running tests/login.rs (/home/kayg/Developer/calternal-target-570/debug/deps/login-346109f79b33176b)

running 9 tests
test bearer_tokens_work_like_cookies ... ok
test signing_in_shows_up_live_on_another_device ... ok
test a_sign_in_answer_cannot_be_replayed ... ok
test sign_in_with_a_passkey_creates_a_new_installation ... ok
test signing_out_shows_up_live_on_another_device ... ok
test revoking_another_device_signs_it_out ... ok
test sign_out_ends_the_session_immediately ... ok
test an_unknown_passkey_is_refused ... ok
test sessions_expire_when_unused ... ok

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s

     Running tests/passkeys.rs (/home/kayg/Developer/calternal-target-570/debug/deps/passkeys-841c914424a5e188)

running 7 tests
test the_first_passkey_is_listed_with_the_device_it_was_made_on ... ok
test the_same_device_cannot_be_added_twice ... ok
test an_empty_name_is_refused_and_a_long_one_is_cut ... ok
test a_removed_passkey_that_is_gone_or_unknown_is_not_found ... ok
test adding_needs_a_sign_in_and_an_add_prompt_works_once ... ok
test the_last_passkey_cannot_be_removed ... ok
test add_rename_and_remove_each_leave_a_journal_event ... ok

test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s

     Running tests/setup.rs (/home/kayg/Developer/calternal-target-570/debug/deps/setup-1d2b08d963b28fff)

running 8 tests
test a_restart_replaces_the_first_owner_token ... ok
test first_owner_needs_a_name ... ok
test a_finished_prompt_cannot_be_replayed ... ok
test session_cookie_is_locked_down ... ok
test first_owner_signs_up_with_the_printed_token ... ok
test recovery_adds_a_new_passkey_for_the_same_person ... ok
test a_token_works_exactly_once_under_a_storm ... ok
test an_expired_setup_token_is_refused ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_backdrops-e474982e40fe3a4d)

running 19 tests
test tests::an_upload_is_private_to_the_person_who_made_it ... ok
test tests::a_photo_unknown_to_us_is_looked_up ... ok
test tests::changes_need_our_own_page_and_a_signed_in_person ... ok
test tests::bad_ids_never_reach_the_disk_or_the_network ... ok
test tests::pictures_from_other_hosts_are_refused ... ok
test tests::an_answer_that_is_not_a_picture_is_refused_and_not_kept ... ok
test tests::the_real_client_speaks_https_to_unsplash ... ignored, needs the internet
test tests::nobody_can_read_or_list_someone_elses_uploads ... ok
test tests::pictures_are_proxied_cached_and_never_given_the_key ... ok
test tests::picking_is_reported_to_unsplash_once ... ok
test tests::unsplash_running_out_of_requests_is_a_plain_slow_down ... ok
test tests::an_upload_is_kept_once_and_served_back ... ok
test tests::search_lists_photos_with_our_own_addresses_and_credit ... ok
test tests::the_same_search_is_answered_once ... ok
test tests::without_a_key_photos_are_off_but_uploads_work ... ok
test tests::uploads_are_checked_by_content_not_by_what_they_claim ... ok
test tests::the_real_client_sends_the_key_and_caps_the_size ... ok
test tests::too_many_pixels_are_refused_but_big_files_are_not ... ok
test tests::the_cache_drops_the_oldest_files_past_its_cap ... ok

test result: ok. 18 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.04s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_core-22753e58953721f1)

running 7 tests
test action::tests::namespace_is_enforced ... ok
test batch::tests::stops_at_the_first_error ... ok
test error::tests::every_code_has_a_friendly_message ... ok
test batch::tests::visits_everything_once_in_order ... ok
test journal::tests::junk_tokens_ask_for_a_refresh ... ok
test journal::tests::tokens_round_trip ... ok
test plugin::tests::plugins_stay_in_their_namespace ... ok

test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_daily-253fcac5eaa1e5e5)

running 21 tests
test day::tests::midnight_follows_the_device_in_ist ... ok
test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok
test day::tests::titles_read_like_the_web_app ... ok
test day::tests::names_and_ids ... ok
test tests::shared_vectors ... ok
test tests::any_text_is_safe_to_read_and_plan ... ok
test times_tests::a_line_with_only_tags_stays_words ... ok
test tests::close_turns_one_open_entry_into_a_range ... ok
test times_tests::only_a_day_note_has_times ... ok
test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok
test tests::bad_input_is_refused_kindly ... ok
test times_tests::any_line_is_safe ... ok
test times_tests::trailing_tags_on_any_line ... ok
test tests::an_existing_day_file_is_reused_whatever_its_id ... ok
test tests::today_follows_the_device_offset ... ok
test tests::log_add_then_close_makes_a_range ... ok
test times_tests::a_log_line_splits_into_times_words_and_tags ... ok
test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok
test tests::opening_the_same_day_at_once_makes_one_note ... ok
test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok
test tests::no_file_until_the_first_keystroke ... ok

test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.42s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_engine-ff3aa4aa42431a1a)

running 13 tests
test hash::tests::key_order_does_not_matter_but_content_does ... ok
test tests::changes_need_a_key_reads_do_not ... ok
test tests::bad_input_and_unknown_actions_are_friendly ... ok
test tests::connected_follows_live_views ... ok
test tests::a_plugin_cannot_write_outside_its_namespace ... ok
test tests::a_retry_runs_once_and_replays_the_result ... ok
test tests::journal_pages_continue_where_they_stopped ... ok
test tests::users_never_see_each_other ... ok
test tests::no_write_is_lost_while_users_are_released_and_reopened ... ok
test tests::identical_calls_at_the_same_moment_run_once ... ok
test tests::a_huge_job_never_delays_anyone ... ok
test tests::a_user_with_a_live_view_or_a_running_action_is_kept ... ok
test tests::an_idle_user_is_released_and_comes_back_with_nothing_lost ... ok

test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.49s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_fixtures-6f98542429b58355)

running 4 tests
test dates::tests::round_trips_and_formats ... ok
test rng::tests::same_seed_same_numbers ... ok
test tests::same_seed_same_bytes_other_seed_other_bytes ... ok
test tests::looks_like_a_real_home ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.43s

     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_fixtures-f234eac8403fa749)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_fsio-0087f3cf3ed3c80d)

running 12 tests
test beneath::tests::walking_without_openat2_refuses_symlinks_too ... ok
test beneath::tests::paths_that_climb_out_are_refused ... ok
test tests::atomic_write_replaces_and_leaves_no_temp_files ... ok
test tests::failed_write_keeps_the_old_file ... ok
test beneath::tests::temp_files_persist_without_replacing_and_vanish_when_dropped ... ok
test tests::case_only_rename_works_and_other_clashes_are_refused ... ok
test tests::names_fold_case_and_unicode_form ... ok
test tests::only_one_process_owns_a_data_folder ... ok
test tests::unique_names_skip_case_and_form_clashes ... ok
test tests::prepared_writes_land_only_when_placed ... ok
test tests::write_unless_changed_keeps_someone_elses_version ... ok
test tests::big_writes_arrive_whole ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_memory-3b65467e6e94a530)

running 2 tests
test tests::huge_pages_go_off ... ok
test tests::trimming_is_harmless ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_migrate_v0-bd794bebe756a3e2)

running 36 tests
test tests::rules::dry_run_writes_nothing ... ok
test tests::rules::m1_custom_daily_title_and_heading_stay ... ok
test tests::rules::m1_daily_notes_get_day_names_ids_and_lose_generated_headings ... ok
test tests::rules::edited_files_are_never_overwritten_without_asking ... ok
test tests::rules::m10_tz_markers_go_and_other_zones_convert_to_the_notes_zone ... ok
test tests::rules::m2_attachments_that_exist_are_copied_and_relinked ... ok
test tests::rules::m2_unresolved_links_stay_as_written_and_are_reported ... ok
test tests::rules::m2_code_is_never_rewritten ... ok
test tests::rules::m1_titles_come_from_title_then_h1_then_file_name_and_stay_unique ... ok
test tests::rules::m6_conflict_copies_are_not_migrated ... ok
test tests::rules::m4_unreferenced_block_ids_go_and_referenced_ones_stay ... ok
test tests::rules::m2_wikilinks_always_become_standard_links ... ok
test tests::units::every_v0_time_shape_converts ... ok
test tests::rules::m2_links_are_repaired_by_name_date_title_and_slug ... ok
test tests::rules::m7_tasks_blocks_are_stripped_and_listed ... ok
test tests::rules::m8_only_notes_and_linked_files_move ... ok
test tests::units::file_names_give_titles ... ok
test tests::units::keys_ignore_case_encoding_quotes_and_md ... ok
test tests::units::unix_times_become_india_time ... ok
test tzmarker::tests::a_conversion_that_leaves_the_day_is_kept_and_reported ... ok
test tzmarker::tests::code_is_never_touched ... ok
test tzmarker::tests::berlin_converts_inside_the_day ... ok
test tzmarker::tests::day_from_a_date_value ... ok
test tzmarker::tests::eu_summer_time_edges ... ok
test tests::units::links_parse_in_every_shape ... ok
test tests::rules::m5_unreadable_dates_fall_back ... ok
test tzmarker::tests::marker_at_the_end_or_tight_leaves_no_stray_space ... ok
test tzmarker::tests::no_zone_in_the_note_means_strip_only ... ok
test tzmarker::tests::same_zone_just_goes ... ok
test tzmarker::tests::not_a_marker_is_left_alone ... ok
test tzmarker::tests::styles_survive_conversion ... ok
test tzmarker::tests::unknown_zone_or_a_non_log_line_is_kept_and_counted ... ok
test tzmarker::tests::second_run_changes_nothing ... ok
test tests::rules::m3_m5_frontmatter_keys_drop_and_times_convert ... ok
test tests::rules::running_twice_gives_the_same_bytes ... ok
test tests::no_new_markers::nothing_writes_a_tz_marker ... ok

test result: ok. 36 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_notes-deecfda7a8462cc2)

running 221 tests
test anchor::tests::lines_by_utf16_index ... ok
test anchor::tests::hash_is_plain_sha256_hex ... ok
test backlinks::tests::snippets_are_the_trimmed_line ... ok
test backlinks::tests::links_are_fold_keys_and_lines ... ok
test blocks::tests::finds_list_children_and_heading_sections ... ok
test blocks::tests::line_edits ... ok
test blocks::tests::shapes_keep_markers ... ok
test blocks::tests::titles_from_the_first_sentence ... ok
test bulk::undo::tests::inverse_restores_the_text ... ok
test diff::tests::an_inserted_line_starts_at_a_line_start ... ok
test diff::tests::emoji_positions_are_utf16 ... ok
test diff::tests::small_change_is_a_small_edit ... ok
test frontmatter::tests::quoting ... ok
test frontmatter::tests::h1_skips_code_and_frontmatter ... ok
test frontmatter::tests::set_changes_only_the_value ... ok
test frontmatter::tests::reads_keys ... ok
test frontmatter::tests::set_adds_a_line_or_a_block ... ok
test index::tests::a_shared_path_answers_with_the_newest_note ... ok
test frontmatter::tests::set_is_utf16_aware ... ok
test index::tests::reload_speed ... ignored
test index::tests::under_finds_exact_paths_and_descendants_with_folded_names ... ok
test index::tests::under_keeps_shadowed_paths_for_watcher_removal ... ok
test index::tests::survives_reload_renames_and_torn_lines ... ok
test links::tests::nested_brackets_in_text ... ok
test links::tests::finds_standard_and_old_style_links ... ok
test links::tests::relative_paths ... ok
test links::tests::retarget_follows_the_title_and_keeps_custom_text ... ok
test index::tests::a_torn_tail_cannot_swallow_the_next_durable_mapping ... ok
test links::tests::retarget_from_a_subfolder ... ok
test links::tests::retarget_matches_case_and_unicode_forms ... ok
test links::tests::resolves_relative_to_the_linking_note ... ok
test meta::tests::cursors_round_trip_and_reject_junk ... ok
test links::tests::skips_code_images_and_the_web ... ok
test meta::tests::snippets_skip_frontmatter_and_headings ... ok
test missing::targets::tests::a_name_is_the_file_without_its_folder_and_extension ... ok
test missing::targets::tests::names_rank_exact_then_prefix_then_word_then_inside ... ok
test rename::tests::clash_numbers ... ok
test rename::tests::daily_names ... ok
test rename::tests::h1_is_set_or_added ... ok
test room::acks::tests::varuints_round_trip ... ok
test room::edit::tests::checks_bounds_overlap_and_surrogates ... ok
test history::tests::appends_are_ordered_and_readable ... ok
test room::save::tests::save_kill_child ... ok
test index::tests::unloads_and_reloads ... ok
test index::tests::compacts_when_it_grows ... ok
test scan::tests::day_ids_name_their_files ... ok
test history::tests::pending_save_promotes_to_base ... ok
test bulk::undo::tests::inverse_roundtrips ... ok
test search::tests::a_note_becomes_a_document ... ok
test search::tests::plain_search_lines_borrow_their_text ... ok
test scan::tests::state_round_trips_and_skips_odd_names ... ok
test smartline::tests::a_plain_line ... ok
test search::tests::search_lines_keep_link_text_and_replacement_order ... ok
test search::tests::titles_fall_back_to_the_file_name ... ok
test smartline::tests::only_tags_are_words ... ok
test stamp::tests::formats_with_offset ... ok
test smartline::tests::trailing_tags_only ... ok
test tags::merge::tests::text_tags_go_with_one_space ... ok
test tags::rewrite::tests::nothing_to_do_is_no_edits ... ok
test tags::front::tests::every_way_of_writing_tags ... ok
test tags::merge::tests::property_tags_go_with_their_comma_or_line ... ok
test tags::rewrite::tests::properties_change_name_only ... ok
test tags::rewrite::tests::positions_count_utf16 ... ok
test room::save::tests::title_sync_does_not_decode_the_saved_document ... ok
test tags::rewrite::tests::renaming_onto_an_existing_tag_merges ... ok
test diff::tests::edits_never_split_a_character ... ok
test tags::rewrite::tests::words_code_links_and_headings ... ok
test tags::scan::tests::code_is_never_tags ... ok
test tags::rewrite::tests::renames_tags_and_nested_tags_only ... ok
test tags::scan::tests::hash_free_lines_still_open_and_close_code_fences ... ok
test diff::tests::edits_turn_old_into_new ... ok
test tags::scan::tests::headings_and_quotes_keep_their_tags ... ok
test tags::scan::tests::link_targets_and_addresses_are_never_tags ... ok
test tags::scan::tests::not_tags ... ok
test tags::scan::tests::plain_tags ... ok
test tags::tests::nesting_and_cleaning ... ok
test tags::tests::properties_and_text ... ok
test tags::rewrite::tests::merging_keeps_every_tag_once_at_most ... ok
test tests::acks::saved_means_the_change_is_in_history ... ok
test tags::rewrite::tests::rename_and_back_is_the_same_text ... ok
test tests::acks::an_older_lineage_is_refused_before_anything_is_sent ... ok
test tests::anchors::an_edited_block_is_refused_never_the_wrong_one ... ok
test room::save::tests::concurrent_typists_and_saves_converge ... ok
test room::save::tests::kill_nine_mid_save_recovers_title_and_bytes ... ok
test tests::acks::checks_are_answered_in_order ... ok
test tags::rewrite::tests::only_real_tags_change ... ok
test tests::acks::lineage_survives_a_restart ... ok
test tests::appends_review::delete_whole_tail_then_append_matches ... ok
test tests::anchors::an_anchor_follows_its_block_when_lines_shift ... ok
test tests::appends_review::frontmatter_map_write_falls_back ... ok
test tests::appends_review::trailing_format_marker_bytes ... ok
test tests::anchors::history_folds_typing_and_names_jobs ... ok
test tests::anchors::anchors_need_a_hash_and_block_ids_work ... ok
test index::tests::answers_like_plain_maps ... ok
test tests::fanout::bursts_converge_and_reach_history ... ok
test index::tests::directory_counts_match_full_scan_after_moves_and_reload ... ok
test tests::fanout::a_version_always_matches_its_text ... ok
test tests::kill9::child ... ok
test tests::fanout::a_crash_before_the_seed_is_durable_never_doubles_text ... ok
test tests::fresh::a_note_made_with_text_opens_with_its_frontmatter ... ok
test tests::kill9::permanent_delete_after_restore_cannot_delete_the_live_note ... ok
test tests::kill9::quick_delete_restore_survives_kill ... ok
test tests::kill9::delete_killed_after_its_answer_finishes_once ... ok
test tests::fanout::a_first_open_does_not_wait_for_the_disk ... ok
test tests::fanout::collaborators_see_typing_before_the_disk ... ok
test tests::kill9::restore_delete_forget_does_not_resurrect_after_kill ... ok
test tests::fanout::a_crash_between_fan_out_and_disk_loses_nothing ... ok
test tests::kill9::quick_restore_delete_survives_kill ... ok
test tests::anchors::shifting_lines_never_move_the_wrong_block ... ok
test tests::kill9::restore_killed_after_its_answer_finishes_once ... ok
test tests::listing::filters_by_tag_kind_and_created_range ... ok
test tests::listing::the_first_page_never_waits_for_the_home_to_open ... ok
test tests::missing::a_path_tells_here_trash_and_gone ... ok
test tests::listing::pages_cover_every_note_once_in_a_stable_order ... ok
test tests::missing::a_rename_in_the_app_leaves_the_old_path_moved ... ok
test tests::missing::make_from_link_makes_the_note_where_the_link_points_and_undo_takes_it_back ... ok
test tests::missing::never_written_paths_are_new_and_bad_ones_too ... ok
test tests::missing::notes_in_the_trash_from_before_are_found ... ok
test tests::listing::pinning_shows_in_the_list_and_unpinning_leaves_no_trace ... ok
test tests::appends::an_append_to_a_long_note_stays_small ... ok
test tests::missing::restored_with_a_new_name_reads_as_moved ... ok
test tests::missing::a_move_outside_is_found_and_relink_repoints_the_links ... ok
test tests::missing::never_made_targets_are_offered_with_their_capitals_and_link_counts ... ok
test tests::appends::appends_built_directly_match_the_copy_byte_for_byte ... ok
test tests::appends::typists_and_appends_interleave_on_one_note ... ok
test tests::opening::a_note_never_typed_in_is_still_forgotten_on_restart ... ok
test tests::opening::a_cold_fill_ends_with_every_index_and_right_answers ... ok
test tests::opening::identifying_an_already_indexed_file_never_makes_it_a_copy ... ok
test tests::opening::a_warm_open_announces_only_what_changed_while_closed ... ok
test tests::opening::upgrading_without_a_saved_scan_announces_nothing_for_known_notes ... ok
test tests::opening::shutting_down_leaves_the_list_log_empty ... ok
test tests::outside::missed_watcher_event_is_caught_before_saving ... ok
test tests::opening::typing_saved_only_in_history_survives_a_restart_before_the_first_save ... ok
test tests::opening::a_cold_home_indexes_every_file_once_with_its_own_id ... ok
test tests::outside::edit_while_closed_is_merged_on_open ... ok
test tests::outside::outside_edit_while_typing_merges ... ok
test tests::peek::an_open_room_answers_with_its_live_text ... ok
test tests::outside::copied_note_gets_a_fresh_id ... ok
test tests::peek::reads_files_without_opening_rooms ... ok
test tests::pending::apply_places_changes_in_any_order ... ok
test tests::peek::returns_at_most_fifty ... ok
test tests::pending::yrs_alone_loses_a_parked_change ... ok
test tests::listing::a_common_tag_pages_the_same_in_every_order ... ok
test tests::outside::outside_create_and_delete ... ok
test tests::pending::changes_out_of_order_all_arrive_and_saved_is_true ... ok
test tests::renames::a_taken_name_gets_a_number_and_daily_notes_keep_theirs ... ok
test tests::listing::the_list_stays_live_with_new_notes_saves_and_outside_edits ... ok
test tests::renames::make_note_moves_the_block_and_undoes_as_one_step ... ok
test tests::renames::move_block_to_another_note_and_back ... ok
test tests::renames::backlinks_list_linked_and_unlinked_mentions ... ok
test tests::opening::asking_mid_scan_never_says_not_found_and_never_duplicates_a_day ... ok
test tests::renames::undo_keeps_a_made_note_someone_typed_in ... ok
test tests::renames::rename_moves_the_file_and_repoints_every_link ... ok
test tests::rooms::late_joiner_gets_full_state ... ok
test tests::rooms::patches_use_utf16_positions ... ok
test tests::rooms::fresh_note_opened_by_many_at_once_is_not_doubled ... ok
test tests::rooms::retried_change_applies_once ... ok
test tests::rooms::retried_create_makes_one_note ... ok
test tests::renames::typing_in_a_linking_note_during_a_rename_is_kept ... ok
test tests::rooms::stale_replace_keeps_newer_typing ... ok
test tests::saving::a_write_error_keeps_the_change ... ok
test tests::rooms::typing_survives_a_concurrent_delete ... ok
test tests::renames::typing_a_new_title_renames_the_file_after_a_pause ... ok
test tests::listing::the_kept_count_follows_adds_and_deletes ... ok
test tests::outside::outside_rename_keeps_the_id ... ok
test tests::saving::failed_save_keeps_the_change ... ok
test tests::saving::line_endings_and_bom_are_kept ... ok
test tests::saving::crash_after_write_does_not_double_text ... ok
test tests::renames::backlinks_follow_edits_and_deletes ... ok
test tests::saving::crash_before_write_loses_nothing ... ok
test tests::saving::title_and_h1_stay_in_step ... ok
test tests::saving::first_keystroke_creates_the_file ... ok
test tests::outside::own_saves_are_not_outside_edits ... ok
test tests::saving::opening_never_writes ... ok
test tests::tags::bad_names_are_refused ... ok
test tests::saving::an_error_after_the_write_does_not_double_text ... ok
test tests::rooms::random_concurrent_editing_converges_without_duplicates ... ok
test tests::tags::typing_during_a_tag_rename_is_kept ... ok
test tests::outside::polling_finds_outside_changes ... ok
test tests::trash::a_closed_note_is_trashed_without_opening_it ... ok
test tests::tags::renames_every_tag_and_undoes_as_one_step ... ok
test tests::trash::a_never_typed_note_is_simply_forgotten ... ok
test tests::trash::a_note_deleted_before_its_first_save_keeps_its_text ... ok
test tests::trash::delete_and_restore_answer_once_per_job_id ... ok
test tests::trash::a_file_deleted_outside_goes_to_the_trash ... ok
test tests::trash::delete_moves_to_trash_and_undo_brings_it_back ... ok
test tests::trash::delete_replay_with_a_stale_index_keeps_the_only_file ... ok
test tests::trash::forget_deletes_file_and_history_forever ... ok
test tests::trash::half_written_trash_folders_never_hide_a_live_note ... ok
test tests::trash::folder_rename_and_outside_move_bursts_keep_every_descendant ... ok
test tests::saving::saving_does_not_loop ... ok
test tests::trash::restore_durably_indexes_a_note_without_an_embedded_id ... ok
test tests::trash::restore_with_a_stale_index_really_moves_the_file_back ... ok
test tests::trash::restore_keeps_id_and_history_and_takes_a_free_name ... ok
test tests::trash::the_sweep_empties_only_notes_older_than_thirty_days ... ok
test tests::trash::trash_ids_never_reach_another_home ... ok
test tests::trash::trash_pages_newest_first ... ok
test tests::trash::trashed_notes_leave_search_lists_and_backlinks_and_come_back ... ok
test tests::unloading::an_unused_home_unloads_and_answers_after ... ok
test tests::unloading::a_connected_client_keeps_it ... ok
test text::tests::mixed_endings_take_the_majority ... ok
test tests::tags::a_big_tag_rename_never_stalls_typing ... ok
test text::tests::styles_round_trip ... ok
test trash::tests::a_note_without_details_still_reads ... ok
test trash::tests::details_without_a_note_are_not_a_note ... ok
test trash::tests::missing_details_never_age_trash_from_the_notes_old_mtime ... ok
test versions::tests::folds_runs_by_author_kind_and_gap ... ok
test ydoc::tests::fork_and_merge_keeps_concurrent_typing ... ok
test ydoc::tests::reapplying_an_update_changes_nothing ... ok
test ydoc::tests::utf16_offsets ... ok
test text::tests::uniform_files_round_trip_exactly ... ok
test tests::unloading::an_open_note_keeps_it ... ok
test tests::saving::nonstop_typing_still_saves ... ok
test tests::storm::outside_rewrites_during_a_storm_all_land ... ok
test tests::writers::every_writer_at_once_with_the_watcher ... ok
test tests::appends_review::fuzz_deletes_restarts_parked ... ok
test tests::writers::every_writer_at_once_loses_and_doubles_nothing ... ok
test room::save::tests::saved_bytes_and_titles_match_the_old_copy_path ... ok
test tests::renames::a_crash_mid_rename_resumes_and_applies_each_edit_once ... ok
test tests::trash::a_crash_mid_delete_finishes_on_restart_exactly_once ... ok
test tests::tags::a_crash_mid_rename_resumes_and_renames_each_tag_once ... ok

test result: ok. 220 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 7.02s

     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_perf-1052020ed1871574)

running 6 tests
test args::tests::parses_trash_only_mode ... ok
test scenarios::soak::tests::slope_of_a_line ... ok
test scenarios::storm::tests::typing_stops_before_the_newline_ahead_of_outside_lines ... ok
test stats::tests::summary_max_is_the_largest_observed_sample_across_runs ... ok
test stats::tests::medians_of_runs_and_pooled_singles ... ok
test live::tests::frames_round_trip_and_keystrokes_stay_whole ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/bin/storage-bench.rs (/home/kayg/Developer/calternal-target-570/debug/deps/storage_bench-aaee1f6d1cd60c74)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_plugin_hello-53ca8ca6107399a0)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_prefs-34d1a5e6c699003e)

running 9 tests
test tests::keys_are_an_area_then_dotted_parts ... ok
test tests::people_do_not_share_preferences ... ok
test tests::a_change_on_one_device_reaches_the_other ... ok
test tests::set_then_get_and_survive_a_restart ... ok
test tests::saving_the_same_value_again_is_quiet ... ok
test tests::a_retry_with_the_same_key_acts_once ... ok
test tests::quick_saves_from_two_devices_all_land ... ok
test tests::bad_keys_and_big_values_get_friendly_errors ... ok
test tests::at_most_200_keys_but_existing_ones_can_still_change ... ok

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_search-ff67ffa340bd9f12)

running 13 tests
test fuzzy::tests::distance_counts_swaps_as_one ... ok
test fuzzy::tests::common_typos_are_fixed ... ok
test query::tests::lone_symbols_are_ignored ... ok
test query::tests::dates_cover_whole_periods ... ok
test read::tests::block_ids_are_found ... ok
test query::tests::words_filters_and_phrases ... ok
test read::tests::renumbering_shifts_placeholders ... ok
test read::tests::excerpts_mark_matches_in_context ... ok
test text::tests::bigrams_cover_unspaced_scripts ... ok
test text::tests::fold_drops_accents_and_case ... ok
test read::tests::text_matches_like_the_index ... ok
test text::tests::words_keep_indic_vowel_signs ... ok
test schema::tests::an_older_index_gets_its_titles_filled ... ok

test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/search.rs (/home/kayg/Developer/calternal-target-570/debug/deps/search-8eb084de93ee7287)

running 12 tests
test searches_answer_while_indexing_runs ... ok
test an_empty_search_shows_recent_things ... ok
test titles_first_then_recent_use_then_body ... ok
test results_show_why_they_matched_and_where ... ok
test filters_by_tag_kind_and_date ... ok
test prefixes_and_typos_are_forgiven ... ok
test odd_input_never_breaks_search ... ok
test every_script_is_searchable ... ok
test behind_answers_at_once_and_catching_up_is_announced_once ... ok
test a_restart_heals_whatever_was_missed ... ok
test people_only_ever_find_their_own_things ... ok
test the_index_follows_changes_live ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.12s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_server-b018c8f458805a08)

running 2 tests
test rooms::tests::frames_round_trip ... ok
test compress::tests::big_answers_are_compressed_and_small_ones_are_not ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/access.rs (/home/kayg/Developer/calternal-target-570/debug/deps/access-b270c95875ec56fa)

running 1 test
test one_line_per_request_with_no_secrets ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/live.rs (/home/kayg/Developer/calternal-target-570/debug/deps/live-2ebb72560f7b157e)

running 6 tests
test signed_out_calls_get_a_friendly_refusal ... ok
test health_answers_without_signing_in ... ok
test a_stranger_token_asks_for_a_refresh ... ok
test errors_carry_codes_not_internals ... ok
test reconnecting_catches_up_from_a_token ... ok
test http_to_journal_to_websocket ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s

     Running tests/signout.rs (/home/kayg/Developer/calternal-target-570/debug/deps/signout-3993512dadca5b39)

running 1 test
test signing_a_device_out_closes_its_live_socket ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s

     Running tests/web.rs (/home/kayg/Developer/calternal-target-570/debug/deps/web-4c0ff73bf5023b52)

running 3 tests
test files_deep_links_and_the_api_live_side_by_side ... ok
test precompressed_files_are_sent_as_they_are_to_whoever_accepts_them ... ok
test caching_and_security_headers_follow_what_each_file_is ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_store-dc5119e9b339ecbc)

running 8 tests
test tests::a_store_with_a_listener_or_a_copy_is_in_use ... ok
test tests::commits_are_read_back_in_order ... ok
test tests::idempotency_is_saved_with_the_events_or_not_at_all ... ok
test tests::tokens_survive_a_restart_and_reject_strangers ... ok
test tests::live_entries_arrive_in_journal_order ... ok
test tests::reads_are_capped ... ok
test tests::old_idempotency_records_are_swept_when_the_store_opens ... ok
test tests::old_idempotency_records_are_swept_after_commits ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_testkit-84605cced32b9d05)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_attachments

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_auth

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_backdrops

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_core

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_daily

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_engine

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_fixtures

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_fsio

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_memory

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_migrate_v0

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_notes

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_plugin_hello

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_prefs

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_search

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_server

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_store

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_testkit

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

Finished on branch issue/570-save-copy. Head: b97d6b490992fc24c1fa9eb73f11441c14b9c57e. Base: b42e8b98192c2b30b8a4b0188a01c58457d3bfa0. PR into dev: https://git.kayg.org/kayg/calternal/pulls/574 Title sync now uses cached saved H1/title values instead of reconstructing the saved document. Load recovery, outside ingest and successful saves keep the cache in step with the base. Durability ordering is preserved. The byte/title oracle passed all 800 seeded cases, including outside edits, reloads, Unicode, CRLF and BOM. Real SIGKILL before and after file replacement, three typists during a paused save, and the existing workspace crash suites all passed. Final release measurements, p50 / p95 in ms, 50 saves per size: | Lines | Local before | Local after | Perf VM before | Perf VM after | | --- | --- | --- | --- | --- | | 100 | 0.66 / 0.86 | 0.59 / 3.72 | 24.23 / 39.00 | 20.90 / 26.86 | | 1,000 | 3.28 / 3.97 | 2.59 / 7.76 | 24.94 / 36.61 | 27.76 / 48.50 | | 3,500 | 15.49 / 21.01 | 3.30 / 5.60 | 33.44 / 55.45 | 20.83 / 38.97 | The VM runs were consecutive under one flock. Small-note tails and VM storage latency varied; the VM 1,000-line after run included a 236.46 ms outlier. At 3,500 lines, local p50/p95 fell 78.7%/73.3%, and VM p50/p95 fell 37.7%/29.7%. These results do not establish an improvement at every size. All final gates ran through the required local build slot with cargo -j4 and CARGO_TARGET_DIR=/home/kayg/Developer/calternal-target-570. Installed Nix GCC and OpenSSL paths resolved the initial environment failures. Final gate output verbatim: ``` cargo fmt --all --check: exit 0 cargo clippy --workspace --all-targets -- -D warnings: exit 0 cargo test --workspace: exit 0 ``` Workspace totals: 496 passed, 0 failed, 2 ignored, across 57 result groups. No merge, deploy, issue closure or evidence files committed. The worktree is clean. <details> <summary>Final gate logs, verbatim</summary> cargo fmt --all --check produced no output. cargo clippy --workspace --all-targets -j4 -- -D warnings: ``` Checking serde v1.0.229 Checking tracing v0.1.44 Checking tokio v1.53.2 Checking thiserror v2.0.21 Checking ref-cast v1.0.27 Checking futures-util v0.3.34 Checking zerocopy v0.8.62 Checking schemars v1.2.3 Checking zerofrom v0.1.8 Checking yoke v0.8.3 Checking calternal-fsio v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/fsio) Checking zerovec v0.11.8 Checking serde_urlencoded v0.7.1 Checking axum-core v0.5.6 Checking tinystr v0.8.4 Checking icu_locale_core v2.3.0 Compiling openssl-sys v0.9.117 Checking potential_utf v0.1.6 Checking zerotrie v0.2.5 Compiling icu_properties_data v2.3.0 Compiling icu_normalizer_data v2.3.0 Checking utf8_iter v1.0.4 Checking regex-syntax v0.8.11 Checking icu_collections v2.3.0 Checking calternal-core v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/core) Checking tokio-util v0.7.20 Checking ppv-lite86 v0.2.21 Checking hyper v1.12.0 Checking calternal-store v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/store) Checking rand_chacha v0.9.0 Checking rand v0.9.5 Checking calternal-engine v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/engine) Checking tower v0.5.3 Checking tungstenite v0.29.0 Checking async-compression v0.4.50 Checking hyper-util v0.1.21 Checking icu_provider v2.3.1 Checking inotify-sys v0.1.8 Checking crossbeam-utils v0.8.23 Checking tower-http v0.6.11 Checking event-listener-strategy v0.5.4 Checking tokio-tungstenite v0.29.0 Checking minimal-lexical v0.2.1 Checking axum v0.8.9 Compiling thiserror v1.0.69 Checking same-file v1.0.6 Checking hashbrown v0.14.5 Checking walkdir v2.5.0 Checking nom v7.1.3 Checking arc-swap v1.9.2 Checking dashmap v6.2.1 Checking async-lock v3.4.2 Checking inotify v0.11.5 Checking notify-types v2.1.0 Checking smallstr v0.3.1 Compiling thiserror-impl v1.0.69 Compiling synstructure v0.13.2 Checking rusticata-macros v4.1.0 Checking notify v8.2.0 Checking yrs v0.28.0 Checking calternal-server v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/server) Checking icu_normalizer v2.3.0 Checking icu_properties v2.3.0 Checking sha2 v0.11.1 Compiling asn1-rs-impl v0.2.0 Checking hashbrown v0.16.1 Compiling asn1-rs-derive v0.5.1 Checking similar v3.2.0 Checking fnv v1.0.7 Checking unicode-segmentation v1.13.3 Checking idna_adapter v1.2.2 Checking num-integer v0.1.47 Compiling pastey v0.1.1 Checking foreign-types-shared v0.1.1 Compiling oid-registry v0.7.1 Checking base64 v0.21.7 Compiling openssl v0.10.81 Checking foreign-types v0.3.2 Checking num-bigint v0.4.8 Checking calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/notes) Checking base64urlsafedata v0.5.5 Checking idna v1.1.0 Compiling openssl-macros v0.1.1 Compiling webauthn-attestation-ca v0.5.5 Checking asn1-rs v0.6.2 Checking url v2.5.8 Checking calternal-plugin-hello v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/plugin-hello) Checking half v2.7.1 Checking der-parser v9.0.0 Checking base64 v0.23.1 Compiling webauthn-rs-core v0.5.5 Checking x509-parser v0.16.0 Checking serde_cbor_2 v0.13.0 Checking webauthn-rs-proto v0.5.5 Checking hex v0.4.3 Checking sha1 v0.11.0 Checking tungstenite v0.30.0 Compiling ring v0.17.14 Checking tokio-tungstenite v0.30.0 Checking regex-automata v0.4.18 Checking zeroize v1.9.1 Checking rustls-pki-types v1.15.1 Checking sharded-slab v0.1.7 Checking webauthn-rs v0.5.5 Checking calternal-auth v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/auth) Checking tracing-log v0.2.0 Checking getrandom v0.2.17 Checking thread_local v1.1.10 Checking nu-ansi-term v0.50.3 Checking untrusted v0.9.0 Checking matchers v0.2.0 Compiling rustls v0.23.46 Checking tracing-subscriber v0.3.23 Checking web-time v1.1.0 Checking subtle v2.6.1 Checking imagesize v0.14.0 Checking cfb v0.14.0 Checking webpki-roots v1.0.9 Checking ureq-proto v0.6.4 Checking utf8-zero v0.8.1 Checking calternal-search v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/search) Checking infer v0.22.0 Checking tempfile v3.27.0 Checking wait-timeout v0.2.1 Checking bit-vec v0.10.1 Checking quick-error v1.2.3 Checking rusty-fork v0.3.1 Checking bit-set v0.11.1 Checking calternal-attachments v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/attachments) Checking calternal-daily v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/daily) Checking calternal-prefs v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/prefs) Checking calternal-migrate-v0 v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/migrate-v0) Checking rand_xorshift v0.5.0 Checking unarray v0.1.4 Checking core_detect v1.0.0 Checking futures-executor v0.3.34 Checking proptest v1.12.0 Compiling async-stream-impl v0.3.6 Compiling webauthn-authenticator-rs v0.5.5 Checking futures v0.3.34 Checking tokio-stream v0.1.19 Checking serde_bytes v0.11.19 Compiling num-derive v0.4.2 Checking rustls-webpki v0.103.15 Checking async-stream v0.3.6 Checking bitflags v1.3.2 Checking calternal-fixtures v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/fixtures) Checking calternal-perf v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/perf) Checking ureq v3.4.2 Checking calternal-backdrops v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/backdrops) Checking calternal v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/calternal) Checking calternal-testkit v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/testkit) Checking calternal-memory v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/memory) Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 06s ``` cargo test --workspace -j4: ``` Compiling calternal-server v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/server) Compiling potential_utf v0.1.6 Compiling zerotrie v0.2.5 Compiling utf8_iter v1.0.4 Compiling icu_collections v2.3.0 Compiling minimal-lexical v0.2.1 Compiling icu_provider v2.3.1 Compiling nom v7.1.3 Compiling icu_normalizer_data v2.3.0 Compiling icu_properties_data v2.3.0 Compiling thiserror v1.0.69 Compiling icu_properties v2.3.0 Compiling icu_normalizer v2.3.0 Compiling rusticata-macros v4.1.0 Compiling yrs v0.28.0 Compiling asn1-rs v0.6.2 Compiling notify v8.2.0 Compiling idna_adapter v1.2.2 Compiling num-integer v0.1.47 Compiling calternal-plugin-hello v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/plugin-hello) Compiling foreign-types-shared v0.1.1 Compiling base64 v0.21.7 Compiling foreign-types v0.3.2 Compiling num-bigint v0.4.8 Compiling base64urlsafedata v0.5.5 Compiling idna v1.1.0 Compiling openssl-sys v0.9.117 Compiling base64 v0.23.1 Compiling openssl v0.10.81 Compiling der-parser v9.0.0 Compiling url v2.5.8 Compiling calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/notes) Compiling oid-registry v0.7.1 Compiling half v2.7.1 Compiling serde_cbor_2 v0.13.0 Compiling x509-parser v0.16.0 Compiling webauthn-attestation-ca v0.5.5 Compiling webauthn-rs-proto v0.5.5 Compiling hex v0.4.3 Compiling webauthn-rs-core v0.5.5 Compiling webauthn-rs v0.5.5 Compiling sha1 v0.11.0 Compiling tungstenite v0.30.0 Compiling regex-automata v0.4.18 Compiling zeroize v1.9.1 Compiling rustls-pki-types v1.15.1 Compiling matchers v0.2.0 Compiling tokio-tungstenite v0.30.0 Compiling calternal-auth v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/auth) Compiling sharded-slab v0.1.7 Compiling tracing-log v0.2.0 Compiling getrandom v0.2.17 Compiling thread_local v1.1.10 Compiling nu-ansi-term v0.50.3 Compiling untrusted v0.9.0 Compiling ring v0.17.14 Compiling tracing-subscriber v0.3.23 Compiling imagesize v0.14.0 Compiling rustls-webpki v0.103.15 Compiling subtle v2.6.1 Compiling web-time v1.1.0 Compiling cfb v0.14.0 Compiling rustls v0.23.46 Compiling webpki-roots v1.0.9 Compiling ureq-proto v0.6.4 Compiling utf8-zero v0.8.1 Compiling infer v0.22.0 Compiling calternal-search v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/search) Compiling proptest v1.12.0 Compiling calternal-attachments v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/attachments) Compiling ureq v3.4.2 Compiling calternal-daily v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/daily) Compiling calternal-backdrops v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/backdrops) Compiling calternal-migrate-v0 v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/migrate-v0) Compiling calternal-prefs v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/prefs) Compiling futures-executor v0.3.34 Compiling async-stream v0.3.6 Compiling futures v0.3.34 Compiling tokio-stream v0.1.19 Compiling serde_bytes v0.11.19 Compiling bitflags v1.3.2 Compiling calternal-fixtures v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/fixtures) Compiling webauthn-authenticator-rs v0.5.5 Compiling calternal-perf v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/perf) Compiling calternal v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/calternal) Compiling calternal-fsio v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/fsio) Compiling calternal-engine v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/engine) Compiling calternal-store v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/store) Compiling calternal-core v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/core) Compiling calternal-testkit v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/testkit) Compiling calternal-memory v0.1.0 (/home/kayg/Developer/calternal-wt-570/crates/memory) Finished `test` profile [unoptimized + debuginfo] target(s) in 1m 59s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal-deae764bfc911c7c) running 12 tests test args::tests::dev_user_never_on_a_public_address ... ok test args::tests::fix_commands ... ok test args::tests::defaults_and_flags ... ok test args::tests::migrate_v0 ... ok test args::tests::user_create ... ok test args::tests::web_folder ... ok test args::tests::origin_defaults_to_the_local_port ... ok test args::tests::user_recover ... ok test plugins::tests::contract_matches_the_server ... ok test isolation::bob_cannot_reach_alices_attachments ... ok test isolation::bob_cannot_join_alices_note_room ... ok test isolation::bob_reaches_nothing_of_alices_through_any_action ... ok test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.35s Running tests/attachments_crash.rs (/home/kayg/Developer/calternal-target-570/debug/deps/attachments_crash-15b919419a9652ee) running 2 tests test kill_nine_mid_upload_leaves_nothing_half_written ... ok test a_big_upload_streams_in_bounded_memory ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.33s Running tests/fix_tz_live.rs (/home/kayg/Developer/calternal-target-570/debug/deps/fix_tz_live-bbbb7269f8652284) running 2 tests test fix_without_a_running_server_says_so ... ok test strip_tz_markers_on_a_live_home_with_a_client_typing ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.32s Running tests/notes_crash.rs (/home/kayg/Developer/calternal-target-570/debug/deps/notes_crash-525ee4dd007d6a3f) running 3 tests test kill_nine_mid_tag_rename_renames_each_tag_once ... ok test kill_nine_mid_append_on_a_long_note ... ok test kill_nine_never_loses_or_doubles ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.45s Running tests/notes_crash_typing.rs (/home/kayg/Developer/calternal-target-570/debug/deps/notes_crash_typing-a00d0438ca4746bf) running 1 test test kill_nine_while_people_type_loses_and_doubles_nothing ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.55s Running tests/notes_live.rs (/home/kayg/Developer/calternal-target-570/debug/deps/notes_live-887fed695e542f34) running 2 tests test type_over_the_websocket_and_read_it_back ... ok test joining_a_missing_note_fails_politely ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s Running tests/prefs_live.rs (/home/kayg/Developer/calternal-target-570/debug/deps/prefs_live-e6d54e1ebbd4bf71) running 1 test test preferences_are_saved_checked_and_kept ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s Running tests/search_live.rs (/home/kayg/Developer/calternal-target-570/debug/deps/search_live-a06d5856f7b093bb) running 1 test test notes_from_everywhere_are_found ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.05s Running tests/startup.rs (/home/kayg/Developer/calternal-target-570/debug/deps/startup-127357492c08b075) running 5 tests test refuses_dev_user_on_a_public_address ... ok test refuses_plain_http_on_a_public_origin ... ok test recover_only_knows_real_people ... ok test a_new_server_prints_a_setup_token ... ok test answers_within_budget ... ok test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_attachments-889c5893e05a73dd) running 19 tests test serve::tests::dispositions_quote_safely ... ok test serve::tests::only_plain_visible_paths_are_served ... ok test serve::tests::ranges ... ok test tests::sniffing::days_are_strict ... ok test tests::sniffing::names_are_kept_but_made_safe ... ok test tests::sniffing::pictures_and_videos_go_to_photos ... ok test tests::sniffing::text_types_come_from_the_extension_and_html_never_runs ... ok test tests::sniffing::the_name_never_decides_a_binary_type ... ok test tests::http::uploads_need_a_session_our_page_and_a_key ... ok test tests::http::the_sweep_removes_what_a_crash_left_and_spares_live_uploads ... ok test tests::http::a_connection_that_breaks_off_leaves_nothing ... ok test tests::http::paths_that_climb_out_of_the_home_are_not_found ... ok test tests::http::an_upload_lands_in_its_dated_folder_and_is_served_back ... ok test tests::http::the_limit_holds_while_streaming_without_a_length ... ok test tests::http::check_finds_only_your_own_files ... ok test tests::http::a_retry_with_the_same_key_never_makes_a_second_copy ... ok test tests::http::the_same_file_again_says_already_uploaded_and_keeps_one_copy ... ok test tests::http::unsafe_types_are_downloads_with_a_strict_policy ... ok test tests::http::names_can_not_steer_where_a_file_goes ... ok test result: ok. 19 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_auth-5e8eb246e070ea06) running 12 tests test config::tests::origins ... ok test limit::tests::stops_after_the_limit ... ok test passkeys::tests::ids_round_trip ... ok test passkeys::tests::names_are_trimmed_short_and_never_empty ... ok test session::tests::names_are_cleaned ... ok test setup::tests::names ... ok test setup::tests::usernames ... ok test token::tests::junk_is_not_a_token ... ok test token::tests::setup_tokens_round_trip_through_pasting ... ok test db::tests::opens_twice_and_keeps_schema ... ok test db::tests::a_version_1_database_gets_passkey_names ... ok test setup::tests::recover_needs_a_known_person ... ok test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running tests/abuse.rs (/home/kayg/Developer/calternal-target-570/debug/deps/abuse-5b62c855d6367504) running 9 tests test oversized_bodies_are_refused ... ok test non_json_requests_are_refused ... ok test junk_setup_tokens_are_refused_then_rate_limited ... ok test bad_json_and_unknown_fields_are_refused ... ok test nothing_about_the_server_leaks_before_sign_in ... ok test open_prompts_are_capped ... ok test forged_sessions_get_nowhere ... ok test other_sites_cannot_act_for_you ... ok test garbage_credentials_never_crash ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s Running tests/create.rs (/home/kayg/Developer/calternal-target-570/debug/deps/create-94fcea8192201cea) running 6 tests test an_earlier_first_owner_token_stops_working ... ok test an_expired_enrolment_token_is_refused ... ok test nothing_about_the_person_leaks_before_sign_in ... ok test names_must_be_usable_and_unique ... ok test a_created_person_enrolls_their_first_passkey_and_is_the_same_person ... ok test an_enrolment_token_works_exactly_once_under_a_storm ... ok test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s Running tests/isolation.rs (/home/kayg/Developer/calternal-target-570/debug/deps/isolation-e5c44b0d42bee2d9) running 3 tests test a_cookie_sent_from_another_sites_page_does_not_count ... ok test another_persons_passkey_prompt_cannot_be_used_or_cancelled ... ok test devices_and_passkeys_of_another_person_are_not_found ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s Running tests/login.rs (/home/kayg/Developer/calternal-target-570/debug/deps/login-346109f79b33176b) running 9 tests test bearer_tokens_work_like_cookies ... ok test signing_in_shows_up_live_on_another_device ... ok test a_sign_in_answer_cannot_be_replayed ... ok test sign_in_with_a_passkey_creates_a_new_installation ... ok test signing_out_shows_up_live_on_another_device ... ok test revoking_another_device_signs_it_out ... ok test sign_out_ends_the_session_immediately ... ok test an_unknown_passkey_is_refused ... ok test sessions_expire_when_unused ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s Running tests/passkeys.rs (/home/kayg/Developer/calternal-target-570/debug/deps/passkeys-841c914424a5e188) running 7 tests test the_first_passkey_is_listed_with_the_device_it_was_made_on ... ok test the_same_device_cannot_be_added_twice ... ok test an_empty_name_is_refused_and_a_long_one_is_cut ... ok test a_removed_passkey_that_is_gone_or_unknown_is_not_found ... ok test adding_needs_a_sign_in_and_an_add_prompt_works_once ... ok test the_last_passkey_cannot_be_removed ... ok test add_rename_and_remove_each_leave_a_journal_event ... ok test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s Running tests/setup.rs (/home/kayg/Developer/calternal-target-570/debug/deps/setup-1d2b08d963b28fff) running 8 tests test a_restart_replaces_the_first_owner_token ... ok test first_owner_needs_a_name ... ok test a_finished_prompt_cannot_be_replayed ... ok test session_cookie_is_locked_down ... ok test first_owner_signs_up_with_the_printed_token ... ok test recovery_adds_a_new_passkey_for_the_same_person ... ok test a_token_works_exactly_once_under_a_storm ... ok test an_expired_setup_token_is_refused ... ok test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_backdrops-e474982e40fe3a4d) running 19 tests test tests::an_upload_is_private_to_the_person_who_made_it ... ok test tests::a_photo_unknown_to_us_is_looked_up ... ok test tests::changes_need_our_own_page_and_a_signed_in_person ... ok test tests::bad_ids_never_reach_the_disk_or_the_network ... ok test tests::pictures_from_other_hosts_are_refused ... ok test tests::an_answer_that_is_not_a_picture_is_refused_and_not_kept ... ok test tests::the_real_client_speaks_https_to_unsplash ... ignored, needs the internet test tests::nobody_can_read_or_list_someone_elses_uploads ... ok test tests::pictures_are_proxied_cached_and_never_given_the_key ... ok test tests::picking_is_reported_to_unsplash_once ... ok test tests::unsplash_running_out_of_requests_is_a_plain_slow_down ... ok test tests::an_upload_is_kept_once_and_served_back ... ok test tests::search_lists_photos_with_our_own_addresses_and_credit ... ok test tests::the_same_search_is_answered_once ... ok test tests::without_a_key_photos_are_off_but_uploads_work ... ok test tests::uploads_are_checked_by_content_not_by_what_they_claim ... ok test tests::the_real_client_sends_the_key_and_caps_the_size ... ok test tests::too_many_pixels_are_refused_but_big_files_are_not ... ok test tests::the_cache_drops_the_oldest_files_past_its_cap ... ok test result: ok. 18 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.04s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_core-22753e58953721f1) running 7 tests test action::tests::namespace_is_enforced ... ok test batch::tests::stops_at_the_first_error ... ok test error::tests::every_code_has_a_friendly_message ... ok test batch::tests::visits_everything_once_in_order ... ok test journal::tests::junk_tokens_ask_for_a_refresh ... ok test journal::tests::tokens_round_trip ... ok test plugin::tests::plugins_stay_in_their_namespace ... ok test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_daily-253fcac5eaa1e5e5) running 21 tests test day::tests::midnight_follows_the_device_in_ist ... ok test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok test day::tests::titles_read_like_the_web_app ... ok test day::tests::names_and_ids ... ok test tests::shared_vectors ... ok test tests::any_text_is_safe_to_read_and_plan ... ok test times_tests::a_line_with_only_tags_stays_words ... ok test tests::close_turns_one_open_entry_into_a_range ... ok test times_tests::only_a_day_note_has_times ... ok test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok test tests::bad_input_is_refused_kindly ... ok test times_tests::any_line_is_safe ... ok test times_tests::trailing_tags_on_any_line ... ok test tests::an_existing_day_file_is_reused_whatever_its_id ... ok test tests::today_follows_the_device_offset ... ok test tests::log_add_then_close_makes_a_range ... ok test times_tests::a_log_line_splits_into_times_words_and_tags ... ok test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok test tests::opening_the_same_day_at_once_makes_one_note ... ok test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok test tests::no_file_until_the_first_keystroke ... ok test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.42s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_engine-ff3aa4aa42431a1a) running 13 tests test hash::tests::key_order_does_not_matter_but_content_does ... ok test tests::changes_need_a_key_reads_do_not ... ok test tests::bad_input_and_unknown_actions_are_friendly ... ok test tests::connected_follows_live_views ... ok test tests::a_plugin_cannot_write_outside_its_namespace ... ok test tests::a_retry_runs_once_and_replays_the_result ... ok test tests::journal_pages_continue_where_they_stopped ... ok test tests::users_never_see_each_other ... ok test tests::no_write_is_lost_while_users_are_released_and_reopened ... ok test tests::identical_calls_at_the_same_moment_run_once ... ok test tests::a_huge_job_never_delays_anyone ... ok test tests::a_user_with_a_live_view_or_a_running_action_is_kept ... ok test tests::an_idle_user_is_released_and_comes_back_with_nothing_lost ... ok test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.49s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_fixtures-6f98542429b58355) running 4 tests test dates::tests::round_trips_and_formats ... ok test rng::tests::same_seed_same_numbers ... ok test tests::same_seed_same_bytes_other_seed_other_bytes ... ok test tests::looks_like_a_real_home ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.43s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_fixtures-f234eac8403fa749) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_fsio-0087f3cf3ed3c80d) running 12 tests test beneath::tests::walking_without_openat2_refuses_symlinks_too ... ok test beneath::tests::paths_that_climb_out_are_refused ... ok test tests::atomic_write_replaces_and_leaves_no_temp_files ... ok test tests::failed_write_keeps_the_old_file ... ok test beneath::tests::temp_files_persist_without_replacing_and_vanish_when_dropped ... ok test tests::case_only_rename_works_and_other_clashes_are_refused ... ok test tests::names_fold_case_and_unicode_form ... ok test tests::only_one_process_owns_a_data_folder ... ok test tests::unique_names_skip_case_and_form_clashes ... ok test tests::prepared_writes_land_only_when_placed ... ok test tests::write_unless_changed_keeps_someone_elses_version ... ok test tests::big_writes_arrive_whole ... ok test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_memory-3b65467e6e94a530) running 2 tests test tests::huge_pages_go_off ... ok test tests::trimming_is_harmless ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_migrate_v0-bd794bebe756a3e2) running 36 tests test tests::rules::dry_run_writes_nothing ... ok test tests::rules::m1_custom_daily_title_and_heading_stay ... ok test tests::rules::m1_daily_notes_get_day_names_ids_and_lose_generated_headings ... ok test tests::rules::edited_files_are_never_overwritten_without_asking ... ok test tests::rules::m10_tz_markers_go_and_other_zones_convert_to_the_notes_zone ... ok test tests::rules::m2_attachments_that_exist_are_copied_and_relinked ... ok test tests::rules::m2_unresolved_links_stay_as_written_and_are_reported ... ok test tests::rules::m2_code_is_never_rewritten ... ok test tests::rules::m1_titles_come_from_title_then_h1_then_file_name_and_stay_unique ... ok test tests::rules::m6_conflict_copies_are_not_migrated ... ok test tests::rules::m4_unreferenced_block_ids_go_and_referenced_ones_stay ... ok test tests::rules::m2_wikilinks_always_become_standard_links ... ok test tests::units::every_v0_time_shape_converts ... ok test tests::rules::m2_links_are_repaired_by_name_date_title_and_slug ... ok test tests::rules::m7_tasks_blocks_are_stripped_and_listed ... ok test tests::rules::m8_only_notes_and_linked_files_move ... ok test tests::units::file_names_give_titles ... ok test tests::units::keys_ignore_case_encoding_quotes_and_md ... ok test tests::units::unix_times_become_india_time ... ok test tzmarker::tests::a_conversion_that_leaves_the_day_is_kept_and_reported ... ok test tzmarker::tests::code_is_never_touched ... ok test tzmarker::tests::berlin_converts_inside_the_day ... ok test tzmarker::tests::day_from_a_date_value ... ok test tzmarker::tests::eu_summer_time_edges ... ok test tests::units::links_parse_in_every_shape ... ok test tests::rules::m5_unreadable_dates_fall_back ... ok test tzmarker::tests::marker_at_the_end_or_tight_leaves_no_stray_space ... ok test tzmarker::tests::no_zone_in_the_note_means_strip_only ... ok test tzmarker::tests::same_zone_just_goes ... ok test tzmarker::tests::not_a_marker_is_left_alone ... ok test tzmarker::tests::styles_survive_conversion ... ok test tzmarker::tests::unknown_zone_or_a_non_log_line_is_kept_and_counted ... ok test tzmarker::tests::second_run_changes_nothing ... ok test tests::rules::m3_m5_frontmatter_keys_drop_and_times_convert ... ok test tests::rules::running_twice_gives_the_same_bytes ... ok test tests::no_new_markers::nothing_writes_a_tz_marker ... ok test result: ok. 36 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_notes-deecfda7a8462cc2) running 221 tests test anchor::tests::lines_by_utf16_index ... ok test anchor::tests::hash_is_plain_sha256_hex ... ok test backlinks::tests::snippets_are_the_trimmed_line ... ok test backlinks::tests::links_are_fold_keys_and_lines ... ok test blocks::tests::finds_list_children_and_heading_sections ... ok test blocks::tests::line_edits ... ok test blocks::tests::shapes_keep_markers ... ok test blocks::tests::titles_from_the_first_sentence ... ok test bulk::undo::tests::inverse_restores_the_text ... ok test diff::tests::an_inserted_line_starts_at_a_line_start ... ok test diff::tests::emoji_positions_are_utf16 ... ok test diff::tests::small_change_is_a_small_edit ... ok test frontmatter::tests::quoting ... ok test frontmatter::tests::h1_skips_code_and_frontmatter ... ok test frontmatter::tests::set_changes_only_the_value ... ok test frontmatter::tests::reads_keys ... ok test frontmatter::tests::set_adds_a_line_or_a_block ... ok test index::tests::a_shared_path_answers_with_the_newest_note ... ok test frontmatter::tests::set_is_utf16_aware ... ok test index::tests::reload_speed ... ignored test index::tests::under_finds_exact_paths_and_descendants_with_folded_names ... ok test index::tests::under_keeps_shadowed_paths_for_watcher_removal ... ok test index::tests::survives_reload_renames_and_torn_lines ... ok test links::tests::nested_brackets_in_text ... ok test links::tests::finds_standard_and_old_style_links ... ok test links::tests::relative_paths ... ok test links::tests::retarget_follows_the_title_and_keeps_custom_text ... ok test index::tests::a_torn_tail_cannot_swallow_the_next_durable_mapping ... ok test links::tests::retarget_from_a_subfolder ... ok test links::tests::retarget_matches_case_and_unicode_forms ... ok test links::tests::resolves_relative_to_the_linking_note ... ok test meta::tests::cursors_round_trip_and_reject_junk ... ok test links::tests::skips_code_images_and_the_web ... ok test meta::tests::snippets_skip_frontmatter_and_headings ... ok test missing::targets::tests::a_name_is_the_file_without_its_folder_and_extension ... ok test missing::targets::tests::names_rank_exact_then_prefix_then_word_then_inside ... ok test rename::tests::clash_numbers ... ok test rename::tests::daily_names ... ok test rename::tests::h1_is_set_or_added ... ok test room::acks::tests::varuints_round_trip ... ok test room::edit::tests::checks_bounds_overlap_and_surrogates ... ok test history::tests::appends_are_ordered_and_readable ... ok test room::save::tests::save_kill_child ... ok test index::tests::unloads_and_reloads ... ok test index::tests::compacts_when_it_grows ... ok test scan::tests::day_ids_name_their_files ... ok test history::tests::pending_save_promotes_to_base ... ok test bulk::undo::tests::inverse_roundtrips ... ok test search::tests::a_note_becomes_a_document ... ok test search::tests::plain_search_lines_borrow_their_text ... ok test scan::tests::state_round_trips_and_skips_odd_names ... ok test smartline::tests::a_plain_line ... ok test search::tests::search_lines_keep_link_text_and_replacement_order ... ok test search::tests::titles_fall_back_to_the_file_name ... ok test smartline::tests::only_tags_are_words ... ok test stamp::tests::formats_with_offset ... ok test smartline::tests::trailing_tags_only ... ok test tags::merge::tests::text_tags_go_with_one_space ... ok test tags::rewrite::tests::nothing_to_do_is_no_edits ... ok test tags::front::tests::every_way_of_writing_tags ... ok test tags::merge::tests::property_tags_go_with_their_comma_or_line ... ok test tags::rewrite::tests::properties_change_name_only ... ok test tags::rewrite::tests::positions_count_utf16 ... ok test room::save::tests::title_sync_does_not_decode_the_saved_document ... ok test tags::rewrite::tests::renaming_onto_an_existing_tag_merges ... ok test diff::tests::edits_never_split_a_character ... ok test tags::rewrite::tests::words_code_links_and_headings ... ok test tags::scan::tests::code_is_never_tags ... ok test tags::rewrite::tests::renames_tags_and_nested_tags_only ... ok test tags::scan::tests::hash_free_lines_still_open_and_close_code_fences ... ok test diff::tests::edits_turn_old_into_new ... ok test tags::scan::tests::headings_and_quotes_keep_their_tags ... ok test tags::scan::tests::link_targets_and_addresses_are_never_tags ... ok test tags::scan::tests::not_tags ... ok test tags::scan::tests::plain_tags ... ok test tags::tests::nesting_and_cleaning ... ok test tags::tests::properties_and_text ... ok test tags::rewrite::tests::merging_keeps_every_tag_once_at_most ... ok test tests::acks::saved_means_the_change_is_in_history ... ok test tags::rewrite::tests::rename_and_back_is_the_same_text ... ok test tests::acks::an_older_lineage_is_refused_before_anything_is_sent ... ok test tests::anchors::an_edited_block_is_refused_never_the_wrong_one ... ok test room::save::tests::concurrent_typists_and_saves_converge ... ok test room::save::tests::kill_nine_mid_save_recovers_title_and_bytes ... ok test tests::acks::checks_are_answered_in_order ... ok test tags::rewrite::tests::only_real_tags_change ... ok test tests::acks::lineage_survives_a_restart ... ok test tests::appends_review::delete_whole_tail_then_append_matches ... ok test tests::anchors::an_anchor_follows_its_block_when_lines_shift ... ok test tests::appends_review::frontmatter_map_write_falls_back ... ok test tests::appends_review::trailing_format_marker_bytes ... ok test tests::anchors::history_folds_typing_and_names_jobs ... ok test tests::anchors::anchors_need_a_hash_and_block_ids_work ... ok test index::tests::answers_like_plain_maps ... ok test tests::fanout::bursts_converge_and_reach_history ... ok test index::tests::directory_counts_match_full_scan_after_moves_and_reload ... ok test tests::fanout::a_version_always_matches_its_text ... ok test tests::kill9::child ... ok test tests::fanout::a_crash_before_the_seed_is_durable_never_doubles_text ... ok test tests::fresh::a_note_made_with_text_opens_with_its_frontmatter ... ok test tests::kill9::permanent_delete_after_restore_cannot_delete_the_live_note ... ok test tests::kill9::quick_delete_restore_survives_kill ... ok test tests::kill9::delete_killed_after_its_answer_finishes_once ... ok test tests::fanout::a_first_open_does_not_wait_for_the_disk ... ok test tests::fanout::collaborators_see_typing_before_the_disk ... ok test tests::kill9::restore_delete_forget_does_not_resurrect_after_kill ... ok test tests::fanout::a_crash_between_fan_out_and_disk_loses_nothing ... ok test tests::kill9::quick_restore_delete_survives_kill ... ok test tests::anchors::shifting_lines_never_move_the_wrong_block ... ok test tests::kill9::restore_killed_after_its_answer_finishes_once ... ok test tests::listing::filters_by_tag_kind_and_created_range ... ok test tests::listing::the_first_page_never_waits_for_the_home_to_open ... ok test tests::missing::a_path_tells_here_trash_and_gone ... ok test tests::listing::pages_cover_every_note_once_in_a_stable_order ... ok test tests::missing::a_rename_in_the_app_leaves_the_old_path_moved ... ok test tests::missing::make_from_link_makes_the_note_where_the_link_points_and_undo_takes_it_back ... ok test tests::missing::never_written_paths_are_new_and_bad_ones_too ... ok test tests::missing::notes_in_the_trash_from_before_are_found ... ok test tests::listing::pinning_shows_in_the_list_and_unpinning_leaves_no_trace ... ok test tests::appends::an_append_to_a_long_note_stays_small ... ok test tests::missing::restored_with_a_new_name_reads_as_moved ... ok test tests::missing::a_move_outside_is_found_and_relink_repoints_the_links ... ok test tests::missing::never_made_targets_are_offered_with_their_capitals_and_link_counts ... ok test tests::appends::appends_built_directly_match_the_copy_byte_for_byte ... ok test tests::appends::typists_and_appends_interleave_on_one_note ... ok test tests::opening::a_note_never_typed_in_is_still_forgotten_on_restart ... ok test tests::opening::a_cold_fill_ends_with_every_index_and_right_answers ... ok test tests::opening::identifying_an_already_indexed_file_never_makes_it_a_copy ... ok test tests::opening::a_warm_open_announces_only_what_changed_while_closed ... ok test tests::opening::upgrading_without_a_saved_scan_announces_nothing_for_known_notes ... ok test tests::opening::shutting_down_leaves_the_list_log_empty ... ok test tests::outside::missed_watcher_event_is_caught_before_saving ... ok test tests::opening::typing_saved_only_in_history_survives_a_restart_before_the_first_save ... ok test tests::opening::a_cold_home_indexes_every_file_once_with_its_own_id ... ok test tests::outside::edit_while_closed_is_merged_on_open ... ok test tests::outside::outside_edit_while_typing_merges ... ok test tests::peek::an_open_room_answers_with_its_live_text ... ok test tests::outside::copied_note_gets_a_fresh_id ... ok test tests::peek::reads_files_without_opening_rooms ... ok test tests::pending::apply_places_changes_in_any_order ... ok test tests::peek::returns_at_most_fifty ... ok test tests::pending::yrs_alone_loses_a_parked_change ... ok test tests::listing::a_common_tag_pages_the_same_in_every_order ... ok test tests::outside::outside_create_and_delete ... ok test tests::pending::changes_out_of_order_all_arrive_and_saved_is_true ... ok test tests::renames::a_taken_name_gets_a_number_and_daily_notes_keep_theirs ... ok test tests::listing::the_list_stays_live_with_new_notes_saves_and_outside_edits ... ok test tests::renames::make_note_moves_the_block_and_undoes_as_one_step ... ok test tests::renames::move_block_to_another_note_and_back ... ok test tests::renames::backlinks_list_linked_and_unlinked_mentions ... ok test tests::opening::asking_mid_scan_never_says_not_found_and_never_duplicates_a_day ... ok test tests::renames::undo_keeps_a_made_note_someone_typed_in ... ok test tests::renames::rename_moves_the_file_and_repoints_every_link ... ok test tests::rooms::late_joiner_gets_full_state ... ok test tests::rooms::patches_use_utf16_positions ... ok test tests::rooms::fresh_note_opened_by_many_at_once_is_not_doubled ... ok test tests::rooms::retried_change_applies_once ... ok test tests::rooms::retried_create_makes_one_note ... ok test tests::renames::typing_in_a_linking_note_during_a_rename_is_kept ... ok test tests::rooms::stale_replace_keeps_newer_typing ... ok test tests::saving::a_write_error_keeps_the_change ... ok test tests::rooms::typing_survives_a_concurrent_delete ... ok test tests::renames::typing_a_new_title_renames_the_file_after_a_pause ... ok test tests::listing::the_kept_count_follows_adds_and_deletes ... ok test tests::outside::outside_rename_keeps_the_id ... ok test tests::saving::failed_save_keeps_the_change ... ok test tests::saving::line_endings_and_bom_are_kept ... ok test tests::saving::crash_after_write_does_not_double_text ... ok test tests::renames::backlinks_follow_edits_and_deletes ... ok test tests::saving::crash_before_write_loses_nothing ... ok test tests::saving::title_and_h1_stay_in_step ... ok test tests::saving::first_keystroke_creates_the_file ... ok test tests::outside::own_saves_are_not_outside_edits ... ok test tests::saving::opening_never_writes ... ok test tests::tags::bad_names_are_refused ... ok test tests::saving::an_error_after_the_write_does_not_double_text ... ok test tests::rooms::random_concurrent_editing_converges_without_duplicates ... ok test tests::tags::typing_during_a_tag_rename_is_kept ... ok test tests::outside::polling_finds_outside_changes ... ok test tests::trash::a_closed_note_is_trashed_without_opening_it ... ok test tests::tags::renames_every_tag_and_undoes_as_one_step ... ok test tests::trash::a_never_typed_note_is_simply_forgotten ... ok test tests::trash::a_note_deleted_before_its_first_save_keeps_its_text ... ok test tests::trash::delete_and_restore_answer_once_per_job_id ... ok test tests::trash::a_file_deleted_outside_goes_to_the_trash ... ok test tests::trash::delete_moves_to_trash_and_undo_brings_it_back ... ok test tests::trash::delete_replay_with_a_stale_index_keeps_the_only_file ... ok test tests::trash::forget_deletes_file_and_history_forever ... ok test tests::trash::half_written_trash_folders_never_hide_a_live_note ... ok test tests::trash::folder_rename_and_outside_move_bursts_keep_every_descendant ... ok test tests::saving::saving_does_not_loop ... ok test tests::trash::restore_durably_indexes_a_note_without_an_embedded_id ... ok test tests::trash::restore_with_a_stale_index_really_moves_the_file_back ... ok test tests::trash::restore_keeps_id_and_history_and_takes_a_free_name ... ok test tests::trash::the_sweep_empties_only_notes_older_than_thirty_days ... ok test tests::trash::trash_ids_never_reach_another_home ... ok test tests::trash::trash_pages_newest_first ... ok test tests::trash::trashed_notes_leave_search_lists_and_backlinks_and_come_back ... ok test tests::unloading::an_unused_home_unloads_and_answers_after ... ok test tests::unloading::a_connected_client_keeps_it ... ok test text::tests::mixed_endings_take_the_majority ... ok test tests::tags::a_big_tag_rename_never_stalls_typing ... ok test text::tests::styles_round_trip ... ok test trash::tests::a_note_without_details_still_reads ... ok test trash::tests::details_without_a_note_are_not_a_note ... ok test trash::tests::missing_details_never_age_trash_from_the_notes_old_mtime ... ok test versions::tests::folds_runs_by_author_kind_and_gap ... ok test ydoc::tests::fork_and_merge_keeps_concurrent_typing ... ok test ydoc::tests::reapplying_an_update_changes_nothing ... ok test ydoc::tests::utf16_offsets ... ok test text::tests::uniform_files_round_trip_exactly ... ok test tests::unloading::an_open_note_keeps_it ... ok test tests::saving::nonstop_typing_still_saves ... ok test tests::storm::outside_rewrites_during_a_storm_all_land ... ok test tests::writers::every_writer_at_once_with_the_watcher ... ok test tests::appends_review::fuzz_deletes_restarts_parked ... ok test tests::writers::every_writer_at_once_loses_and_doubles_nothing ... ok test room::save::tests::saved_bytes_and_titles_match_the_old_copy_path ... ok test tests::renames::a_crash_mid_rename_resumes_and_applies_each_edit_once ... ok test tests::trash::a_crash_mid_delete_finishes_on_restart_exactly_once ... ok test tests::tags::a_crash_mid_rename_resumes_and_renames_each_tag_once ... ok test result: ok. 220 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 7.02s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_perf-1052020ed1871574) running 6 tests test args::tests::parses_trash_only_mode ... ok test scenarios::soak::tests::slope_of_a_line ... ok test scenarios::storm::tests::typing_stops_before_the_newline_ahead_of_outside_lines ... ok test stats::tests::summary_max_is_the_largest_observed_sample_across_runs ... ok test stats::tests::medians_of_runs_and_pooled_singles ... ok test live::tests::frames_round_trip_and_keystrokes_stay_whole ... ok test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/bin/storage-bench.rs (/home/kayg/Developer/calternal-target-570/debug/deps/storage_bench-aaee1f6d1cd60c74) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_plugin_hello-53ca8ca6107399a0) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_prefs-34d1a5e6c699003e) running 9 tests test tests::keys_are_an_area_then_dotted_parts ... ok test tests::people_do_not_share_preferences ... ok test tests::a_change_on_one_device_reaches_the_other ... ok test tests::set_then_get_and_survive_a_restart ... ok test tests::saving_the_same_value_again_is_quiet ... ok test tests::a_retry_with_the_same_key_acts_once ... ok test tests::quick_saves_from_two_devices_all_land ... ok test tests::bad_keys_and_big_values_get_friendly_errors ... ok test tests::at_most_200_keys_but_existing_ones_can_still_change ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_search-ff67ffa340bd9f12) running 13 tests test fuzzy::tests::distance_counts_swaps_as_one ... ok test fuzzy::tests::common_typos_are_fixed ... ok test query::tests::lone_symbols_are_ignored ... ok test query::tests::dates_cover_whole_periods ... ok test read::tests::block_ids_are_found ... ok test query::tests::words_filters_and_phrases ... ok test read::tests::renumbering_shifts_placeholders ... ok test read::tests::excerpts_mark_matches_in_context ... ok test text::tests::bigrams_cover_unspaced_scripts ... ok test text::tests::fold_drops_accents_and_case ... ok test read::tests::text_matches_like_the_index ... ok test text::tests::words_keep_indic_vowel_signs ... ok test schema::tests::an_older_index_gets_its_titles_filled ... ok test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/search.rs (/home/kayg/Developer/calternal-target-570/debug/deps/search-8eb084de93ee7287) running 12 tests test searches_answer_while_indexing_runs ... ok test an_empty_search_shows_recent_things ... ok test titles_first_then_recent_use_then_body ... ok test results_show_why_they_matched_and_where ... ok test filters_by_tag_kind_and_date ... ok test prefixes_and_typos_are_forgiven ... ok test odd_input_never_breaks_search ... ok test every_script_is_searchable ... ok test behind_answers_at_once_and_catching_up_is_announced_once ... ok test a_restart_heals_whatever_was_missed ... ok test people_only_ever_find_their_own_things ... ok test the_index_follows_changes_live ... ok test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.12s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_server-b018c8f458805a08) running 2 tests test rooms::tests::frames_round_trip ... ok test compress::tests::big_answers_are_compressed_and_small_ones_are_not ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/access.rs (/home/kayg/Developer/calternal-target-570/debug/deps/access-b270c95875ec56fa) running 1 test test one_line_per_request_with_no_secrets ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/live.rs (/home/kayg/Developer/calternal-target-570/debug/deps/live-2ebb72560f7b157e) running 6 tests test signed_out_calls_get_a_friendly_refusal ... ok test health_answers_without_signing_in ... ok test a_stranger_token_asks_for_a_refresh ... ok test errors_carry_codes_not_internals ... ok test reconnecting_catches_up_from_a_token ... ok test http_to_journal_to_websocket ... ok test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s Running tests/signout.rs (/home/kayg/Developer/calternal-target-570/debug/deps/signout-3993512dadca5b39) running 1 test test signing_a_device_out_closes_its_live_socket ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s Running tests/web.rs (/home/kayg/Developer/calternal-target-570/debug/deps/web-4c0ff73bf5023b52) running 3 tests test files_deep_links_and_the_api_live_side_by_side ... ok test precompressed_files_are_sent_as_they_are_to_whoever_accepts_them ... ok test caching_and_security_headers_follow_what_each_file_is ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_store-dc5119e9b339ecbc) running 8 tests test tests::a_store_with_a_listener_or_a_copy_is_in_use ... ok test tests::commits_are_read_back_in_order ... ok test tests::idempotency_is_saved_with_the_events_or_not_at_all ... ok test tests::tokens_survive_a_restart_and_reject_strangers ... ok test tests::live_entries_arrive_in_journal_order ... ok test tests::reads_are_capped ... ok test tests::old_idempotency_records_are_swept_when_the_store_opens ... ok test tests::old_idempotency_records_are_swept_after_commits ... ok test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-570/debug/deps/calternal_testkit-84605cced32b9d05) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_attachments running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_auth running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_backdrops running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_core running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_daily running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_engine running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_fixtures running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_fsio running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_memory running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_migrate_v0 running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_notes running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_plugin_hello running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_prefs running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_search running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_server running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_store running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_testkit running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s ``` </details>
Author
Owner

Independent review of PR #574 started and is in progress. Detached review head b97d6b4909, comparison base origin/dev b42e8b9819. Independent review progress: all production saved-base assignments were traced (load, outside merge, successful save). Each corresponding title-cache update uses that exact base. The actor serializes mutations across the save awaits. yrs 0.28.0 GetString ignores formatting markers and deleted items; state encoding includes pending updates, so extra differential tests exercise pending cross-writer dependencies, format marks, root-map changes, deletes, empty/whitespace notes, Unicode, outside edits, restored text, tag patches and fresh Notes/Home restarts. Tests compare file bytes, CRDT state, title-history update bytes and versions with the old reconstruction path. Initial compilation passed; the next run is queued behind the shared build slots. No correctness finding yet.

Independent review of PR #574 started and is in progress. Detached review head b97d6b490992fc24c1fa9eb73f11441c14b9c57e, comparison base origin/dev b42e8b98192c2b30b8a4b0188a01c58457d3bfa0. Independent review progress: all production saved-base assignments were traced (load, outside merge, successful save). Each corresponding title-cache update uses that exact base. The actor serializes mutations across the save awaits. yrs 0.28.0 GetString ignores formatting markers and deleted items; state encoding includes pending updates, so extra differential tests exercise pending cross-writer dependencies, format marks, root-map changes, deletes, empty/whitespace notes, Unicode, outside edits, restored text, tag patches and fresh Notes/Home restarts. Tests compare file bytes, CRDT state, title-history update bytes and versions with the old reconstruction path. Initial compilation passed; the next run is queued behind the shared build slots. No correctness finding yet.
Author
Owner

Review test update: 10 focused tests passed, including SIGKILL before/after replacement, SIGKILL after the save reply, the 196-pair title matrix, pending deletes, live trailing formatting markers and failure retries. The fuzz run stopped in test setup while opening notes/meta.db (unable to open database file), without a differential mismatch. This process has a 1024-descriptor limit; the first harness accumulated fresh server background tasks across all 24 seeds. I changed the review harness to tear down its runtime between seeds and queued the full notes/fsio tests and notes clippy. This is a review-harness issue, not a demonstrated PR regression.

Review test update: 10 focused tests passed, including SIGKILL before/after replacement, SIGKILL after the save reply, the 196-pair title matrix, pending deletes, live trailing formatting markers and failure retries. The fuzz run stopped in test setup while opening notes/meta.db (unable to open database file), without a differential mismatch. This process has a 1024-descriptor limit; the first harness accumulated fresh server background tasks across all 24 seeds. I changed the review harness to tear down its runtime between seeds and queued the full notes/fsio tests and notes clippy. This is a review-harness issue, not a demonstrated PR regression.
Author
Owner

Independent defensive review of PR #574 completed.

Independent correctness review of PR #574: SAFE TO MERGE

Reviewed head b97d6b490992fc24c1fa9eb73f11441c14b9c57e (origin/issue/570-save-copy), detached review worktree, against origin/dev b42e8b98192c2b30b8a4b0188a01c58457d3bfa0. The comparison base is also the merge base. The PR head was checked again before posting.

No correctness regression found. No required changes.

The change caches exactly the two strings the old save path extracted from the saved CRDT. It does not construct different Yjs updates or change item origins, unlike the append optimization in #529.

I traced every production assignment to Room.base_state:

  • Load initializes the cache after pending-save recovery and outside-file reconciliation, from reconstructed saved state, rather than unsaved live history.
  • Outside merge refreshes it from the private base fork, rather than the merged live document.
  • Successful save refreshes it from the text captured with the saved state. The actor handles one command at a time, so typing cannot mutate the document across the save awaits. There is no await between assigning the cache and assigning its corresponding saved state.
  • A save with identical file bytes leaves the saved base alone. Formatting, root-map changes and deletes that leave the saved title strings unchanged do not require refreshing that projection. Version restores and tag patches change the live document; they correctly leave the saved comparison base alone until a save.

I read yrs 0.28.0 types/text.rs (GetString), transaction.rs (full-state encoding, delete sets and pending-update integration), plus the save, load, merge, actor, history and file replacement paths. Text extraction includes live string items and ignores formatting markers and deleted items. The title parser and precedence conditions are unchanged.

Added review tests in crates/notes/src/room/save/review.rs, wired through save/tests.rs. They remain in this worktree; no commits or pushes were made.

  • 2,424 differential saves, 24 seeds, 264 fresh Notes/Home restarts. Random whole and partial deletes, empty and whitespace notes, emoji and ZWJ sequences, H1-only and frontmatter-title-only changes, conflicting titles, formatting, root-map insertion/removal, cross-writer dependent updates delivered out of order and retried, outside edits with CRLF/BOM, version-based replacement and tag-renaming patches. Restarts occur with both saved and unsaved live history. Every save compares against the old reconstruction path: exact file bytes, full encoded CRDT state, title-history update bytes, resulting version and history replay text. Cache values are also checked against the reconstructed saved base after mutations and recovery.
  • 196 saved-base/live-text pairs. Missing, empty, conflicting, duplicate and malformed frontmatter titles, fenced H1s, blank headings, whitespace and Unicode.
  • Directed pending deletes and formatting. Delete set arrives before its insert, then save, reload, insert and retry. A live closing formatting marker trails the text before a subsequent title-only save. All differential checks pass.
  • Failure and retry paths. WriteFails, ErrorAfterWrite, an outside edit missed by the watcher and discovered during save, then a title-only edit after the save retry. Saved-base cache remains consistent.
  • Actual SIGKILL. The PR's existing tests kill before file replacement and after replacement but before promotion. My additional test kills immediately after the actual Notes::save reply. On restart, its exact acknowledged file hash, text and version survive; the recovered cache and following title-only save agree with the old path. The added test verifies termination signal 9.
  • Concurrent typists. The PR's paused-save test passed with three real client sessions, checking file, clients and history. The full notes suite also passed, including transport pending/resync, restore, tag, external-edit and save-failure coverage.

Crash durability ordering is unchanged: pending history is durable before replacement; the temporary file is fsynced; replacement fsyncs its directory; history promotion is awaited before save returns. Notes history retains WAL with synchronous=FULL. A physical power cut was not injected; the power-loss assessment is from this unchanged persistence sequence, supplemented by the process-kill tests.

Final gates: 238 passed, 0 failed, 1 pre-existing ignored performance test (index::tests::reload_speed). Formatting and notes clippy passed. All local builds/tests/clippy used the required build-slot wrapper, cargo -j4, and CARGO_TARGET_DIR=/home/kayg/Developer/calternal-target-574r.

Review harness note: an initial compile needed the yrs observer's subscription key. The first fuzz harness then accumulated server background tasks across all seeds and stopped opening a temporary SQLite database under the process's 1,024-descriptor limit. Each seed now tears down its runtime. The complete rerun below passed; neither setup failure was an old/new differential failure.

Full final gate output, verbatim:

GATE: cargo fmt --all --check
GATE EXIT: 0
GATE: cargo test -j4 -p calternal-notes -p calternal-fsio --lib -- --test-threads=4 --nocapture
   Compiling calternal-fsio v0.1.0 (/home/kayg/Developer/calternal-wt-574r/crates/fsio)
   Compiling calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-574r/crates/notes)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 5.64s
     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-574r/debug/deps/calternal_fsio-a183b1a7bb6b5526)

running 12 tests
test tests::atomic_write_replaces_and_leaves_no_temp_files ... ok
test beneath::tests::walking_without_openat2_refuses_symlinks_too ... ok
test beneath::tests::temp_files_persist_without_replacing_and_vanish_when_dropped ... ok
test beneath::tests::paths_that_climb_out_are_refused ... ok
test tests::case_only_rename_works_and_other_clashes_are_refused ... ok
test tests::names_fold_case_and_unicode_form ... ok
test tests::failed_write_keeps_the_old_file ... ok
test tests::only_one_process_owns_a_data_folder ... ok
test tests::unique_names_skip_case_and_form_clashes ... ok
test tests::prepared_writes_land_only_when_placed ... ok
test tests::write_unless_changed_keeps_someone_elses_version ... ok
test tests::big_writes_arrive_whole ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-574r/debug/deps/calternal_notes-6ac741039e501ea4)

running 227 tests
test anchor::tests::lines_by_utf16_index ... ok
test backlinks::tests::snippets_are_the_trimmed_line ... ok
test anchor::tests::hash_is_plain_sha256_hex ... ok
test backlinks::tests::links_are_fold_keys_and_lines ... ok
test blocks::tests::finds_list_children_and_heading_sections ... ok
test blocks::tests::line_edits ... ok
test blocks::tests::shapes_keep_markers ... ok
test blocks::tests::titles_from_the_first_sentence ... ok
test bulk::undo::tests::inverse_restores_the_text ... ok
test diff::tests::an_inserted_line_starts_at_a_line_start ... ok
test diff::tests::emoji_positions_are_utf16 ... ok
test diff::tests::small_change_is_a_small_edit ... ok
test frontmatter::tests::h1_skips_code_and_frontmatter ... ok
test frontmatter::tests::quoting ... ok
test frontmatter::tests::reads_keys ... ok
test frontmatter::tests::set_adds_a_line_or_a_block ... ok
test frontmatter::tests::set_changes_only_the_value ... ok
test frontmatter::tests::set_is_utf16_aware ... ok
test history::tests::appends_are_ordered_and_readable ... ok
test history::tests::pending_save_promotes_to_base ... ok
test index::tests::a_shared_path_answers_with_the_newest_note ... ok
test index::tests::a_torn_tail_cannot_swallow_the_next_durable_mapping ... ok
test bulk::undo::tests::inverse_roundtrips ... ok
test diff::tests::edits_turn_old_into_new ... ok
test index::tests::compacts_when_it_grows ... ok
test index::tests::reload_speed ... ignored
test index::tests::survives_reload_renames_and_torn_lines ... ok
test diff::tests::edits_never_split_a_character ... ok
test index::tests::under_finds_exact_paths_and_descendants_with_folded_names ... ok
test index::tests::under_keeps_shadowed_paths_for_watcher_removal ... ok
test links::tests::finds_standard_and_old_style_links ... ok
test index::tests::unloads_and_reloads ... ok
test links::tests::nested_brackets_in_text ... ok
test links::tests::relative_paths ... ok
test links::tests::resolves_relative_to_the_linking_note ... ok
test links::tests::retarget_follows_the_title_and_keeps_custom_text ... ok
test links::tests::retarget_from_a_subfolder ... ok
test links::tests::skips_code_images_and_the_web ... ok
test links::tests::retarget_matches_case_and_unicode_forms ... ok
test meta::tests::cursors_round_trip_and_reject_junk ... ok
test meta::tests::snippets_skip_frontmatter_and_headings ... ok
test missing::targets::tests::a_name_is_the_file_without_its_folder_and_extension ... ok
test missing::targets::tests::names_rank_exact_then_prefix_then_word_then_inside ... ok
test rename::tests::clash_numbers ... ok
test rename::tests::daily_names ... ok
test rename::tests::h1_is_set_or_added ... ok
test room::acks::tests::varuints_round_trip ... ok
test room::edit::tests::checks_bounds_overlap_and_surrogates ... ok
test room::save::tests::concurrent_typists_and_saves_converge ... ok
test room::save::tests::review::review_acknowledged_save_child ... ok
test room::save::tests::kill_nine_mid_save_recovers_title_and_bytes ... ok
REVIEW574 pending delete before insert, reload, deleted heading and live trailing format markers agree
test room::save::tests::review::review_delete_set_before_insert_and_trailing_format_marks ... ok
REVIEW574 failure retry: WriteFails, ErrorAfterWrite, save-time external merge and following title-only save agree
test room::save::tests::review::review_failed_save_retry_and_outside_retry_keep_base_cache ... ok
REVIEW574 SIGKILL after Notes::save reply: exact file hash, text, version, recovered cache and next title-only save agree
test room::save::tests::review::review_kill_nine_after_save_reply_preserves_exact_file_history_and_version ... ok
test index::tests::directory_counts_match_full_scan_after_moves_and_reload ... ok
test room::save::tests::save_kill_child ... ok
test index::tests::answers_like_plain_maps ... ok
test room::save::tests::title_sync_does_not_decode_the_saved_document ... ok
test scan::tests::day_ids_name_their_files ... ok
test scan::tests::state_round_trips_and_skips_odd_names ... ok
test search::tests::a_note_becomes_a_document ... ok
test search::tests::plain_search_lines_borrow_their_text ... ok
test search::tests::search_lines_keep_link_text_and_replacement_order ... ok
test search::tests::titles_fall_back_to_the_file_name ... ok
test smartline::tests::a_plain_line ... ok
test smartline::tests::only_tags_are_words ... ok
test smartline::tests::trailing_tags_only ... ok
test stamp::tests::formats_with_offset ... ok
test tags::front::tests::every_way_of_writing_tags ... ok
test tags::merge::tests::property_tags_go_with_their_comma_or_line ... ok
test tags::merge::tests::text_tags_go_with_one_space ... ok
test tags::rewrite::tests::merging_keeps_every_tag_once_at_most ... ok
test tags::rewrite::tests::nothing_to_do_is_no_edits ... ok
test tags::rewrite::tests::only_real_tags_change ... ok
test tags::rewrite::tests::positions_count_utf16 ... ok
test tags::rewrite::tests::properties_change_name_only ... ok
test tags::rewrite::tests::rename_and_back_is_the_same_text ... ok
test tags::rewrite::tests::renames_tags_and_nested_tags_only ... ok
test tags::rewrite::tests::renaming_onto_an_existing_tag_merges ... ok
test tags::rewrite::tests::words_code_links_and_headings ... ok
test tags::scan::tests::code_is_never_tags ... ok
test tags::scan::tests::hash_free_lines_still_open_and_close_code_fences ... ok
test tags::scan::tests::headings_and_quotes_keep_their_tags ... ok
test tags::scan::tests::link_targets_and_addresses_are_never_tags ... ok
test tags::scan::tests::not_tags ... ok
test tags::scan::tests::plain_tags ... ok
test tags::tests::nesting_and_cleaning ... ok
test tags::tests::properties_and_text ... ok
test tests::acks::an_older_lineage_is_refused_before_anything_is_sent ... ok
test tests::acks::checks_are_answered_in_order ... ok
test tests::acks::lineage_survives_a_restart ... ok
test tests::acks::saved_means_the_change_is_in_history ... ok
test tests::anchors::an_anchor_follows_its_block_when_lines_shift ... ok
test tests::anchors::an_edited_block_is_refused_never_the_wrong_one ... ok
test tests::anchors::anchors_need_a_hash_and_block_ids_work ... ok
test tests::anchors::history_folds_typing_and_names_jobs ... ok
REVIEW574 completed seed 1
test tests::anchors::shifting_lines_never_move_the_wrong_block ... ok
test tests::appends::an_append_to_a_long_note_stays_small ... ok
REVIEW574 completed seed 2
test tests::appends::appends_built_directly_match_the_copy_byte_for_byte ... ok
REVIEW574 completed seed 3
test tests::appends::typists_and_appends_interleave_on_one_note ... ok
test tests::appends_review::delete_whole_tail_then_append_matches ... ok
test tests::appends_review::frontmatter_map_write_falls_back ... ok
test room::save::tests::saved_bytes_and_titles_match_the_old_copy_path ... ok
A2 old=[1, 1, 233, 7, 0, 196, 232, 7, 2, 9, 11, 3, 65, 50, 10, 0]
A2 new=[1, 1, 233, 7, 0, 196, 232, 7, 2, 9, 11, 3, 65, 50, 10, 0]
byte-identical=true
test tests::appends_review::trailing_format_marker_bytes ... ok
test tests::fanout::a_crash_before_the_seed_is_durable_never_doubles_text ... ok
REVIEW574 completed seed 4
test tests::fanout::a_crash_between_fan_out_and_disk_loses_nothing ... ok
test tests::fanout::a_first_open_does_not_wait_for_the_disk ... ok
REVIEW574 completed seed 5
test tests::fanout::a_version_always_matches_its_text ... ok
test tests::fanout::bursts_converge_and_reach_history ... ok
REVIEW574 title matrix: 196 base/live pairs, including absent/empty/conflicting/duplicate/malformed titles, hidden H1s, whitespace and Unicode
test room::save::tests::review::review_title_precedence_edge_matrix ... ok
test tests::fresh::a_note_made_with_text_opens_with_its_frontmatter ... ok
test tests::kill9::child ... ok
test tests::kill9::delete_killed_after_its_answer_finishes_once ... ok
test tests::kill9::permanent_delete_after_restore_cannot_delete_the_live_note ... ok
test tests::kill9::quick_delete_restore_survives_kill ... ok
test tests::kill9::quick_restore_delete_survives_kill ... ok
test tests::kill9::restore_delete_forget_does_not_resurrect_after_kill ... ok
test tests::kill9::restore_killed_after_its_answer_finishes_once ... ok
test tests::fanout::collaborators_see_typing_before_the_disk ... ok
test tests::listing::filters_by_tag_kind_and_created_range ... ok
test tests::listing::pages_cover_every_note_once_in_a_stable_order ... ok
REVIEW574 completed seed 6
test tests::listing::pinning_shows_in_the_list_and_unpinning_leaves_no_trace ... ok
test tests::listing::the_first_page_never_waits_for_the_home_to_open ... ok
test tests::listing::a_common_tag_pages_the_same_in_every_order ... ok
REVIEW574 completed seed 7
test tests::listing::the_list_stays_live_with_new_notes_saves_and_outside_edits ... ok
fast appends: 4003
test tests::appends_review::fuzz_deletes_restarts_parked ... ok
test tests::missing::a_path_tells_here_trash_and_gone ... ok
test tests::missing::a_rename_in_the_app_leaves_the_old_path_moved ... ok
test tests::missing::make_from_link_makes_the_note_where_the_link_points_and_undo_takes_it_back ... ok
test tests::missing::never_made_targets_are_offered_with_their_capitals_and_link_counts ... ok
test tests::missing::never_written_paths_are_new_and_bad_ones_too ... ok
test tests::missing::notes_in_the_trash_from_before_are_found ... ok
test tests::missing::restored_with_a_new_name_reads_as_moved ... ok
test tests::missing::a_move_outside_is_found_and_relink_repoints_the_links ... ok
test tests::opening::a_cold_fill_ends_with_every_index_and_right_answers ... ok
test tests::opening::a_note_never_typed_in_is_still_forgotten_on_restart ... ok
test tests::opening::a_warm_open_announces_only_what_changed_while_closed ... ok
test tests::opening::a_cold_home_indexes_every_file_once_with_its_own_id ... ok
test tests::opening::identifying_an_already_indexed_file_never_makes_it_a_copy ... ok
test tests::opening::shutting_down_leaves_the_list_log_empty ... ok
test tests::opening::typing_saved_only_in_history_survives_a_restart_before_the_first_save ... ok
test tests::listing::the_kept_count_follows_adds_and_deletes ... ok
test tests::opening::upgrading_without_a_saved_scan_announces_nothing_for_known_notes ... ok
REVIEW574 completed seed 8
test tests::outside::edit_while_closed_is_merged_on_open ... ok
test tests::outside::missed_watcher_event_is_caught_before_saving ... ok
test tests::outside::copied_note_gets_a_fresh_id ... ok
test tests::opening::asking_mid_scan_never_says_not_found_and_never_duplicates_a_day ... ok
test tests::outside::outside_create_and_delete ... ok
test tests::outside::outside_edit_while_typing_merges ... ok
REVIEW574 completed seed 9
test tests::outside::outside_rename_keeps_the_id ... ok
test tests::peek::an_open_room_answers_with_its_live_text ... ok
test tests::peek::reads_files_without_opening_rooms ... ok
test tests::peek::returns_at_most_fifty ... ok
test tests::pending::apply_places_changes_in_any_order ... ok
test tests::pending::changes_out_of_order_all_arrive_and_saved_is_true ... ok
test tests::pending::yrs_alone_loses_a_parked_change ... ok
REVIEW574 completed seed 10
test tests::outside::own_saves_are_not_outside_edits ... ok
test tests::renames::a_taken_name_gets_a_number_and_daily_notes_keep_theirs ... ok
test tests::outside::polling_finds_outside_changes ... ok
test tests::renames::backlinks_list_linked_and_unlinked_mentions ... ok
test tests::renames::make_note_moves_the_block_and_undoes_as_one_step ... ok
test tests::renames::move_block_to_another_note_and_back ... ok
test tests::renames::rename_moves_the_file_and_repoints_every_link ... ok
REVIEW574 completed seed 11
test tests::renames::typing_a_new_title_renames_the_file_after_a_pause ... ok
test tests::renames::backlinks_follow_edits_and_deletes ... ok
test tests::renames::undo_keeps_a_made_note_someone_typed_in ... ok
test tests::renames::typing_in_a_linking_note_during_a_rename_is_kept ... ok
test tests::rooms::late_joiner_gets_full_state ... ok
test tests::rooms::patches_use_utf16_positions ... ok
test tests::rooms::fresh_note_opened_by_many_at_once_is_not_doubled ... ok
test tests::rooms::retried_change_applies_once ... ok
test tests::rooms::retried_create_makes_one_note ... ok
test tests::rooms::stale_replace_keeps_newer_typing ... ok
test tests::rooms::typing_survives_a_concurrent_delete ... ok
test tests::saving::a_write_error_keeps_the_change ... ok
REVIEW574 completed seed 12
test tests::rooms::random_concurrent_editing_converges_without_duplicates ... ok
test tests::saving::an_error_after_the_write_does_not_double_text ... ok
test tests::saving::crash_after_write_does_not_double_text ... ok
test tests::saving::failed_save_keeps_the_change ... ok
REVIEW574 completed seed 13
test tests::saving::first_keystroke_creates_the_file ... ok
test tests::saving::line_endings_and_bom_are_kept ... ok
test tests::saving::crash_before_write_loses_nothing ... ok
REVIEW574 completed seed 14
test tests::saving::opening_never_writes ... ok
REVIEW574 completed seed 15
test tests::saving::saving_does_not_loop ... ok
test tests::saving::title_and_h1_stay_in_step ... ok
REVIEW574 completed seed 16
test tests::saving::nonstop_typing_still_saves ... ok
test tests::renames::a_crash_mid_rename_resumes_and_applies_each_edit_once ... ok
REVIEW574 completed seed 17
test tests::storm::outside_rewrites_during_a_storm_all_land ... ok
test tests::tags::bad_names_are_refused ... ok
test tests::tags::renames_every_tag_and_undoes_as_one_step ... ok
test tests::tags::typing_during_a_tag_rename_is_kept ... ok
test tests::trash::a_closed_note_is_trashed_without_opening_it ... ok
test tests::tags::a_big_tag_rename_never_stalls_typing ... ok
test tests::trash::a_file_deleted_outside_goes_to_the_trash ... ok
test tests::trash::a_never_typed_note_is_simply_forgotten ... ok
test tests::trash::a_note_deleted_before_its_first_save_keeps_its_text ... ok
test tests::trash::delete_and_restore_answer_once_per_job_id ... ok
test tests::trash::delete_moves_to_trash_and_undo_brings_it_back ... ok
test tests::trash::delete_replay_with_a_stale_index_keeps_the_only_file ... ok
test tests::trash::folder_rename_and_outside_move_bursts_keep_every_descendant ... ok
test tests::trash::forget_deletes_file_and_history_forever ... ok
test tests::trash::half_written_trash_folders_never_hide_a_live_note ... ok
test tests::trash::restore_durably_indexes_a_note_without_an_embedded_id ... ok
test tests::trash::restore_keeps_id_and_history_and_takes_a_free_name ... ok
test tests::trash::restore_with_a_stale_index_really_moves_the_file_back ... ok
test tests::trash::the_sweep_empties_only_notes_older_than_thirty_days ... ok
test tests::trash::trash_ids_never_reach_another_home ... ok
REVIEW574 completed seed 18
test tests::trash::trash_pages_newest_first ... ok
test tests::trash::trashed_notes_leave_search_lists_and_backlinks_and_come_back ... ok
REVIEW574 completed seed 19
test tests::unloading::a_connected_client_keeps_it ... ok
REVIEW574 completed seed 20
test tests::unloading::an_open_note_keeps_it ... ok
test tests::unloading::an_unused_home_unloads_and_answers_after ... ok
REVIEW574 completed seed 21
test tests::writers::every_writer_at_once_loses_and_doubles_nothing ... ok
test tests::writers::every_writer_at_once_with_the_watcher ... ok
test text::tests::mixed_endings_take_the_majority ... ok
test text::tests::styles_round_trip ... ok
test text::tests::uniform_files_round_trip_exactly ... ok
test trash::tests::a_note_without_details_still_reads ... ok
test trash::tests::details_without_a_note_are_not_a_note ... ok
test trash::tests::missing_details_never_age_trash_from_the_notes_old_mtime ... ok
test versions::tests::folds_runs_by_author_kind_and_gap ... ok
test ydoc::tests::fork_and_merge_keeps_concurrent_typing ... ok
test ydoc::tests::reapplying_an_update_changes_nothing ... ok
test ydoc::tests::utf16_offsets ... ok
REVIEW574 completed seed 22
REVIEW574 completed seed 23
test tests::trash::a_crash_mid_delete_finishes_on_restart_exactly_once ... ok
REVIEW574 completed seed 24
REVIEW574 fuzz operation counts: [177, 198, 178, 166, 183, 173, 164, 181, 154, 170, 166, 180, 162, 148]
REVIEW574 differential: 2424 saves, 264 fresh Notes/Home restarts; file bytes, CRDT state, title-update bytes, history replay and versions agree
test room::save::tests::review::review_fuzz_old_new_bytes_history_versions_and_restarts ... ok
test tests::tags::a_crash_mid_rename_resumes_and_renames_each_tag_once ... ok

test result: ok. 226 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 13.39s

GATE EXIT: 0
GATE: cargo clippy -j4 -p calternal-notes --all-targets -- -D warnings
    Checking cfg-if v1.0.5
    Checking rand_core v0.10.1
    Checking libc v0.2.190
    Checking once_cell v1.21.4
    Checking bitflags v2.13.2
    Checking pin-project-lite v0.2.17
    Checking serde_core v1.0.229
    Checking smallvec v1.16.3
    Checking linux-raw-sys v0.12.1
    Checking typenum v1.20.1
    Checking rustix v1.1.5
    Checking getrandom v0.4.3
    Checking hybrid-array v0.4.15
    Checking zmij v1.0.23
    Checking parking v2.2.1
    Checking itoa v1.0.18
    Checking cpufeatures v0.3.1
    Checking memchr v2.8.3
    Checking fastrand v2.5.0
    Checking event-listener v5.4.2
    Checking tracing-core v0.1.36
    Checking foldhash v0.2.0
    Checking scopeguard v1.2.0
    Checking hashbrown v0.17.1
    Checking lock_api v0.4.14
    Checking serde v1.0.229
    Checking serde_json v1.0.154
    Checking tracing v0.1.44
    Checking uuid v1.28.0
    Checking thiserror v2.0.21
    Checking ref-cast v1.0.27
    Checking event-listener-strategy v0.5.4
    Checking inotify-sys v0.1.8
    Checking parking_lot_core v0.9.12
    Checking crossbeam-utils v0.8.23
    Checking crypto-common v0.2.2
    Checking block-buffer v0.12.1
    Checking hashbrown v0.14.5
    Checking tinyvec v1.13.3
    Checking dyn-clone v1.0.20
   Compiling time-core v0.1.9
    Checking log v0.4.34
    Checking same-file v1.0.6
    Checking const-oid v0.10.2
   Compiling num-conv v0.2.2
    Checking walkdir v2.5.0
    Checking dashmap v6.2.1
    Checking digest v0.11.3
   Compiling time-macros v0.2.32
    Checking mio v1.2.4
    Checking unicode-normalization v0.1.25
    Checking schemars v1.2.3
    Checking tokio v1.53.2
    Checking libsqlite3-sys v0.38.2
    Checking inotify v0.11.5
    Checking async-lock v3.4.2
    Checking arc-swap v1.9.2
    Checking hashlink v0.12.2
    Checking tempfile v3.27.0
    Checking wait-timeout v0.2.1
    Checking smallstr v0.3.1
    Checking notify-types v2.1.0
    Checking bit-vec v0.10.1
    Checking quick-error v1.2.3
    Checking arrayvec v0.7.8
    Checking fnv v1.0.7
    Checking fallible-streaming-iterator v0.1.9
    Checking fallible-iterator v0.3.0
    Checking powerfmt v0.2.1
    Checking deranged v0.5.9
    Checking constant_time_eq v0.4.2
    Checking blake3 v1.8.7
    Checking calternal-core v0.1.0 (/home/kayg/Developer/calternal-wt-574r/crates/core)
    Checking rusqlite v0.40.2
    Checking rusty-fork v0.3.1
    Checking bit-set v0.11.1
    Checking notify v8.2.0
    Checking yrs v0.28.0
    Checking num-traits v0.2.19
    Checking calternal-fsio v0.1.0 (/home/kayg/Developer/calternal-wt-574r/crates/fsio)
    Checking sha2 v0.11.1
    Checking chacha20 v0.10.2
    Checking rand v0.10.3
    Checking calternal-memory v0.1.0 (/home/kayg/Developer/calternal-wt-574r/crates/memory)
    Checking rand_xorshift v0.5.0
    Checking regex-syntax v0.8.11
    Checking core_detect v1.0.0
    Checking base64 v0.22.1
    Checking time v0.3.55
    Checking hashbrown v0.16.1
    Checking unicode-segmentation v1.13.3
    Checking similar v3.2.0
    Checking unarray v0.1.4
    Checking calternal-testkit v0.1.0 (/home/kayg/Developer/calternal-wt-574r/crates/testkit)
    Checking proptest v1.12.0
    Checking calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-574r/crates/notes)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.16s
GATE EXIT: 0
Independent defensive review of PR #574 completed. # Independent correctness review of PR #574: SAFE TO MERGE Reviewed head `b97d6b490992fc24c1fa9eb73f11441c14b9c57e` (`origin/issue/570-save-copy`), detached review worktree, against `origin/dev` `b42e8b98192c2b30b8a4b0188a01c58457d3bfa0`. The comparison base is also the merge base. The PR head was checked again before posting. No correctness regression found. No required changes. The change caches exactly the two strings the old save path extracted from the saved CRDT. It does not construct different Yjs updates or change item origins, unlike the append optimization in #529. I traced every production assignment to `Room.base_state`: - Load initializes the cache after pending-save recovery and outside-file reconciliation, from reconstructed saved state, rather than unsaved live history. - Outside merge refreshes it from the private base fork, rather than the merged live document. - Successful save refreshes it from the text captured with the saved state. The actor handles one command at a time, so typing cannot mutate the document across the save awaits. There is no await between assigning the cache and assigning its corresponding saved state. - A save with identical file bytes leaves the saved base alone. Formatting, root-map changes and deletes that leave the saved title strings unchanged do not require refreshing that projection. Version restores and tag patches change the live document; they correctly leave the saved comparison base alone until a save. I read yrs 0.28.0 `types/text.rs` (`GetString`), `transaction.rs` (full-state encoding, delete sets and pending-update integration), plus the save, load, merge, actor, history and file replacement paths. Text extraction includes live string items and ignores formatting markers and deleted items. The title parser and precedence conditions are unchanged. Added review tests in `crates/notes/src/room/save/review.rs`, wired through `save/tests.rs`. They remain in this worktree; no commits or pushes were made. - **2,424 differential saves, 24 seeds, 264 fresh Notes/Home restarts.** Random whole and partial deletes, empty and whitespace notes, emoji and ZWJ sequences, H1-only and frontmatter-title-only changes, conflicting titles, formatting, root-map insertion/removal, cross-writer dependent updates delivered out of order and retried, outside edits with CRLF/BOM, version-based replacement and tag-renaming patches. Restarts occur with both saved and unsaved live history. Every save compares against the old reconstruction path: exact file bytes, full encoded CRDT state, title-history update bytes, resulting version and history replay text. Cache values are also checked against the reconstructed saved base after mutations and recovery. - **196 saved-base/live-text pairs.** Missing, empty, conflicting, duplicate and malformed frontmatter titles, fenced H1s, blank headings, whitespace and Unicode. - **Directed pending deletes and formatting.** Delete set arrives before its insert, then save, reload, insert and retry. A live closing formatting marker trails the text before a subsequent title-only save. All differential checks pass. - **Failure and retry paths.** WriteFails, ErrorAfterWrite, an outside edit missed by the watcher and discovered during save, then a title-only edit after the save retry. Saved-base cache remains consistent. - **Actual SIGKILL.** The PR's existing tests kill before file replacement and after replacement but before promotion. My additional test kills immediately after the actual `Notes::save` reply. On restart, its exact acknowledged file hash, text and version survive; the recovered cache and following title-only save agree with the old path. The added test verifies termination signal 9. - **Concurrent typists.** The PR's paused-save test passed with three real client sessions, checking file, clients and history. The full notes suite also passed, including transport pending/resync, restore, tag, external-edit and save-failure coverage. Crash durability ordering is unchanged: pending history is durable before replacement; the temporary file is fsynced; replacement fsyncs its directory; history promotion is awaited before save returns. Notes history retains WAL with `synchronous=FULL`. A physical power cut was not injected; the power-loss assessment is from this unchanged persistence sequence, supplemented by the process-kill tests. Final gates: **238 passed, 0 failed, 1 pre-existing ignored performance test** (`index::tests::reload_speed`). Formatting and notes clippy passed. All local builds/tests/clippy used the required build-slot wrapper, cargo `-j4`, and `CARGO_TARGET_DIR=/home/kayg/Developer/calternal-target-574r`. Review harness note: an initial compile needed the yrs observer's subscription key. The first fuzz harness then accumulated server background tasks across all seeds and stopped opening a temporary SQLite database under the process's 1,024-descriptor limit. Each seed now tears down its runtime. The complete rerun below passed; neither setup failure was an old/new differential failure. Full final gate output, verbatim: ```text GATE: cargo fmt --all --check GATE EXIT: 0 GATE: cargo test -j4 -p calternal-notes -p calternal-fsio --lib -- --test-threads=4 --nocapture Compiling calternal-fsio v0.1.0 (/home/kayg/Developer/calternal-wt-574r/crates/fsio) Compiling calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-574r/crates/notes) Finished `test` profile [unoptimized + debuginfo] target(s) in 5.64s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-574r/debug/deps/calternal_fsio-a183b1a7bb6b5526) running 12 tests test tests::atomic_write_replaces_and_leaves_no_temp_files ... ok test beneath::tests::walking_without_openat2_refuses_symlinks_too ... ok test beneath::tests::temp_files_persist_without_replacing_and_vanish_when_dropped ... ok test beneath::tests::paths_that_climb_out_are_refused ... ok test tests::case_only_rename_works_and_other_clashes_are_refused ... ok test tests::names_fold_case_and_unicode_form ... ok test tests::failed_write_keeps_the_old_file ... ok test tests::only_one_process_owns_a_data_folder ... ok test tests::unique_names_skip_case_and_form_clashes ... ok test tests::prepared_writes_land_only_when_placed ... ok test tests::write_unless_changed_keeps_someone_elses_version ... ok test tests::big_writes_arrive_whole ... ok test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-574r/debug/deps/calternal_notes-6ac741039e501ea4) running 227 tests test anchor::tests::lines_by_utf16_index ... ok test backlinks::tests::snippets_are_the_trimmed_line ... ok test anchor::tests::hash_is_plain_sha256_hex ... ok test backlinks::tests::links_are_fold_keys_and_lines ... ok test blocks::tests::finds_list_children_and_heading_sections ... ok test blocks::tests::line_edits ... ok test blocks::tests::shapes_keep_markers ... ok test blocks::tests::titles_from_the_first_sentence ... ok test bulk::undo::tests::inverse_restores_the_text ... ok test diff::tests::an_inserted_line_starts_at_a_line_start ... ok test diff::tests::emoji_positions_are_utf16 ... ok test diff::tests::small_change_is_a_small_edit ... ok test frontmatter::tests::h1_skips_code_and_frontmatter ... ok test frontmatter::tests::quoting ... ok test frontmatter::tests::reads_keys ... ok test frontmatter::tests::set_adds_a_line_or_a_block ... ok test frontmatter::tests::set_changes_only_the_value ... ok test frontmatter::tests::set_is_utf16_aware ... ok test history::tests::appends_are_ordered_and_readable ... ok test history::tests::pending_save_promotes_to_base ... ok test index::tests::a_shared_path_answers_with_the_newest_note ... ok test index::tests::a_torn_tail_cannot_swallow_the_next_durable_mapping ... ok test bulk::undo::tests::inverse_roundtrips ... ok test diff::tests::edits_turn_old_into_new ... ok test index::tests::compacts_when_it_grows ... ok test index::tests::reload_speed ... ignored test index::tests::survives_reload_renames_and_torn_lines ... ok test diff::tests::edits_never_split_a_character ... ok test index::tests::under_finds_exact_paths_and_descendants_with_folded_names ... ok test index::tests::under_keeps_shadowed_paths_for_watcher_removal ... ok test links::tests::finds_standard_and_old_style_links ... ok test index::tests::unloads_and_reloads ... ok test links::tests::nested_brackets_in_text ... ok test links::tests::relative_paths ... ok test links::tests::resolves_relative_to_the_linking_note ... ok test links::tests::retarget_follows_the_title_and_keeps_custom_text ... ok test links::tests::retarget_from_a_subfolder ... ok test links::tests::skips_code_images_and_the_web ... ok test links::tests::retarget_matches_case_and_unicode_forms ... ok test meta::tests::cursors_round_trip_and_reject_junk ... ok test meta::tests::snippets_skip_frontmatter_and_headings ... ok test missing::targets::tests::a_name_is_the_file_without_its_folder_and_extension ... ok test missing::targets::tests::names_rank_exact_then_prefix_then_word_then_inside ... ok test rename::tests::clash_numbers ... ok test rename::tests::daily_names ... ok test rename::tests::h1_is_set_or_added ... ok test room::acks::tests::varuints_round_trip ... ok test room::edit::tests::checks_bounds_overlap_and_surrogates ... ok test room::save::tests::concurrent_typists_and_saves_converge ... ok test room::save::tests::review::review_acknowledged_save_child ... ok test room::save::tests::kill_nine_mid_save_recovers_title_and_bytes ... ok REVIEW574 pending delete before insert, reload, deleted heading and live trailing format markers agree test room::save::tests::review::review_delete_set_before_insert_and_trailing_format_marks ... ok REVIEW574 failure retry: WriteFails, ErrorAfterWrite, save-time external merge and following title-only save agree test room::save::tests::review::review_failed_save_retry_and_outside_retry_keep_base_cache ... ok REVIEW574 SIGKILL after Notes::save reply: exact file hash, text, version, recovered cache and next title-only save agree test room::save::tests::review::review_kill_nine_after_save_reply_preserves_exact_file_history_and_version ... ok test index::tests::directory_counts_match_full_scan_after_moves_and_reload ... ok test room::save::tests::save_kill_child ... ok test index::tests::answers_like_plain_maps ... ok test room::save::tests::title_sync_does_not_decode_the_saved_document ... ok test scan::tests::day_ids_name_their_files ... ok test scan::tests::state_round_trips_and_skips_odd_names ... ok test search::tests::a_note_becomes_a_document ... ok test search::tests::plain_search_lines_borrow_their_text ... ok test search::tests::search_lines_keep_link_text_and_replacement_order ... ok test search::tests::titles_fall_back_to_the_file_name ... ok test smartline::tests::a_plain_line ... ok test smartline::tests::only_tags_are_words ... ok test smartline::tests::trailing_tags_only ... ok test stamp::tests::formats_with_offset ... ok test tags::front::tests::every_way_of_writing_tags ... ok test tags::merge::tests::property_tags_go_with_their_comma_or_line ... ok test tags::merge::tests::text_tags_go_with_one_space ... ok test tags::rewrite::tests::merging_keeps_every_tag_once_at_most ... ok test tags::rewrite::tests::nothing_to_do_is_no_edits ... ok test tags::rewrite::tests::only_real_tags_change ... ok test tags::rewrite::tests::positions_count_utf16 ... ok test tags::rewrite::tests::properties_change_name_only ... ok test tags::rewrite::tests::rename_and_back_is_the_same_text ... ok test tags::rewrite::tests::renames_tags_and_nested_tags_only ... ok test tags::rewrite::tests::renaming_onto_an_existing_tag_merges ... ok test tags::rewrite::tests::words_code_links_and_headings ... ok test tags::scan::tests::code_is_never_tags ... ok test tags::scan::tests::hash_free_lines_still_open_and_close_code_fences ... ok test tags::scan::tests::headings_and_quotes_keep_their_tags ... ok test tags::scan::tests::link_targets_and_addresses_are_never_tags ... ok test tags::scan::tests::not_tags ... ok test tags::scan::tests::plain_tags ... ok test tags::tests::nesting_and_cleaning ... ok test tags::tests::properties_and_text ... ok test tests::acks::an_older_lineage_is_refused_before_anything_is_sent ... ok test tests::acks::checks_are_answered_in_order ... ok test tests::acks::lineage_survives_a_restart ... ok test tests::acks::saved_means_the_change_is_in_history ... ok test tests::anchors::an_anchor_follows_its_block_when_lines_shift ... ok test tests::anchors::an_edited_block_is_refused_never_the_wrong_one ... ok test tests::anchors::anchors_need_a_hash_and_block_ids_work ... ok test tests::anchors::history_folds_typing_and_names_jobs ... ok REVIEW574 completed seed 1 test tests::anchors::shifting_lines_never_move_the_wrong_block ... ok test tests::appends::an_append_to_a_long_note_stays_small ... ok REVIEW574 completed seed 2 test tests::appends::appends_built_directly_match_the_copy_byte_for_byte ... ok REVIEW574 completed seed 3 test tests::appends::typists_and_appends_interleave_on_one_note ... ok test tests::appends_review::delete_whole_tail_then_append_matches ... ok test tests::appends_review::frontmatter_map_write_falls_back ... ok test room::save::tests::saved_bytes_and_titles_match_the_old_copy_path ... ok A2 old=[1, 1, 233, 7, 0, 196, 232, 7, 2, 9, 11, 3, 65, 50, 10, 0] A2 new=[1, 1, 233, 7, 0, 196, 232, 7, 2, 9, 11, 3, 65, 50, 10, 0] byte-identical=true test tests::appends_review::trailing_format_marker_bytes ... ok test tests::fanout::a_crash_before_the_seed_is_durable_never_doubles_text ... ok REVIEW574 completed seed 4 test tests::fanout::a_crash_between_fan_out_and_disk_loses_nothing ... ok test tests::fanout::a_first_open_does_not_wait_for_the_disk ... ok REVIEW574 completed seed 5 test tests::fanout::a_version_always_matches_its_text ... ok test tests::fanout::bursts_converge_and_reach_history ... ok REVIEW574 title matrix: 196 base/live pairs, including absent/empty/conflicting/duplicate/malformed titles, hidden H1s, whitespace and Unicode test room::save::tests::review::review_title_precedence_edge_matrix ... ok test tests::fresh::a_note_made_with_text_opens_with_its_frontmatter ... ok test tests::kill9::child ... ok test tests::kill9::delete_killed_after_its_answer_finishes_once ... ok test tests::kill9::permanent_delete_after_restore_cannot_delete_the_live_note ... ok test tests::kill9::quick_delete_restore_survives_kill ... ok test tests::kill9::quick_restore_delete_survives_kill ... ok test tests::kill9::restore_delete_forget_does_not_resurrect_after_kill ... ok test tests::kill9::restore_killed_after_its_answer_finishes_once ... ok test tests::fanout::collaborators_see_typing_before_the_disk ... ok test tests::listing::filters_by_tag_kind_and_created_range ... ok test tests::listing::pages_cover_every_note_once_in_a_stable_order ... ok REVIEW574 completed seed 6 test tests::listing::pinning_shows_in_the_list_and_unpinning_leaves_no_trace ... ok test tests::listing::the_first_page_never_waits_for_the_home_to_open ... ok test tests::listing::a_common_tag_pages_the_same_in_every_order ... ok REVIEW574 completed seed 7 test tests::listing::the_list_stays_live_with_new_notes_saves_and_outside_edits ... ok fast appends: 4003 test tests::appends_review::fuzz_deletes_restarts_parked ... ok test tests::missing::a_path_tells_here_trash_and_gone ... ok test tests::missing::a_rename_in_the_app_leaves_the_old_path_moved ... ok test tests::missing::make_from_link_makes_the_note_where_the_link_points_and_undo_takes_it_back ... ok test tests::missing::never_made_targets_are_offered_with_their_capitals_and_link_counts ... ok test tests::missing::never_written_paths_are_new_and_bad_ones_too ... ok test tests::missing::notes_in_the_trash_from_before_are_found ... ok test tests::missing::restored_with_a_new_name_reads_as_moved ... ok test tests::missing::a_move_outside_is_found_and_relink_repoints_the_links ... ok test tests::opening::a_cold_fill_ends_with_every_index_and_right_answers ... ok test tests::opening::a_note_never_typed_in_is_still_forgotten_on_restart ... ok test tests::opening::a_warm_open_announces_only_what_changed_while_closed ... ok test tests::opening::a_cold_home_indexes_every_file_once_with_its_own_id ... ok test tests::opening::identifying_an_already_indexed_file_never_makes_it_a_copy ... ok test tests::opening::shutting_down_leaves_the_list_log_empty ... ok test tests::opening::typing_saved_only_in_history_survives_a_restart_before_the_first_save ... ok test tests::listing::the_kept_count_follows_adds_and_deletes ... ok test tests::opening::upgrading_without_a_saved_scan_announces_nothing_for_known_notes ... ok REVIEW574 completed seed 8 test tests::outside::edit_while_closed_is_merged_on_open ... ok test tests::outside::missed_watcher_event_is_caught_before_saving ... ok test tests::outside::copied_note_gets_a_fresh_id ... ok test tests::opening::asking_mid_scan_never_says_not_found_and_never_duplicates_a_day ... ok test tests::outside::outside_create_and_delete ... ok test tests::outside::outside_edit_while_typing_merges ... ok REVIEW574 completed seed 9 test tests::outside::outside_rename_keeps_the_id ... ok test tests::peek::an_open_room_answers_with_its_live_text ... ok test tests::peek::reads_files_without_opening_rooms ... ok test tests::peek::returns_at_most_fifty ... ok test tests::pending::apply_places_changes_in_any_order ... ok test tests::pending::changes_out_of_order_all_arrive_and_saved_is_true ... ok test tests::pending::yrs_alone_loses_a_parked_change ... ok REVIEW574 completed seed 10 test tests::outside::own_saves_are_not_outside_edits ... ok test tests::renames::a_taken_name_gets_a_number_and_daily_notes_keep_theirs ... ok test tests::outside::polling_finds_outside_changes ... ok test tests::renames::backlinks_list_linked_and_unlinked_mentions ... ok test tests::renames::make_note_moves_the_block_and_undoes_as_one_step ... ok test tests::renames::move_block_to_another_note_and_back ... ok test tests::renames::rename_moves_the_file_and_repoints_every_link ... ok REVIEW574 completed seed 11 test tests::renames::typing_a_new_title_renames_the_file_after_a_pause ... ok test tests::renames::backlinks_follow_edits_and_deletes ... ok test tests::renames::undo_keeps_a_made_note_someone_typed_in ... ok test tests::renames::typing_in_a_linking_note_during_a_rename_is_kept ... ok test tests::rooms::late_joiner_gets_full_state ... ok test tests::rooms::patches_use_utf16_positions ... ok test tests::rooms::fresh_note_opened_by_many_at_once_is_not_doubled ... ok test tests::rooms::retried_change_applies_once ... ok test tests::rooms::retried_create_makes_one_note ... ok test tests::rooms::stale_replace_keeps_newer_typing ... ok test tests::rooms::typing_survives_a_concurrent_delete ... ok test tests::saving::a_write_error_keeps_the_change ... ok REVIEW574 completed seed 12 test tests::rooms::random_concurrent_editing_converges_without_duplicates ... ok test tests::saving::an_error_after_the_write_does_not_double_text ... ok test tests::saving::crash_after_write_does_not_double_text ... ok test tests::saving::failed_save_keeps_the_change ... ok REVIEW574 completed seed 13 test tests::saving::first_keystroke_creates_the_file ... ok test tests::saving::line_endings_and_bom_are_kept ... ok test tests::saving::crash_before_write_loses_nothing ... ok REVIEW574 completed seed 14 test tests::saving::opening_never_writes ... ok REVIEW574 completed seed 15 test tests::saving::saving_does_not_loop ... ok test tests::saving::title_and_h1_stay_in_step ... ok REVIEW574 completed seed 16 test tests::saving::nonstop_typing_still_saves ... ok test tests::renames::a_crash_mid_rename_resumes_and_applies_each_edit_once ... ok REVIEW574 completed seed 17 test tests::storm::outside_rewrites_during_a_storm_all_land ... ok test tests::tags::bad_names_are_refused ... ok test tests::tags::renames_every_tag_and_undoes_as_one_step ... ok test tests::tags::typing_during_a_tag_rename_is_kept ... ok test tests::trash::a_closed_note_is_trashed_without_opening_it ... ok test tests::tags::a_big_tag_rename_never_stalls_typing ... ok test tests::trash::a_file_deleted_outside_goes_to_the_trash ... ok test tests::trash::a_never_typed_note_is_simply_forgotten ... ok test tests::trash::a_note_deleted_before_its_first_save_keeps_its_text ... ok test tests::trash::delete_and_restore_answer_once_per_job_id ... ok test tests::trash::delete_moves_to_trash_and_undo_brings_it_back ... ok test tests::trash::delete_replay_with_a_stale_index_keeps_the_only_file ... ok test tests::trash::folder_rename_and_outside_move_bursts_keep_every_descendant ... ok test tests::trash::forget_deletes_file_and_history_forever ... ok test tests::trash::half_written_trash_folders_never_hide_a_live_note ... ok test tests::trash::restore_durably_indexes_a_note_without_an_embedded_id ... ok test tests::trash::restore_keeps_id_and_history_and_takes_a_free_name ... ok test tests::trash::restore_with_a_stale_index_really_moves_the_file_back ... ok test tests::trash::the_sweep_empties_only_notes_older_than_thirty_days ... ok test tests::trash::trash_ids_never_reach_another_home ... ok REVIEW574 completed seed 18 test tests::trash::trash_pages_newest_first ... ok test tests::trash::trashed_notes_leave_search_lists_and_backlinks_and_come_back ... ok REVIEW574 completed seed 19 test tests::unloading::a_connected_client_keeps_it ... ok REVIEW574 completed seed 20 test tests::unloading::an_open_note_keeps_it ... ok test tests::unloading::an_unused_home_unloads_and_answers_after ... ok REVIEW574 completed seed 21 test tests::writers::every_writer_at_once_loses_and_doubles_nothing ... ok test tests::writers::every_writer_at_once_with_the_watcher ... ok test text::tests::mixed_endings_take_the_majority ... ok test text::tests::styles_round_trip ... ok test text::tests::uniform_files_round_trip_exactly ... ok test trash::tests::a_note_without_details_still_reads ... ok test trash::tests::details_without_a_note_are_not_a_note ... ok test trash::tests::missing_details_never_age_trash_from_the_notes_old_mtime ... ok test versions::tests::folds_runs_by_author_kind_and_gap ... ok test ydoc::tests::fork_and_merge_keeps_concurrent_typing ... ok test ydoc::tests::reapplying_an_update_changes_nothing ... ok test ydoc::tests::utf16_offsets ... ok REVIEW574 completed seed 22 REVIEW574 completed seed 23 test tests::trash::a_crash_mid_delete_finishes_on_restart_exactly_once ... ok REVIEW574 completed seed 24 REVIEW574 fuzz operation counts: [177, 198, 178, 166, 183, 173, 164, 181, 154, 170, 166, 180, 162, 148] REVIEW574 differential: 2424 saves, 264 fresh Notes/Home restarts; file bytes, CRDT state, title-update bytes, history replay and versions agree test room::save::tests::review::review_fuzz_old_new_bytes_history_versions_and_restarts ... ok test tests::tags::a_crash_mid_rename_resumes_and_renames_each_tag_once ... ok test result: ok. 226 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 13.39s GATE EXIT: 0 GATE: cargo clippy -j4 -p calternal-notes --all-targets -- -D warnings Checking cfg-if v1.0.5 Checking rand_core v0.10.1 Checking libc v0.2.190 Checking once_cell v1.21.4 Checking bitflags v2.13.2 Checking pin-project-lite v0.2.17 Checking serde_core v1.0.229 Checking smallvec v1.16.3 Checking linux-raw-sys v0.12.1 Checking typenum v1.20.1 Checking rustix v1.1.5 Checking getrandom v0.4.3 Checking hybrid-array v0.4.15 Checking zmij v1.0.23 Checking parking v2.2.1 Checking itoa v1.0.18 Checking cpufeatures v0.3.1 Checking memchr v2.8.3 Checking fastrand v2.5.0 Checking event-listener v5.4.2 Checking tracing-core v0.1.36 Checking foldhash v0.2.0 Checking scopeguard v1.2.0 Checking hashbrown v0.17.1 Checking lock_api v0.4.14 Checking serde v1.0.229 Checking serde_json v1.0.154 Checking tracing v0.1.44 Checking uuid v1.28.0 Checking thiserror v2.0.21 Checking ref-cast v1.0.27 Checking event-listener-strategy v0.5.4 Checking inotify-sys v0.1.8 Checking parking_lot_core v0.9.12 Checking crossbeam-utils v0.8.23 Checking crypto-common v0.2.2 Checking block-buffer v0.12.1 Checking hashbrown v0.14.5 Checking tinyvec v1.13.3 Checking dyn-clone v1.0.20 Compiling time-core v0.1.9 Checking log v0.4.34 Checking same-file v1.0.6 Checking const-oid v0.10.2 Compiling num-conv v0.2.2 Checking walkdir v2.5.0 Checking dashmap v6.2.1 Checking digest v0.11.3 Compiling time-macros v0.2.32 Checking mio v1.2.4 Checking unicode-normalization v0.1.25 Checking schemars v1.2.3 Checking tokio v1.53.2 Checking libsqlite3-sys v0.38.2 Checking inotify v0.11.5 Checking async-lock v3.4.2 Checking arc-swap v1.9.2 Checking hashlink v0.12.2 Checking tempfile v3.27.0 Checking wait-timeout v0.2.1 Checking smallstr v0.3.1 Checking notify-types v2.1.0 Checking bit-vec v0.10.1 Checking quick-error v1.2.3 Checking arrayvec v0.7.8 Checking fnv v1.0.7 Checking fallible-streaming-iterator v0.1.9 Checking fallible-iterator v0.3.0 Checking powerfmt v0.2.1 Checking deranged v0.5.9 Checking constant_time_eq v0.4.2 Checking blake3 v1.8.7 Checking calternal-core v0.1.0 (/home/kayg/Developer/calternal-wt-574r/crates/core) Checking rusqlite v0.40.2 Checking rusty-fork v0.3.1 Checking bit-set v0.11.1 Checking notify v8.2.0 Checking yrs v0.28.0 Checking num-traits v0.2.19 Checking calternal-fsio v0.1.0 (/home/kayg/Developer/calternal-wt-574r/crates/fsio) Checking sha2 v0.11.1 Checking chacha20 v0.10.2 Checking rand v0.10.3 Checking calternal-memory v0.1.0 (/home/kayg/Developer/calternal-wt-574r/crates/memory) Checking rand_xorshift v0.5.0 Checking regex-syntax v0.8.11 Checking core_detect v1.0.0 Checking base64 v0.22.1 Checking time v0.3.55 Checking hashbrown v0.16.1 Checking unicode-segmentation v1.13.3 Checking similar v3.2.0 Checking unarray v0.1.4 Checking calternal-testkit v0.1.0 (/home/kayg/Developer/calternal-wt-574r/crates/testkit) Checking proptest v1.12.0 Checking calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-574r/crates/notes) Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.16s GATE EXIT: 0 ```
Author
Owner

Closing during the 26 Oct handover cleanup: The save copy fix landed in dev (PR #574, reviewed safe to merge).

Closing during the 26 Oct handover cleanup: The save copy fix landed in dev (PR #574, reviewed safe to merge).
kayg closed this issue 2026-10-26 08:46:42 +00:00
Sign in to join this conversation.
No milestone
No project
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#570
No description provided.