iOS and watchOS apps catch up to the web app (epic, grill first) #426

Open
opened 2026-10-15 08:45:48 +00:00 by kayg · 36 comments
Owner

kayg, 2026-10-15: the iOS and watchOS apps should catch up to the web app. Per ADR 0009 (native clients: UIKit on iOS, AppKit on macOS, one repo) and ADR 0030 (every client is an Installation, with sign-in through the system web sheet).

The grill (NA1–NA6) is posted in chat. First question: where does today's iOS/watchOS app live (v0 archive? another repo?), and what does it do now?

kayg, 2026-10-15: the iOS and watchOS apps should catch up to the web app. Per ADR 0009 (native clients: UIKit on iOS, AppKit on macOS, one repo) and ADR 0030 (every client is an Installation, with sign-in through the system web sheet). The grill (NA1–NA6) is posted in chat. First question: where does today's iOS/watchOS app live (v0 archive? another repo?), and what does it do now?
Author
Owner

Grill sent to kayg in chat on 2026-10-15, still waiting:

  • NA1 Where does today's iOS/watchOS app live?
  • NA2 Recommended: a native UIKit shell hosting the web editor first, so the markdown isn't round-tripped lossily.
  • NA3 Recommended: the Rust core in the apps through UniFFI.
  • NA4 Recommended order: sign-in, Today/Journal, quick capture and voice, search, offline sync, settings.
  • NA5 Recommended Watch scope: voice capture, today's log, a complication, read-only recent notes.
  • NA6 TestFlight from CI. kayg's Mac (mbp, Xcode 27) is now reachable for the simulator, so it could be the builder.
Grill sent to kayg in chat on 2026-10-15, still waiting: - **NA1** Where does today's iOS/watchOS app live? - **NA2** Recommended: a native UIKit shell hosting the web editor first, so the markdown isn't round-tripped lossily. - **NA3** Recommended: the Rust core in the apps through UniFFI. - **NA4** Recommended order: sign-in, Today/Journal, quick capture and voice, search, offline sync, settings. - **NA5** Recommended Watch scope: voice capture, today's log, a complication, read-only recent notes. - **NA6** TestFlight from CI. kayg's Mac (mbp, Xcode 27) is now reachable for the simulator, so it could be the builder.
Author
Owner

Started #426 on branch issue/426-client, based on origin/dev at c82161d7c6. I am reading the auth, journal and room protocols before implementing the shared Rust client. No Swift app work, merges or deploys are planned.

Started #426 on branch issue/426-client, based on origin/dev at c82161d7c6fefcd476d73a92f1fbc2461ef2fef1. I am reading the auth, journal and room protocols before implementing the shared Rust client. No Swift app work, merges or deploys are planned.
Author
Owner

kayg (2026-10-16): the CLI, API and MCP must be extremely fast, and every surface uses ONE event route, the Apple apps included.

MCP Events. Support MCP Events (protocol 2026-07-28, https://developers.openai.com/plugins/build/mcp-events) while staying backward compatible:

  • Capability: capabilities.events: {} in server/discover.
  • Methods: events/list (with inputSchema/payloadSchema), events/subscribe (name, arguments, delivery {mode,url,secret}, cursor, with id/refreshBefore/cursor/truncated returned), and events/unsubscribe.
  • Delivery: an HTTPS webhook POST of {eventId,name,timestamp,data,cursor}, signed with Standard Webhooks headers plus X-MCP-Subscription-Id. Bodies are capped at 256 KiB, the callback is verified with a signed challenge, and failures return error -32015.
  • Subscriptions: idempotent, persistent, refreshed before expiry; replayable with cursors.
  • Older clients (no events capability) keep working with the existing tools, plus resource subscriptions and update notifications where the client supports them.

One event route. The server's change journal is the single source of events:

  • its position is the cursor;
  • it's replayable;
  • it's filtered per user and per subscription, server-side.

Every consumer reads that same stream:

  • the web app (WebSocket);
  • the Rust client in the Apple apps (crates/client);
  • calternal watch in the CLI;
  • the public API (a streaming endpoint);
  • MCP Events webhooks.

None of them gets its own event logic. MCP event cursors map directly to journal positions.

**kayg (2026-10-16): the CLI, API and MCP must be extremely fast, and every surface uses ONE event route, the Apple apps included.** **MCP Events.** Support MCP Events (protocol 2026-07-28, https://developers.openai.com/plugins/build/mcp-events) while staying backward compatible: - **Capability:** `capabilities.events: {}` in `server/discover`. - **Methods:** `events/list` (with `inputSchema`/`payloadSchema`), `events/subscribe` (`name`, `arguments`, `delivery {mode,url,secret}`, `cursor`, with `id`/`refreshBefore`/`cursor`/`truncated` returned), and `events/unsubscribe`. - **Delivery:** an HTTPS webhook POST of `{eventId,name,timestamp,data,cursor}`, signed with Standard Webhooks headers plus `X-MCP-Subscription-Id`. Bodies are capped at 256 KiB, the callback is verified with a signed challenge, and failures return error -32015. - **Subscriptions:** idempotent, persistent, refreshed before expiry; replayable with cursors. - **Older clients** (no events capability) keep working with the existing tools, plus resource subscriptions and update notifications where the client supports them. **One event route.** The server's change journal is the single source of events: - its position is the cursor; - it's replayable; - it's filtered per user and per subscription, server-side. Every consumer reads that same stream: - the web app (WebSocket); - the Rust client in the Apple apps (`crates/client`); - `calternal watch` in the CLI; - the public API (a streaming endpoint); - MCP Events webhooks. None of them gets its own event logic. MCP event cursors map directly to journal positions.
Author
Owner

kayg (2026-10-16): the macOS toolkit is NOT decided. The "macOS uses Mac Catalyst" ADR must be Status: proposed, pending a spike, not accepted. ADR 0009's AppKit stays in force until the spike decides. kayg: "I don't want mobile UI on desktop."

The spike runs on kayg's Mac once the iOS editor exists. It builds the same two screens, the notes list (100k notes) and the editor (a long note), in both Mac Catalyst ("Optimized for Mac") and AppKit, sharing the Rust client and the TextKit 2 engine. It compares:

  • Speed: launch, list scroll frame times, typing latency and memory.
  • Mac feel: window resizing and tabs, menus and the menu bar, keyboard focus and shortcuts, pointer and hover, toolbar and sidebar, Services, drag and drop, text system behaviour (input methods, autocorrect, dictation) and accessibility.

kayg picks after seeing both. Until then, macOS code shares only the toolkit-free layers: the Rust client, the TextKit 2 editor engine and the models.

**kayg (2026-10-16): the macOS toolkit is NOT decided.** The "macOS uses Mac Catalyst" ADR must be **Status: proposed, pending a spike**, not accepted. ADR 0009's AppKit stays in force until the spike decides. kayg: "I don't want mobile UI on desktop." **The spike** runs on kayg's Mac once the iOS editor exists. It builds the same two screens, the notes list (100k notes) and the editor (a long note), in both **Mac Catalyst ("Optimized for Mac")** and **AppKit**, sharing the Rust client and the TextKit 2 engine. It compares: - **Speed:** launch, list scroll frame times, typing latency and memory. - **Mac feel:** window resizing and tabs, menus and the menu bar, keyboard focus and shortcuts, pointer and hover, toolbar and sidebar, Services, drag and drop, text system behaviour (input methods, autocorrect, dictation) and accessibility. kayg picks after seeing both. Until then, macOS code shares only the toolkit-free layers: the Rust client, the TextKit 2 editor engine and the models.
Author
Owner

Findings: the auth crate supports passkey browser sessions and bearer Installation checks, but has no device code or app password path. The additive path will use a short-lived device code approved by an already signed-in browser, issuing a separate revocable CLI Installation. Existing browser sign-in stays unchanged.

The server rooms already expose Yjs sync plus save-check tags 100/101 (crates/notes/src/room/acks.rs). The client will keep the exact Yrs state and lineage in SQLite before sending, then remove pending work only after tag 101 confirms durability. Retrying that state adds nothing twice.

The server binary is already named calternal (crates/calternal), so this slice uses calternal-client for the CLI. All heavy checks are queued through the shared build-slot wrapper; the host currently has all three slots occupied.

Findings: the auth crate supports passkey browser sessions and bearer Installation checks, but has no device code or app password path. The additive path will use a short-lived device code approved by an already signed-in browser, issuing a separate revocable CLI Installation. Existing browser sign-in stays unchanged. The server rooms already expose Yjs sync plus save-check tags 100/101 (crates/notes/src/room/acks.rs). The client will keep the exact Yrs state and lineage in SQLite before sending, then remove pending work only after tag 101 confirms durability. Retrying that state adds nothing twice. The server binary is already named calternal (crates/calternal), so this slice uses calternal-client for the CLI. All heavy checks are queued through the shared build-slot wrapper; the host currently has all three slots occupied.
Author
Owner

Review finding: notes.list reads a background metadata database. Its incomplete flag stays true for a cold unopened Home (crates/notes/src/meta.rs, Notes::page), and metadata can lag events that happened before a snapshot's journal baseline. Treating that list as a complete snapshot could lose a note permanently. The client starts the Home with notes.peek on an empty id list, waits for a complete scan, and replays the journal from the current epoch's beginning using notes.get for affected ids. This costs more on initial sync but avoids changing server behavior.

Validation is currently waiting for a build slot; no compiler or test results exist yet. The required wrapper is being respected.

Review finding: notes.list reads a background metadata database. Its incomplete flag stays true for a cold unopened Home (crates/notes/src/meta.rs, Notes::page), and metadata can lag events that happened before a snapshot's journal baseline. Treating that list as a complete snapshot could lose a note permanently. The client starts the Home with notes.peek on an empty id list, waits for a complete scan, and replays the journal from the current epoch's beginning using notes.get for affected ids. This costs more on initial sync but avoids changing server behavior. Validation is currently waiting for a build slot; no compiler or test results exist yet. The required wrapper is being respected.
Author
Owner

Concurrency and cancellation review found two ways to lose accepted work. An old server acknowledgement could clear an edit written by another handle, and cancelling a journal read after consuming an entry could skip it on the next read. The store now merges concurrent Yrs states under BEGIN IMMEDIATE and clears pending work only when its bytes still match the state sent. Journal sockets are retained only after the consumed entry and cursor commit; cancellation drops the socket and forces replay. Store and room tests cover state merging, stale acknowledgements and durability checks. These are source findings, not test-pass claims.

Initial snapshot staging is connection-local, and snapshot/replay/live commits take an asynchronous cross-process file lock. Local list reads do not take that lock. Separate queued cargo jobs were consolidated into one sequential gate job to avoid occupying several build slots while waiting for Cargo's target lock. All build slots remain busy with other jobs.

Concurrency and cancellation review found two ways to lose accepted work. An old server acknowledgement could clear an edit written by another handle, and cancelling a journal read after consuming an entry could skip it on the next read. The store now merges concurrent Yrs states under BEGIN IMMEDIATE and clears pending work only when its bytes still match the state sent. Journal sockets are retained only after the consumed entry and cursor commit; cancellation drops the socket and forces replay. Store and room tests cover state merging, stale acknowledgements and durability checks. These are source findings, not test-pass claims. Initial snapshot staging is connection-local, and snapshot/replay/live commits take an asynchronous cross-process file lock. Local list reads do not take that lock. Separate queued cargo jobs were consolidated into one sequential gate job to avoid occupying several build slots while waiting for Cargo's target lock. All build slots remain busy with other jobs.
Author
Owner

Independent review found two more protocol cases. The room handshake was needlessly echoing the server's full document; that would make a read or tiny append fail once the Yrs state exceeded the server's 1 MiB incoming-frame limit. It now sends the state-vector diff already requested by the server, followed by the durability check. A test covers a document over 1 MiB and tiny outgoing frames, including a resync before acknowledgement.

A queued edit whose note was deleted or whose lineage changed must not stop the rest of the store from catching up. Such edits now stay queued and readable by id for recovery, while unrelated queue entries and the journal continue. Explicit sync reports the conflict after catch-up. Live polling includes a heartbeat, network reconnect, and periodic queue replay. These cases have tests written; compilation is still waiting for a shared build slot.

Independent review found two more protocol cases. The room handshake was needlessly echoing the server's full document; that would make a read or tiny append fail once the Yrs state exceeded the server's 1 MiB incoming-frame limit. It now sends the state-vector diff already requested by the server, followed by the durability check. A test covers a document over 1 MiB and tiny outgoing frames, including a resync before acknowledgement. A queued edit whose note was deleted or whose lineage changed must not stop the rest of the store from catching up. Such edits now stay queued and readable by id for recovery, while unrelated queue entries and the journal continue. Explicit sync reports the conflict after catch-up. Live polling includes a heartbeat, network reconnect, and periodic queue replay. These cases have tests written; compilation is still waiting for a shared build slot.
Author
Owner

The first validation attempt acquired a slot and passed formatting, then stopped before project compilation because this shell had no C linker on PATH. The host's existing Nix compiler and OpenSSL paths are available; I have added those paths to the job environment and requeued the same sequential gates through the build-slot wrapper.

Verbatim failure output:

error: linker `cc` not found
  |
  = note: No such file or directory (os error 2)

error: could not compile `quote` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `proc-macro2` (build script) due to 1 previous error
error: could not compile `libc` (build script) due to 1 previous error
The first validation attempt acquired a slot and passed formatting, then stopped before project compilation because this shell had no C linker on PATH. The host's existing Nix compiler and OpenSSL paths are available; I have added those paths to the job environment and requeued the same sequential gates through the build-slot wrapper. Verbatim failure output: ``` error: linker `cc` not found | = note: No such file or directory (os error 2) error: could not compile `quote` (build script) due to 1 previous error warning: build failed, waiting for other jobs to finish... error: could not compile `proc-macro2` (build script) due to 1 previous error error: could not compile `libc` (build script) due to 1 previous error ```
Author
Owner

The compiler reached crates/client and found one missing trait import: room.rs called TransactionMut::prune_pending without bringing yrs::WriteTxn into scope (E0599). The server's Yrs workaround uses that trait. The import is added and the sequential checks are requeued; no runtime test result exists yet.

The compiler reached crates/client and found one missing trait import: room.rs called TransactionMut::prune_pending without bringing yrs::WriteTxn into scope (E0599). The server's Yrs workaround uses that trait. The import is added and the sequential checks are requeued; no runtime test result exists yet.
Author
Owner

Targeted validation now passes. The client unit suite reports:

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

The ignored test is the explicit 100k performance run, scheduled later in the gate job. The real-server integration suite reports:

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

The new device sign-in tests and existing auth suites also pass. Full workspace clippy and tests are next; a rendered-browser check is prepared to confirm the CLI append reaches the actual web editor without reload.

Targeted validation now passes. The client unit suite reports: ``` test result: ok. 17 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.10s ``` The ignored test is the explicit 100k performance run, scheduled later in the gate job. The real-server integration suite reports: ``` test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.54s ``` The new device sign-in tests and existing auth suites also pass. Full workspace clippy and tests are next; a rendered-browser check is prepared to confirm the CLI append reaches the actual web editor without reload.
Author
Owner

Full workspace clippy found one warning in a test handshake callback: Tungstenite requires Result<Response, ErrorResponse>, and its fixed HTTP error response triggers result_large_err. The callback now has a narrowly scoped lint expectation documenting that library requirement. No production lint is suppressed. The targeted client and auth tests had passed before this lint check; the full sequence is being rerun.

Full workspace clippy found one warning in a test handshake callback: Tungstenite requires Result<Response, ErrorResponse>, and its fixed HTTP error response triggers result_large_err. The callback now has a narrowly scoped lint expectation documenting that library requirement. No production lint is suppressed. The targeted client and auth tests had passed before this lint check; the full sequence is being rerun.
Author
Owner

Full workspace clippy now passes with -D warnings. The workspace test run stopped in the existing crates/calternal/tests/notes_live.rs helper, line 78, which unwraps read_to_end on a raw TCP HTTP connection:

thread 'type_over_the_websocket_and_read_it_back' (2317640) panicked at crates/calternal/tests/notes_live.rs:78:35:
called `Result::unwrap()` on an `Err` value: Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }

This test file and the server room/API implementation are unchanged. I am reproducing the failure with a backtrace before deciding whether any test change is needed; I am not treating the workspace gate as passed.

Full workspace clippy now passes with -D warnings. The workspace test run stopped in the existing crates/calternal/tests/notes_live.rs helper, line 78, which unwraps read_to_end on a raw TCP HTTP connection: ``` thread 'type_over_the_websocket_and_read_it_back' (2317640) panicked at crates/calternal/tests/notes_live.rs:78:35: called `Result::unwrap()` on an `Err` value: Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" } ``` This test file and the server room/API implementation are unchanged. I am reproducing the failure with a backtrace before deciding whether any test change is needed; I am not treating the workspace gate as passed.
Author
Owner

The existing notes_live test passed three isolated reruns (2 tests per run). The original failure left its spawned server alive, which places the panic in the startup /healthz probe before Kill(child) was constructed. That orphan was stopped.

The test helper now constructs its cleanup guard immediately, checks whether the child exited, and retries ConnectionReset only for /healthz readiness. Actual note API reads still unwrap transport failures, so this does not hide a notes API regression. No server runtime behavior changed. Formatting, full workspace clippy and the full workspace tests will be checked again after this test-only adjustment.

The existing notes_live test passed three isolated reruns (2 tests per run). The original failure left its spawned server alive, which places the panic in the startup /healthz probe before Kill(child) was constructed. That orphan was stopped. The test helper now constructs its cleanup guard immediately, checks whether the child exited, and retries ConnectionReset only for /healthz readiness. Actual note API reads still unwrap transport failures, so this does not hide a notes API regression. No server runtime behavior changed. Formatting, full workspace clippy and the full workspace tests will be checked again after this test-only adjustment.
Author
Owner

The 100k local-store measurements pass the 50 ms requirement for the default page of 100. Both runs used the required shared build slot on this Linux host, in the debug profile.

Verbatim library timing output:

100000 notes, warm local page of 100, 100 samples: p50=0.250 ms p95=0.376 ms max=2.188 ms

Verbatim CLI timing output (includes process startup and writing the 100 rows):

calternal-client notes list, 100000 local notes, default page 100, process start and output included, 30 samples: p50=6.182 ms p95=12.990 ms max=17.289 ms

This is a warm local SQLite fixture with 100,000 rows, not a measurement of initial server download or listing all 100,000 notes in one page. Full gate output and the final head SHA will follow after Swift generation and the browser check.

The 100k local-store measurements pass the 50 ms requirement for the default page of 100. Both runs used the required shared build slot on this Linux host, in the debug profile. Verbatim library timing output: ``` 100000 notes, warm local page of 100, 100 samples: p50=0.250 ms p95=0.376 ms max=2.188 ms ``` Verbatim CLI timing output (includes process startup and writing the 100 rows): ``` calternal-client notes list, 100000 local notes, default page 100, process start and output included, 30 samples: p50=6.182 ms p95=12.990 ms max=17.289 ms ``` This is a warm local SQLite fixture with 100,000 rows, not a measurement of initial server download or listing all 100,000 notes in one page. Full gate output and the final head SHA will follow after Swift generation and the browser check.
Author
Owner

The actual browser proof has a failure still under investigation. Browser passkey setup, CLI Installation approval, local list/read, and CLI append all succeeded. The append exited 0, reported server-saved, and had no queued work, but the visible editor did not show the marker before its assertion timed out. The Rust peer test alone was not enough to claim the rendered web path passed. I am adding narrow browser and server-state diagnostics before changing client code.

The actual browser proof has a failure still under investigation. Browser passkey setup, CLI Installation approval, local list/read, and CLI append all succeeded. The append exited 0, reported server-saved, and had no queued work, but the visible editor did not show the marker before its assertion timed out. The Rust peer test alone was not enough to claim the rendered web path passed. I am adding narrow browser and server-state diagnostics before changing client code.
Author
Owner

The browser failure is now identified: Chromium exits with SIGTRAP when it renders the appended crab emoji. Its fatal diagnostic is:

Browser fatal diagnostic: [1016/105130.533654:FATAL:third_party/skia/src/ports/SkFontMgr_FontConfigInterface.cpp:163] Not implemented.

The server confirms the appended marker and durable acknowledgement; this was not a failed client save. The host has DejaVu fallback fonts but no installed Noto emoji font. I am repeating the rendered live check with ASCII text, while retaining the Unicode Rust/server/independent-peer tests and recording the browser font limit explicitly. No client or web source code is changed for this environment failure.

The browser failure is now identified: Chromium exits with SIGTRAP when it renders the appended crab emoji. Its fatal diagnostic is: ``` Browser fatal diagnostic: [1016/105130.533654:FATAL:third_party/skia/src/ports/SkFontMgr_FontConfigInterface.cpp:163] Not implemented. ``` The server confirms the appended marker and durable acknowledgement; this was not a failed client save. The host has DejaVu fallback fonts but no installed Noto emoji font. I am repeating the rendered live check with ASCII text, while retaining the Unicode Rust/server/independent-peer tests and recording the browser font limit explicitly. No client or web source code is changed for this environment failure.
Author
Owner

Finished this slice on 81491beee9. PR into dev: #480. The branch is pushed; the PR remains open.

Issue #426 / N7 result
PR: #480
Branch: issue/426-client
Head: 81491beee9

Works: one Rust client owns CLI Installation sign-in, a private SQLite device store, journal catch-up and live reconnect, markdown reads, yrs appends and durable offline replay. The thin calternal-client CLI provides login, notes list/show/append and watch; the existing server already owns the calternal binary name. UniFFI async scaffolding compiles and generates Swift bindings on Linux. ADRs 0040, 0041 and 0042 record the client, Mac Catalyst and Apple platform/layout decisions.

API: Client::open(server,database); begin_login(); finish_login(device_code,device); list_notes(limit,offset); resolve_note(id_or_title); show_note(id_or_title); append_note(id,text); sync(); next_changes(); pending_count(); pending_note_ids(). Records: NoteSummary, Change, DeviceCode. Errors distinguish sign-out, offline, missing note, changed lineage, conflict, invalid input, storage, protocol and other server errors. Queued deleted-note edits remain readable by id and do not block unrelated catch-up.

Numbers: 100,000-row local SQLite fixture, warm default page of 100, shared Linux host, debug build. Library over 100 samples: p50 0.250 ms, p95 0.376 ms, max 2.188 ms. CLI including process start and output over 30 samples: p50 6.182 ms, p95 12.990 ms, max 17.289 ms. Initial server download and printing all 100,000 rows were not measured. Full workspace: 460 passed, 0 failed, 3 ignored; the client performance test was also run explicitly and passed.

Rendered proof: browser passkey setup -> browser approval of CLI Installation -> local CLI list/read -> CLI append -> actual web editor updates without navigation/reload -> API readback. Browser plugin not available; regular Playwright used the supplied environment, desktop 1440x1000. Screenshot: /tmp/client-web-live.png. ASCII live rendering passed. The emoji variant hit this host's Chromium/Skia font fallback abort (SIGTRAP, SkFontMgr_FontConfigInterface.cpp:163 Not implemented). Unicode appends pass the Rust/server/independent-peer tests. Browser emoji rendering remains unverified on this host. Web build warnings were pre-existing Svelte CSS/chunk warnings; no web source changed.

Other limits: Swift binding generation succeeded; optional swift-format was unavailable. Generated Swift, C header and module map are temporary and uncommitted. Initial sync replays the retained journal because the server's metadata projection has no authoritative snapshot cursor. Live editor room exchanges use a socket per operation in this slice.

Open design questions for kayg (recommendations, no answer needed to review this slice):

  1. How should queued edits be recovered after deletion or a lineage reset? Recommend explicit export/restore/create-copy actions, retaining the original replica and never automatically seeding a new lineage.
  2. How should first sync avoid replaying the full journal? Recommend an additive server snapshot contract with the metadata projection's exact cursor and completeness, then replay only later entries.
  3. When should editor rooms share one socket? Recommend the next Rust slice: one persistent actor for journal and open rooms, with incremental local update storage, before connecting TextKit 2.
  4. Where should Apple session tokens live? Recommend Keychain for tokens and SQLite for metadata, CRDT state and queued work; keep Linux files private at mode 0600.

Validation environment: CARGO_TARGET_DIR=/home/kayg/Developer/calternal-target-client; Nix C compiler/OpenSSL paths; CARGO_BUILD_JOBS=4; RUST_TEST_THREADS=4; TOKIO_WORKER_THREADS=2. Every heavy command used the required build-slot.sh wrapper. The existing server test helper was adjusted after an early health probe reset exposed a leaked child: cleanup is owned immediately; only health-check resets retry; note API reads stay strict.

Finished this slice on 81491beee9fb5bf97bdbb82f8823ff02415e5c84. PR into dev: https://git.kayg.org/kayg/calternal/pulls/480. The branch is pushed; the PR remains open. Issue #426 / N7 result PR: https://git.kayg.org/kayg/calternal/pulls/480 Branch: issue/426-client Head: 81491beee9fb5bf97bdbb82f8823ff02415e5c84 Works: one Rust client owns CLI Installation sign-in, a private SQLite device store, journal catch-up and live reconnect, markdown reads, yrs appends and durable offline replay. The thin calternal-client CLI provides login, notes list/show/append and watch; the existing server already owns the calternal binary name. UniFFI async scaffolding compiles and generates Swift bindings on Linux. ADRs 0040, 0041 and 0042 record the client, Mac Catalyst and Apple platform/layout decisions. API: Client::open(server,database); begin_login(); finish_login(device_code,device); list_notes(limit,offset); resolve_note(id_or_title); show_note(id_or_title); append_note(id,text); sync(); next_changes(); pending_count(); pending_note_ids(). Records: NoteSummary, Change, DeviceCode. Errors distinguish sign-out, offline, missing note, changed lineage, conflict, invalid input, storage, protocol and other server errors. Queued deleted-note edits remain readable by id and do not block unrelated catch-up. Numbers: 100,000-row local SQLite fixture, warm default page of 100, shared Linux host, debug build. Library over 100 samples: p50 0.250 ms, p95 0.376 ms, max 2.188 ms. CLI including process start and output over 30 samples: p50 6.182 ms, p95 12.990 ms, max 17.289 ms. Initial server download and printing all 100,000 rows were not measured. Full workspace: 460 passed, 0 failed, 3 ignored; the client performance test was also run explicitly and passed. Rendered proof: browser passkey setup -> browser approval of CLI Installation -> local CLI list/read -> CLI append -> actual web editor updates without navigation/reload -> API readback. Browser plugin not available; regular Playwright used the supplied environment, desktop 1440x1000. Screenshot: /tmp/client-web-live.png. ASCII live rendering passed. The emoji variant hit this host's Chromium/Skia font fallback abort (SIGTRAP, SkFontMgr_FontConfigInterface.cpp:163 Not implemented). Unicode appends pass the Rust/server/independent-peer tests. Browser emoji rendering remains unverified on this host. Web build warnings were pre-existing Svelte CSS/chunk warnings; no web source changed. Other limits: Swift binding generation succeeded; optional swift-format was unavailable. Generated Swift, C header and module map are temporary and uncommitted. Initial sync replays the retained journal because the server's metadata projection has no authoritative snapshot cursor. Live editor room exchanges use a socket per operation in this slice. Open design questions for kayg (recommendations, no answer needed to review this slice): 1. How should queued edits be recovered after deletion or a lineage reset? Recommend explicit export/restore/create-copy actions, retaining the original replica and never automatically seeding a new lineage. 2. How should first sync avoid replaying the full journal? Recommend an additive server snapshot contract with the metadata projection's exact cursor and completeness, then replay only later entries. 3. When should editor rooms share one socket? Recommend the next Rust slice: one persistent actor for journal and open rooms, with incremental local update storage, before connecting TextKit 2. 4. Where should Apple session tokens live? Recommend Keychain for tokens and SQLite for metadata, CRDT state and queued work; keep Linux files private at mode 0600. Validation environment: CARGO_TARGET_DIR=/home/kayg/Developer/calternal-target-client; Nix C compiler/OpenSSL paths; CARGO_BUILD_JOBS=4; RUST_TEST_THREADS=4; TOKIO_WORKER_THREADS=2. Every heavy command used the required build-slot.sh wrapper. The existing server test helper was adjusted after an early health probe reset exposed a leaked child: cleanup is owned immediately; only health-check resets retry; note API reads stay strict.
Author
Owner

Verbatim gate output, part 1 of 2, head 81491beee9:

Every command exited 0. Empty formatting output is preserved as empty.

$ cargo fmt --all --check

$ cargo clippy --workspace --all-targets -- -D warnings

    Checking calternal v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/calternal)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.75s

$ cargo test --workspace

   Compiling calternal-client v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/client)
   Compiling calternal v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/calternal)
   Compiling calternal-cli v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/cli)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 8.88s
     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal-4c4a167e31c1911b)

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

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

     Running tests/fix_tz_live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/fix_tz_live-5ade24814c9b965b)

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.49s

     Running tests/notes_crash.rs (/home/kayg/Developer/calternal-target-client/debug/deps/notes_crash-b1605d498e88a047)

running 2 tests
test kill_nine_mid_tag_rename_renames_each_tag_once ... ok
test kill_nine_never_loses_or_doubles ... ok

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

     Running tests/notes_crash_typing.rs (/home/kayg/Developer/calternal-target-client/debug/deps/notes_crash_typing-598aeaeee27cf46f)

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 4.11s

     Running tests/notes_live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/notes_live-142a6fd077fb3627)

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

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

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

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.23s

     Running tests/search_live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/search_live-4ff54bb3759a74a7)

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.06s

     Running tests/startup.rs (/home/kayg/Developer/calternal-target-client/debug/deps/startup-960abf071ed0cfff)

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

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

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_auth-59595c51092b49a8)

running 15 tests
test config::tests::origins ... ok
test device::tests::approval_cannot_be_changed_and_redemption_is_once ... ok
test device::tests::pending_polling_has_a_minimum_interval ... 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 db::tests::opens_twice_and_keeps_schema ... ok
test setup::tests::names ... ok
test setup::tests::usernames ... ok
test token::tests::junk_is_not_a_token ... ok
test db::tests::a_version_1_database_gets_passkey_names ... ok
test token::tests::setup_tokens_round_trip_through_pasting ... ok
test setup::tests::recover_needs_a_known_person ... ok
test device::tests::device_codes_expire_and_are_capped ... ok

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

     Running tests/abuse.rs (/home/kayg/Developer/calternal-target-client/debug/deps/abuse-c55386dea67ddb41)

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

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

     Running tests/create.rs (/home/kayg/Developer/calternal-target-client/debug/deps/create-73fd67a82935350d)

running 6 tests
test an_expired_enrolment_token_is_refused ... ok
test an_earlier_first_owner_token_stops_working ... ok
test names_must_be_usable_and_unique ... ok
test a_created_person_enrolls_their_first_passkey_and_is_the_same_person ... ok
test nothing_about_the_person_leaks_before_sign_in ... 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.15s

     Running tests/device.rs (/home/kayg/Developer/calternal-target-client/debug/deps/device-e7a01936bbe97ea0)

running 4 tests
test device_polling_reports_pending_and_limits_attempts ... ok
test device_approval_cannot_select_another_user_or_skip_origin_checks ... ok
test device_sign_in_requires_approval_and_issues_a_revocable_cli_token ... ok
test another_person_cannot_take_over_an_approved_device ... ok

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

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

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

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

     Running tests/login.rs (/home/kayg/Developer/calternal-target-client/debug/deps/login-1b95de7d8ab1f8df)

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

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

     Running tests/passkeys.rs (/home/kayg/Developer/calternal-target-client/debug/deps/passkeys-f10a12b3592fd978)

running 7 tests
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 add_rename_and_remove_each_leave_a_journal_event ... ok
test an_empty_name_is_refused_and_a_long_one_is_cut ... ok
test the_same_device_cannot_be_added_twice ... ok
test the_first_passkey_is_listed_with_the_device_it_was_made_on ... ok
test the_last_passkey_cannot_be_removed ... ok

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

     Running tests/setup.rs (/home/kayg/Developer/calternal-target-client/debug/deps/setup-0aa8cc3ee8991ee8)

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 first_owner_signs_up_with_the_printed_token ... ok
test session_cookie_is_locked_down ... ok
test recovery_adds_a_new_passkey_for_the_same_person ... ok
test an_expired_setup_token_is_refused ... ok
test a_token_works_exactly_once_under_a_storm ... ok

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

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_backdrops-2b468d5482feec75)

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::an_upload_is_kept_once_and_served_back ... ok
test tests::bad_ids_never_reach_the_disk_or_the_network ... ok
test tests::an_answer_that_is_not_a_picture_is_refused_and_not_kept ... ok
test tests::picking_is_reported_to_unsplash_once ... ok
test tests::pictures_are_proxied_cached_and_never_given_the_key ... ok
test tests::changes_need_our_own_page_and_a_signed_in_person ... ok
test tests::nobody_can_read_or_list_someone_elses_uploads ... ok
test tests::pictures_from_other_hosts_are_refused ... ok
test tests::the_real_client_speaks_https_to_unsplash ... ignored, needs the internet
test tests::search_lists_photos_with_our_own_addresses_and_credit ... ok
test tests::the_same_search_is_answered_once ... ok
test tests::unsplash_running_out_of_requests_is_a_plain_slow_down ... ok
test tests::the_real_client_sends_the_key_and_caps_the_size ... ok
test tests::uploads_are_checked_by_content_not_by_what_they_claim ... ok
test tests::without_a_key_photos_are_off_but_uploads_work ... 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.06s

     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_client-3a7b8b2ab62cf6eb)

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-client/debug/deps/calternal_client-1472ad486e701bd8)

running 18 tests
test room::tests::append_uses_utf16_positions_after_restoring ... ok
test room::tests::concurrent_local_writers_merge_without_losing_either_append ... ok
test room::tests::changed_lineage_is_reported_before_sending_local_state ... ok
test live::tests::silent_live_socket_becomes_offline_after_thirty_seconds ... ok
test room::tests::retrying_saved_state_applies_an_append_exactly_once ... ok
test room::tests::room_frames_match_lib0_and_reject_truncation ... ok
test live::tests::cancelling_a_consumed_entry_reconnects_from_the_committed_cursor ... ok
test store::tests::a_clean_fetch_does_not_replace_pending_state ... ok
test store::tests::concurrent_snapshot_staging_is_private_to_each_store_connection ... ok
test store::tests::duplicate_titles_require_an_id ... ok
test store::tests::concurrent_store_handles_merge_appends_from_the_same_saved_state ... ok
test store::tests::old_acknowledgement_cannot_clear_a_newer_offline_edit ... ok
test store::tests::journal_effects_and_position_survive_reopen ... ok
test store::tests::partial_snapshot_does_not_replace_visible_notes ... ok
test store::tests::warm_list_100k ... ignored, run explicitly through the shared build slot for performance evidence
test store::tests::store_handles_share_the_same_nonblocking_journal_lock ... ok
test room::tests::receiving_state_without_a_durable_ack_is_not_success ... ok
test room::tests::large_note_fetch_and_tiny_append_only_send_missing_changes ... ok

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

     Running tests/e2e.rs (/home/kayg/Developer/calternal-target-client/debug/deps/e2e-222590e6c8004229)

running 7 tests
test lifecycle::revoked_installation_reports_signed_out ... ok
test lifecycle::cold_empty_account_finishes_initial_sync ... ok
test lifecycle::canceled_watch_does_not_consume_the_next_change ... ok
test offline_append_restarts_and_syncs_once ... ok
test lifecycle::live_watch_reconnects_after_server_restart ... ok
test queue_conflict::queued_deleted_note_does_not_block_other_sync ... ok
test real_server_login_list_read_append ... ok

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

     Running tests/store.rs (/home/kayg/Developer/calternal-target-client/debug/deps/store-9870a74b7549b99f)

running 2 tests
test secrets_and_invalid_origins_are_rejected ... ok
test new_store_is_local_and_bound_to_one_server ... 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-client/debug/deps/calternal_core-79347fc21ca43d17)

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

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

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_daily-c8c2fb09f72f94b4)

running 21 tests
test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok
test day::tests::midnight_follows_the_device_in_ist ... ok
test day::tests::titles_read_like_the_web_app ... ok
test day::tests::names_and_ids ... ok
test tests::bad_input_is_refused_kindly ... ok
test tests::an_existing_day_file_is_reused_whatever_its_id ... ok
test tests::log_add_then_close_makes_a_range ... ok
test tests::close_turns_one_open_entry_into_a_range ... ok
test tests::any_text_is_safe_to_read_and_plan ... ok
test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok
test tests::shared_vectors ... ok
test tests::today_follows_the_device_offset ... ok
test tests::opening_the_same_day_at_once_makes_one_note ... ok
test times_tests::a_line_with_only_tags_stays_words ... ok
test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok
test times_tests::any_line_is_safe ... ok
test times_tests::only_a_day_note_has_times ... ok
test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok
test times_tests::trailing_tags_on_any_line ... ok
test times_tests::a_log_line_splits_into_times_words_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.53s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_engine-427d3e100a1bc3c8)

running 13 tests
test hash::tests::key_order_does_not_matter_but_content_does ... ok
test tests::a_plugin_cannot_write_outside_its_namespace ... ok
test tests::a_retry_runs_once_and_replays_the_result ... ok
test tests::bad_input_and_unknown_actions_are_friendly ... ok
test tests::changes_need_a_key_reads_do_not ... ok
test tests::connected_follows_live_views ... ok
test tests::identical_calls_at_the_same_moment_run_once ... ok
test tests::journal_pages_continue_where_they_stopped ... ok
test tests::a_user_with_a_live_view_or_a_running_action_is_kept ... ok
test tests::users_never_see_each_other ... ok
test tests::a_huge_job_never_delays_anyone ... ok
test tests::no_write_is_lost_while_users_are_released_and_reopened ... 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.54s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_fixtures-c412cc2a8d84d898)

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.54s

     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_fixtures-4e93beec492b33cd)

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-client/debug/deps/calternal_fsio-0087f3cf3ed3c80d)

running 9 tests
test tests::atomic_write_replaces_and_leaves_no_temp_files ... ok
test tests::failed_write_keeps_the_old_file ... ok
test tests::names_fold_case_and_unicode_form ... ok
test tests::only_one_process_owns_a_data_folder ... ok
test tests::prepared_writes_land_only_when_placed ... ok
test tests::unique_names_skip_case_and_form_clashes ... ok
test tests::case_only_rename_works_and_other_clashes_are_refused ... ok
test tests::write_unless_changed_keeps_someone_elses_version ... ok
test tests::big_writes_arrive_whole ... ok

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

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/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.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_migrate_v0-7a652c1a1b699822)

running 36 tests
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::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::m2_attachments_that_exist_are_copied_and_relinked ... ok
test tests::rules::m2_code_is_never_rewritten ... ok
test tests::rules::m2_links_are_repaired_by_name_date_title_and_slug ... ok
test tests::rules::m1_titles_come_from_title_then_h1_then_file_name_and_stay_unique ... ok
test tests::rules::m2_unresolved_links_stay_as_written_and_are_reported ... ok
test tests::rules::m2_wikilinks_always_become_standard_links ... ok
test tests::rules::m3_m5_frontmatter_keys_drop_and_times_convert ... ok
test tests::rules::m4_unreferenced_block_ids_go_and_referenced_ones_stay ... ok
test tests::rules::m5_unreadable_dates_fall_back ... ok
test tests::rules::m6_conflict_copies_are_not_migrated ... ok
test tests::rules::m7_tasks_blocks_are_stripped_and_listed ... ok
test tests::units::every_v0_time_shape_converts ... ok
test tests::units::file_names_give_titles ... ok
test tests::units::keys_ignore_case_encoding_quotes_and_md ... ok
test tests::rules::m8_only_notes_and_linked_files_move ... ok
test tests::units::unix_times_become_india_time ... ok
test tests::units::links_parse_in_every_shape ... ok
test tzmarker::tests::a_conversion_that_leaves_the_day_is_kept_and_reported ... ok
test tzmarker::tests::berlin_converts_inside_the_day ... ok
test tzmarker::tests::code_is_never_touched ... ok
test tzmarker::tests::day_from_a_date_value ... ok
test tzmarker::tests::eu_summer_time_edges ... 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::not_a_marker_is_left_alone ... ok
test tzmarker::tests::same_zone_just_goes ... ok
test tzmarker::tests::second_run_changes_nothing ... ok
test tzmarker::tests::styles_survive_conversion ... ok
test tzmarker::tests::unknown_zone_or_a_non_log_line_is_kept_and_counted ... 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.17s

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

running 180 tests
test anchor::tests::hash_is_plain_sha256_hex ... ok
test anchor::tests::lines_by_utf16_index ... ok
test backlinks::tests::links_are_fold_keys_and_lines ... ok
test backlinks::tests::snippets_are_the_trimmed_line ... 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 diff::tests::edits_turn_old_into_new ... 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 frontmatter::tests::reads_keys ... ok
test bulk::undo::tests::inverse_roundtrips ... ok
test index::tests::a_shared_path_answers_with_the_newest_note ... ok
test history::tests::pending_save_promotes_to_base ... ok
test index::tests::compacts_when_it_grows ... ok
test index::tests::reload_speed ... ignored
test history::tests::appends_are_ordered_and_readable ... ok
test index::tests::survives_reload_renames_and_torn_lines ... ok
test index::tests::unloads_and_reloads ... ok
test links::tests::finds_standard_and_old_style_links ... 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 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 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 room::edit::tests::checks_bounds_overlap_and_surrogates ... 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::text_tags_go_with_one_space ... ok
test tags::merge::tests::property_tags_go_with_their_comma_or_line ... ok
test tags::rewrite::tests::nothing_to_do_is_no_edits ... ok
test diff::tests::edits_never_split_a_character ... ok
test tags::rewrite::tests::positions_count_utf16 ... ok
test tags::rewrite::tests::properties_change_name_only ... ok
test tags::rewrite::tests::merging_keeps_every_tag_once_at_most ... 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::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 tags::rewrite::tests::only_real_tags_change ... ok
test tags::rewrite::tests::rename_and_back_is_the_same_text ... ok
test tests::anchors::an_anchor_follows_its_block_when_lines_shift ... ok
test tests::anchors::anchors_need_a_hash_and_block_ids_work ... ok
test tests::anchors::an_edited_block_is_refused_never_the_wrong_one ... ok
test tests::anchors::history_folds_typing_and_names_jobs ... ok
test tests::fanout::a_crash_before_the_seed_is_durable_never_doubles_text ... ok
test index::tests::answers_like_plain_maps ... ok
test tests::fanout::a_version_always_matches_its_text ... ok
test tests::fanout::a_crash_between_fan_out_and_disk_loses_nothing ... ok
test tests::fanout::bursts_converge_and_reach_history ... ok
test tests::fanout::a_first_open_does_not_wait_for_the_disk ... ok
test tests::fresh::a_note_made_with_text_opens_with_its_frontmatter ... ok
test tests::anchors::shifting_lines_never_move_the_wrong_block ... 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
test tests::fanout::collaborators_see_typing_before_the_disk ... ok
test tests::listing::the_first_page_never_waits_for_the_home_to_open ... ok
test tests::listing::pinning_shows_in_the_list_and_unpinning_leaves_no_trace ... ok
test tests::opening::a_cold_fill_ends_with_every_index_and_right_answers ... ok
test tests::opening::a_cold_home_indexes_every_file_once_with_its_own_id ... ok
test tests::opening::a_note_never_typed_in_is_still_forgotten_on_restart ... ok
test tests::listing::the_list_stays_live_with_new_notes_saves_and_outside_edits ... ok
test tests::listing::a_common_tag_pages_the_same_in_every_order ... ok
test tests::opening::a_warm_open_announces_only_what_changed_while_closed ... 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::opening::upgrading_without_a_saved_scan_announces_nothing_for_known_notes ... ok
test tests::outside::edit_while_closed_is_merged_on_open ... ok
test tests::outside::missed_watcher_event_is_caught_before_saving ... ok
test tests::listing::the_kept_count_follows_adds_and_deletes ... ok
test tests::outside::copied_note_gets_a_fresh_id ... ok
test tests::outside::outside_create_and_delete ... ok
test tests::outside::outside_edit_while_typing_merges ... ok
test tests::outside::outside_rename_keeps_the_id ... ok
test tests::opening::asking_mid_scan_never_says_not_found_and_never_duplicates_a_day ... 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::peek::an_open_room_answers_with_its_live_text ... ok
test tests::pending::yrs_alone_loses_a_parked_change ... ok
test tests::pending::changes_out_of_order_all_arrive_and_saved_is_true ... ok

Verbatim gate output, part 1 of 2, head 81491beee9fb5bf97bdbb82f8823ff02415e5c84: Every command exited 0. Empty formatting output is preserved as empty. $ cargo fmt --all --check ``` ``` $ cargo clippy --workspace --all-targets -- -D warnings ``` Checking calternal v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/calternal) Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.75s ``` $ cargo test --workspace ``` Compiling calternal-client v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/client) Compiling calternal v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/calternal) Compiling calternal-cli v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/cli) Finished `test` profile [unoptimized + debuginfo] target(s) in 8.88s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal-4c4a167e31c1911b) running 11 tests test args::tests::dev_user_never_on_a_public_address ... ok test args::tests::migrate_v0 ... ok test args::tests::fix_commands ... ok test args::tests::origin_defaults_to_the_local_port ... ok test args::tests::user_create ... ok test args::tests::user_recover ... ok test args::tests::web_folder ... ok test args::tests::defaults_and_flags ... ok test plugins::tests::contract_matches_the_server ... ok test isolation::bob_cannot_join_alices_note_room ... ok test isolation::bob_reaches_nothing_of_alices_through_any_action ... ok test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.54s Running tests/fix_tz_live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/fix_tz_live-5ade24814c9b965b) 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.49s Running tests/notes_crash.rs (/home/kayg/Developer/calternal-target-client/debug/deps/notes_crash-b1605d498e88a047) running 2 tests test kill_nine_mid_tag_rename_renames_each_tag_once ... ok test kill_nine_never_loses_or_doubles ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.37s Running tests/notes_crash_typing.rs (/home/kayg/Developer/calternal-target-client/debug/deps/notes_crash_typing-598aeaeee27cf46f) 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 4.11s Running tests/notes_live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/notes_live-142a6fd077fb3627) running 2 tests test joining_a_missing_note_fails_politely ... ok test type_over_the_websocket_and_read_it_back ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s Running tests/prefs_live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/prefs_live-eb5dc9cde25731e4) 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.23s Running tests/search_live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/search_live-4ff54bb3759a74a7) 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.06s Running tests/startup.rs (/home/kayg/Developer/calternal-target-client/debug/deps/startup-960abf071ed0cfff) running 5 tests test refuses_dev_user_on_a_public_address ... ok test refuses_plain_http_on_a_public_origin ... ok test a_new_server_prints_a_setup_token ... ok test answers_within_budget ... ok test recover_only_knows_real_people ... ok test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_auth-59595c51092b49a8) running 15 tests test config::tests::origins ... ok test device::tests::approval_cannot_be_changed_and_redemption_is_once ... ok test device::tests::pending_polling_has_a_minimum_interval ... 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 db::tests::opens_twice_and_keeps_schema ... ok test setup::tests::names ... ok test setup::tests::usernames ... ok test token::tests::junk_is_not_a_token ... ok test db::tests::a_version_1_database_gets_passkey_names ... ok test token::tests::setup_tokens_round_trip_through_pasting ... ok test setup::tests::recover_needs_a_known_person ... ok test device::tests::device_codes_expire_and_are_capped ... ok test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s Running tests/abuse.rs (/home/kayg/Developer/calternal-target-client/debug/deps/abuse-c55386dea67ddb41) running 9 tests test bad_json_and_unknown_fields_are_refused ... ok test junk_setup_tokens_are_refused_then_rate_limited ... ok test non_json_requests_are_refused ... ok test forged_sessions_get_nowhere ... ok test nothing_about_the_server_leaks_before_sign_in ... ok test garbage_credentials_never_crash ... ok test oversized_bodies_are_refused ... ok test open_prompts_are_capped ... ok test other_sites_cannot_act_for_you ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s Running tests/create.rs (/home/kayg/Developer/calternal-target-client/debug/deps/create-73fd67a82935350d) running 6 tests test an_expired_enrolment_token_is_refused ... ok test an_earlier_first_owner_token_stops_working ... ok test names_must_be_usable_and_unique ... ok test a_created_person_enrolls_their_first_passkey_and_is_the_same_person ... ok test nothing_about_the_person_leaks_before_sign_in ... 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.15s Running tests/device.rs (/home/kayg/Developer/calternal-target-client/debug/deps/device-e7a01936bbe97ea0) running 4 tests test device_polling_reports_pending_and_limits_attempts ... ok test device_approval_cannot_select_another_user_or_skip_origin_checks ... ok test device_sign_in_requires_approval_and_issues_a_revocable_cli_token ... ok test another_person_cannot_take_over_an_approved_device ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s Running tests/isolation.rs (/home/kayg/Developer/calternal-target-client/debug/deps/isolation-d86c2499fb5dcebb) running 3 tests test devices_and_passkeys_of_another_person_are_not_found ... ok test a_cookie_sent_from_another_sites_page_does_not_count ... ok test another_persons_passkey_prompt_cannot_be_used_or_cancelled ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s Running tests/login.rs (/home/kayg/Developer/calternal-target-client/debug/deps/login-1b95de7d8ab1f8df) running 9 tests test bearer_tokens_work_like_cookies ... ok test a_sign_in_answer_cannot_be_replayed ... ok test revoking_another_device_signs_it_out ... ok test an_unknown_passkey_is_refused ... ok test sign_out_ends_the_session_immediately ... ok test sign_in_with_a_passkey_creates_a_new_installation ... ok test signing_out_shows_up_live_on_another_device ... ok test signing_in_shows_up_live_on_another_device ... ok test sessions_expire_when_unused ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.23s Running tests/passkeys.rs (/home/kayg/Developer/calternal-target-client/debug/deps/passkeys-f10a12b3592fd978) running 7 tests 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 add_rename_and_remove_each_leave_a_journal_event ... ok test an_empty_name_is_refused_and_a_long_one_is_cut ... ok test the_same_device_cannot_be_added_twice ... ok test the_first_passkey_is_listed_with_the_device_it_was_made_on ... ok test the_last_passkey_cannot_be_removed ... ok test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.15s Running tests/setup.rs (/home/kayg/Developer/calternal-target-client/debug/deps/setup-0aa8cc3ee8991ee8) 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 first_owner_signs_up_with_the_printed_token ... ok test session_cookie_is_locked_down ... ok test recovery_adds_a_new_passkey_for_the_same_person ... ok test an_expired_setup_token_is_refused ... ok test a_token_works_exactly_once_under_a_storm ... ok test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_backdrops-2b468d5482feec75) 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::an_upload_is_kept_once_and_served_back ... ok test tests::bad_ids_never_reach_the_disk_or_the_network ... ok test tests::an_answer_that_is_not_a_picture_is_refused_and_not_kept ... ok test tests::picking_is_reported_to_unsplash_once ... ok test tests::pictures_are_proxied_cached_and_never_given_the_key ... ok test tests::changes_need_our_own_page_and_a_signed_in_person ... ok test tests::nobody_can_read_or_list_someone_elses_uploads ... ok test tests::pictures_from_other_hosts_are_refused ... ok test tests::the_real_client_speaks_https_to_unsplash ... ignored, needs the internet test tests::search_lists_photos_with_our_own_addresses_and_credit ... ok test tests::the_same_search_is_answered_once ... ok test tests::unsplash_running_out_of_requests_is_a_plain_slow_down ... ok test tests::the_real_client_sends_the_key_and_caps_the_size ... ok test tests::uploads_are_checked_by_content_not_by_what_they_claim ... ok test tests::without_a_key_photos_are_off_but_uploads_work ... 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.06s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_client-3a7b8b2ab62cf6eb) 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-client/debug/deps/calternal_client-1472ad486e701bd8) running 18 tests test room::tests::append_uses_utf16_positions_after_restoring ... ok test room::tests::concurrent_local_writers_merge_without_losing_either_append ... ok test room::tests::changed_lineage_is_reported_before_sending_local_state ... ok test live::tests::silent_live_socket_becomes_offline_after_thirty_seconds ... ok test room::tests::retrying_saved_state_applies_an_append_exactly_once ... ok test room::tests::room_frames_match_lib0_and_reject_truncation ... ok test live::tests::cancelling_a_consumed_entry_reconnects_from_the_committed_cursor ... ok test store::tests::a_clean_fetch_does_not_replace_pending_state ... ok test store::tests::concurrent_snapshot_staging_is_private_to_each_store_connection ... ok test store::tests::duplicate_titles_require_an_id ... ok test store::tests::concurrent_store_handles_merge_appends_from_the_same_saved_state ... ok test store::tests::old_acknowledgement_cannot_clear_a_newer_offline_edit ... ok test store::tests::journal_effects_and_position_survive_reopen ... ok test store::tests::partial_snapshot_does_not_replace_visible_notes ... ok test store::tests::warm_list_100k ... ignored, run explicitly through the shared build slot for performance evidence test store::tests::store_handles_share_the_same_nonblocking_journal_lock ... ok test room::tests::receiving_state_without_a_durable_ack_is_not_success ... ok test room::tests::large_note_fetch_and_tiny_append_only_send_missing_changes ... ok test result: ok. 17 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.16s Running tests/e2e.rs (/home/kayg/Developer/calternal-target-client/debug/deps/e2e-222590e6c8004229) running 7 tests test lifecycle::revoked_installation_reports_signed_out ... ok test lifecycle::cold_empty_account_finishes_initial_sync ... ok test lifecycle::canceled_watch_does_not_consume_the_next_change ... ok test offline_append_restarts_and_syncs_once ... ok test lifecycle::live_watch_reconnects_after_server_restart ... ok test queue_conflict::queued_deleted_note_does_not_block_other_sync ... ok test real_server_login_list_read_append ... ok test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.90s Running tests/store.rs (/home/kayg/Developer/calternal-target-client/debug/deps/store-9870a74b7549b99f) running 2 tests test secrets_and_invalid_origins_are_rejected ... ok test new_store_is_local_and_bound_to_one_server ... 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-client/debug/deps/calternal_core-79347fc21ca43d17) running 7 tests test action::tests::namespace_is_enforced ... ok test batch::tests::stops_at_the_first_error ... ok test batch::tests::visits_everything_once_in_order ... ok test journal::tests::junk_tokens_ask_for_a_refresh ... ok test plugin::tests::plugins_stay_in_their_namespace ... ok test error::tests::every_code_has_a_friendly_message ... ok test journal::tests::tokens_round_trip ... ok test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_daily-c8c2fb09f72f94b4) running 21 tests test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok test day::tests::midnight_follows_the_device_in_ist ... ok test day::tests::titles_read_like_the_web_app ... ok test day::tests::names_and_ids ... ok test tests::bad_input_is_refused_kindly ... ok test tests::an_existing_day_file_is_reused_whatever_its_id ... ok test tests::log_add_then_close_makes_a_range ... ok test tests::close_turns_one_open_entry_into_a_range ... ok test tests::any_text_is_safe_to_read_and_plan ... ok test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok test tests::shared_vectors ... ok test tests::today_follows_the_device_offset ... ok test tests::opening_the_same_day_at_once_makes_one_note ... ok test times_tests::a_line_with_only_tags_stays_words ... ok test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok test times_tests::any_line_is_safe ... ok test times_tests::only_a_day_note_has_times ... ok test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok test times_tests::trailing_tags_on_any_line ... ok test times_tests::a_log_line_splits_into_times_words_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.53s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_engine-427d3e100a1bc3c8) running 13 tests test hash::tests::key_order_does_not_matter_but_content_does ... ok test tests::a_plugin_cannot_write_outside_its_namespace ... ok test tests::a_retry_runs_once_and_replays_the_result ... ok test tests::bad_input_and_unknown_actions_are_friendly ... ok test tests::changes_need_a_key_reads_do_not ... ok test tests::connected_follows_live_views ... ok test tests::identical_calls_at_the_same_moment_run_once ... ok test tests::journal_pages_continue_where_they_stopped ... ok test tests::a_user_with_a_live_view_or_a_running_action_is_kept ... ok test tests::users_never_see_each_other ... ok test tests::a_huge_job_never_delays_anyone ... ok test tests::no_write_is_lost_while_users_are_released_and_reopened ... 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.54s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_fixtures-c412cc2a8d84d898) 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.54s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_fixtures-4e93beec492b33cd) 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-client/debug/deps/calternal_fsio-0087f3cf3ed3c80d) running 9 tests test tests::atomic_write_replaces_and_leaves_no_temp_files ... ok test tests::failed_write_keeps_the_old_file ... ok test tests::names_fold_case_and_unicode_form ... ok test tests::only_one_process_owns_a_data_folder ... ok test tests::prepared_writes_land_only_when_placed ... ok test tests::unique_names_skip_case_and_form_clashes ... ok test tests::case_only_rename_works_and_other_clashes_are_refused ... ok test tests::write_unless_changed_keeps_someone_elses_version ... ok test tests::big_writes_arrive_whole ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/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.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_migrate_v0-7a652c1a1b699822) running 36 tests 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::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::m2_attachments_that_exist_are_copied_and_relinked ... ok test tests::rules::m2_code_is_never_rewritten ... ok test tests::rules::m2_links_are_repaired_by_name_date_title_and_slug ... ok test tests::rules::m1_titles_come_from_title_then_h1_then_file_name_and_stay_unique ... ok test tests::rules::m2_unresolved_links_stay_as_written_and_are_reported ... ok test tests::rules::m2_wikilinks_always_become_standard_links ... ok test tests::rules::m3_m5_frontmatter_keys_drop_and_times_convert ... ok test tests::rules::m4_unreferenced_block_ids_go_and_referenced_ones_stay ... ok test tests::rules::m5_unreadable_dates_fall_back ... ok test tests::rules::m6_conflict_copies_are_not_migrated ... ok test tests::rules::m7_tasks_blocks_are_stripped_and_listed ... ok test tests::units::every_v0_time_shape_converts ... ok test tests::units::file_names_give_titles ... ok test tests::units::keys_ignore_case_encoding_quotes_and_md ... ok test tests::rules::m8_only_notes_and_linked_files_move ... ok test tests::units::unix_times_become_india_time ... ok test tests::units::links_parse_in_every_shape ... ok test tzmarker::tests::a_conversion_that_leaves_the_day_is_kept_and_reported ... ok test tzmarker::tests::berlin_converts_inside_the_day ... ok test tzmarker::tests::code_is_never_touched ... ok test tzmarker::tests::day_from_a_date_value ... ok test tzmarker::tests::eu_summer_time_edges ... 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::not_a_marker_is_left_alone ... ok test tzmarker::tests::same_zone_just_goes ... ok test tzmarker::tests::second_run_changes_nothing ... ok test tzmarker::tests::styles_survive_conversion ... ok test tzmarker::tests::unknown_zone_or_a_non_log_line_is_kept_and_counted ... 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.17s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_notes-b2a79fd4e42c6ce5) running 180 tests test anchor::tests::hash_is_plain_sha256_hex ... ok test anchor::tests::lines_by_utf16_index ... ok test backlinks::tests::links_are_fold_keys_and_lines ... ok test backlinks::tests::snippets_are_the_trimmed_line ... 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 diff::tests::edits_turn_old_into_new ... 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 frontmatter::tests::reads_keys ... ok test bulk::undo::tests::inverse_roundtrips ... ok test index::tests::a_shared_path_answers_with_the_newest_note ... ok test history::tests::pending_save_promotes_to_base ... ok test index::tests::compacts_when_it_grows ... ok test index::tests::reload_speed ... ignored test history::tests::appends_are_ordered_and_readable ... ok test index::tests::survives_reload_renames_and_torn_lines ... ok test index::tests::unloads_and_reloads ... ok test links::tests::finds_standard_and_old_style_links ... 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 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 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 room::edit::tests::checks_bounds_overlap_and_surrogates ... 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::text_tags_go_with_one_space ... ok test tags::merge::tests::property_tags_go_with_their_comma_or_line ... ok test tags::rewrite::tests::nothing_to_do_is_no_edits ... ok test diff::tests::edits_never_split_a_character ... ok test tags::rewrite::tests::positions_count_utf16 ... ok test tags::rewrite::tests::properties_change_name_only ... ok test tags::rewrite::tests::merging_keeps_every_tag_once_at_most ... 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::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 tags::rewrite::tests::only_real_tags_change ... ok test tags::rewrite::tests::rename_and_back_is_the_same_text ... ok test tests::anchors::an_anchor_follows_its_block_when_lines_shift ... ok test tests::anchors::anchors_need_a_hash_and_block_ids_work ... ok test tests::anchors::an_edited_block_is_refused_never_the_wrong_one ... ok test tests::anchors::history_folds_typing_and_names_jobs ... ok test tests::fanout::a_crash_before_the_seed_is_durable_never_doubles_text ... ok test index::tests::answers_like_plain_maps ... ok test tests::fanout::a_version_always_matches_its_text ... ok test tests::fanout::a_crash_between_fan_out_and_disk_loses_nothing ... ok test tests::fanout::bursts_converge_and_reach_history ... ok test tests::fanout::a_first_open_does_not_wait_for_the_disk ... ok test tests::fresh::a_note_made_with_text_opens_with_its_frontmatter ... ok test tests::anchors::shifting_lines_never_move_the_wrong_block ... 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 test tests::fanout::collaborators_see_typing_before_the_disk ... ok test tests::listing::the_first_page_never_waits_for_the_home_to_open ... ok test tests::listing::pinning_shows_in_the_list_and_unpinning_leaves_no_trace ... ok test tests::opening::a_cold_fill_ends_with_every_index_and_right_answers ... ok test tests::opening::a_cold_home_indexes_every_file_once_with_its_own_id ... ok test tests::opening::a_note_never_typed_in_is_still_forgotten_on_restart ... ok test tests::listing::the_list_stays_live_with_new_notes_saves_and_outside_edits ... ok test tests::listing::a_common_tag_pages_the_same_in_every_order ... ok test tests::opening::a_warm_open_announces_only_what_changed_while_closed ... 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::opening::upgrading_without_a_saved_scan_announces_nothing_for_known_notes ... ok test tests::outside::edit_while_closed_is_merged_on_open ... ok test tests::outside::missed_watcher_event_is_caught_before_saving ... ok test tests::listing::the_kept_count_follows_adds_and_deletes ... ok test tests::outside::copied_note_gets_a_fresh_id ... ok test tests::outside::outside_create_and_delete ... ok test tests::outside::outside_edit_while_typing_merges ... ok test tests::outside::outside_rename_keeps_the_id ... ok test tests::opening::asking_mid_scan_never_says_not_found_and_never_duplicates_a_day ... 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::peek::an_open_room_answers_with_its_live_text ... ok test tests::pending::yrs_alone_loses_a_parked_change ... ok test tests::pending::changes_out_of_order_all_arrive_and_saved_is_true ... ok ```
Author
Owner

Verbatim gate output, part 2 of 2, head 81491beee9:

test tests::renames::a_taken_name_gets_a_number_and_daily_notes_keep_theirs ... ok
test tests::outside::own_saves_are_not_outside_edits ... 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
test tests::renames::typing_in_a_linking_note_during_a_rename_is_kept ... ok
test tests::renames::undo_keeps_a_made_note_someone_typed_in ... ok
test tests::renames::backlinks_follow_edits_and_deletes ... ok
test tests::rooms::late_joiner_gets_full_state ... ok
test tests::rooms::fresh_note_opened_by_many_at_once_is_not_doubled ... ok
test tests::renames::typing_a_new_title_renames_the_file_after_a_pause ... ok
test tests::rooms::retried_change_applies_once ... ok
test tests::rooms::patches_use_utf16_positions ... ok
test tests::rooms::stale_replace_keeps_newer_typing ... ok
test tests::rooms::retried_create_makes_one_note ... ok
test tests::saving::a_write_error_keeps_the_change ... ok
test tests::rooms::typing_survives_a_concurrent_delete ... ok
test tests::saving::crash_after_write_does_not_double_text ... ok
test tests::saving::an_error_after_the_write_does_not_double_text ... ok
test tests::saving::failed_save_keeps_the_change ... ok
test tests::saving::crash_before_write_loses_nothing ... ok
test tests::saving::line_endings_and_bom_are_kept ... ok
test tests::saving::first_keystroke_creates_the_file ... ok
test tests::rooms::random_concurrent_editing_converges_without_duplicates ... ok
test tests::saving::opening_never_writes ... ok
test tests::saving::title_and_h1_stay_in_step ... ok
test tests::saving::saving_does_not_loop ... ok
test tests::saving::nonstop_typing_still_saves ... ok
test tests::renames::a_crash_mid_rename_resumes_and_applies_each_edit_once ... ok
test tests::tags::bad_names_are_refused ... ok
test tests::storm::outside_rewrites_during_a_storm_all_land ... ok
test tests::tags::typing_during_a_tag_rename_is_kept ... ok
test tests::tags::renames_every_tag_and_undoes_as_one_step ... ok
test tests::trash::a_closed_note_is_trashed_without_opening_it ... 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::forget_deletes_file_and_history_forever ... ok
test tests::trash::half_written_trash_folders_never_hide_a_live_note ... 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::tags::a_big_tag_rename_never_stalls_typing ... ok
test tests::unloading::a_connected_client_keeps_it ... ok
test tests::unloading::an_open_note_keeps_it ... ok
test tests::unloading::an_unused_home_unloads_and_answers_after ... 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 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 tests::trash::a_crash_mid_delete_finishes_on_restart_exactly_once ... ok
test tests::writers::every_writer_at_once_loses_and_doubles_nothing ... ok
test tests::tags::a_crash_mid_rename_resumes_and_renames_each_tag_once ... ok

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

     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_perf-9a61ce517de32ac7)

running 4 tests
test scenarios::storm::tests::typing_stops_before_the_newline_ahead_of_outside_lines ... ok
test live::tests::frames_round_trip_and_keystrokes_stay_whole ... ok
test stats::tests::medians_of_runs_and_pooled_singles ... ok
test scenarios::soak::tests::slope_of_a_line ... ok

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

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

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-client/debug/deps/calternal_plugin_hello-572ad83648baad68)

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-client/debug/deps/calternal_prefs-5ab3320fa1e4a357)

running 9 tests
test tests::a_retry_with_the_same_key_acts_once ... ok
test tests::keys_are_an_area_then_dotted_parts ... ok
test tests::a_change_on_one_device_reaches_the_other ... ok
test tests::bad_keys_and_big_values_get_friendly_errors ... ok
test tests::people_do_not_share_preferences ... ok
test tests::set_then_get_and_survive_a_restart ... ok
test tests::saving_the_same_value_again_is_quiet ... ok
test tests::quick_saves_from_two_devices_all_land ... 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.37s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_search-02ca20459ac6361c)

running 13 tests
test query::tests::lone_symbols_are_ignored ... ok
test query::tests::dates_cover_whole_periods ... ok
test fuzzy::tests::distance_counts_swaps_as_one ... ok
test fuzzy::tests::common_typos_are_fixed ... 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 read::tests::text_matches_like_the_index ... ok
test text::tests::bigrams_cover_unspaced_scripts ... ok
test text::tests::words_keep_indic_vowel_signs ... ok
test text::tests::fold_drops_accents_and_case ... 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.02s

     Running tests/search.rs (/home/kayg/Developer/calternal-target-client/debug/deps/search-bd43f95dbd599fcc)

running 12 tests
test an_empty_search_shows_recent_things ... ok
test every_script_is_searchable ... ok
test behind_answers_at_once_and_catching_up_is_announced_once ... ok
test filters_by_tag_kind_and_date ... ok
test odd_input_never_breaks_search ... ok
test a_restart_heals_whatever_was_missed ... ok
test results_show_why_they_matched_and_where ... ok
test prefixes_and_typos_are_forgiven ... ok
test searches_answer_while_indexing_runs ... ok
test people_only_ever_find_their_own_things ... ok
test titles_first_then_recent_use_then_body ... 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.95s

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

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-client/debug/deps/access-9ca6edbd34e5461c)

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.01s

     Running tests/live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/live-758869be296fc35f)

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

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

     Running tests/signout.rs (/home/kayg/Developer/calternal-target-client/debug/deps/signout-d299239e3ed5a005)

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.06s

     Running tests/web.rs (/home/kayg/Developer/calternal-target-client/debug/deps/web-171217ee4f1da82b)

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.04s

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

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::live_entries_arrive_in_journal_order ... ok
test tests::tokens_survive_a_restart_and_reject_strangers ... 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.36s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/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_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_client

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

$ cargo test -p calternal-client --test e2e real_server_login_list_read_append -- --exact --nocapture

   Compiling calternal-client v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/client)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 4.29s
     Running tests/e2e.rs (/home/kayg/Developer/calternal-target-client/debug/deps/e2e-d45e28a8d8acd079)

running 1 test
test real_server_login_list_read_append ... ok

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

$ cargo test -p calternal-client --test e2e offline_append_restarts_and_syncs_once -- --exact --nocapture

    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.43s
     Running tests/e2e.rs (/home/kayg/Developer/calternal-target-client/debug/deps/e2e-d45e28a8d8acd079)

running 1 test
test offline_append_restarts_and_syncs_once ... ok

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

$ cargo test -p calternal-client --lib store::tests::warm_list_100k -- --ignored --exact --nocapture

    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.32s
     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_client-e9f905cf762fa2d1)

running 1 test
100000 notes, warm local page of 100, 100 samples: p50=0.250 ms p95=0.376 ms max=2.188 ms
test store::tests::warm_list_100k ... ok

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

$ CLI process measurement

calternal-client notes list, 100000 local notes, default page 100, process start and output included, 30 samples: p50=6.182 ms p95=12.990 ms max=17.289 ms

$ cargo build -p calternal-client --lib --features bindgen

   Compiling tokio v1.53.2
   Compiling indexmap v2.14.2
   Compiling winnow v0.7.15
   Compiling winnow v1.0.4
   Compiling siphasher v1.0.4
   Compiling toml_parser v1.1.5+spec-1.1.0
   Compiling uniffi_internal_macros v0.31.2
   Compiling toml_writer v1.1.3+spec-1.1.0
   Compiling memchr v2.8.3
   Compiling nom v7.1.3
   Compiling askama_parser v0.14.0
   Compiling uniffi_pipeline v0.31.2
   Compiling fs-err v2.11.0
   Compiling basic-toml v0.1.10
   Compiling scroll_derive v0.12.1
   Compiling rustc-hash v2.1.3
   Compiling smawk v0.3.3
   Compiling textwrap v0.16.4
   Compiling hyper v1.12.0
   Compiling scroll v0.12.0
   Compiling uniffi_meta v0.31.2
   Compiling weedle2 v5.0.0
   Compiling tokio-rustls v0.26.6
   Compiling toml_datetime v0.7.5+spec-1.1.0
   Compiling serde_spanned v1.1.2
   Compiling askama_derive v0.14.0
   Compiling plain v0.2.3
   Compiling tower v0.5.3
   Compiling toml v0.9.12+spec-1.1.0
   Compiling clap_builder v4.6.7
   Compiling goblin v0.8.2
   Compiling async-compat v0.2.6
   Compiling hyper-util v0.1.21
   Compiling askama v0.14.0
   Compiling uniffi_udl v0.31.2
   Compiling glob v0.3.4
   Compiling uniffi_core v0.31.2
   Compiling uniffi_bindgen v0.31.2
   Compiling clap v4.6.7
   Compiling tower-http v0.6.11
   Compiling hyper-rustls v0.27.10
   Compiling reqwest v0.12.28
   Compiling calternal-core v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/core)
   Compiling uniffi_macros v0.31.2
   Compiling tokio-tungstenite v0.30.0
   Compiling uniffi v0.31.2
   Compiling calternal-client v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/client)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 34s

$ UniFFI Swift generation on Linux

   Compiling calternal-client v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/client)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.00s
     Running `/home/kayg/Developer/calternal-target-client/debug/uniffi-bindgen generate --library /home/kayg/Developer/calternal-target-client/debug/libcalternal_client.so --language swift --out-dir /tmp/calternal-swift-426.q6vIp2`
Warning: Unable to auto-format /tmp/calternal-swift-426.q6vIp2/calternal_client.swift using swift-format. Please make sure it is installed.

$ Rendered browser / CLI proof, ASCII marker

Skipping host requirements validation logic because `PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS` env variable is set.
Browser HTTP diagnostic: status=401, path=/api/v1/actions
Browser console error diagnostic: path=/api/v1/actions, failedresource=true
PASS real browser enrolled a passkey with the bound setup token
PASS CLI signed in as its own Installation after browser approval
PASS CLI listed the note from SQLite and read its markdown
Append process exit=0; server-saved=true; queued=false
Server markdown contains marker=true
Browser document diagnostic: {"hooks":true,"synced":true,"sharedContains":true,"editorContains":true,"composing":false,"pending":0,"socketOpen":true}
PASS live editor contains the CLI marker
Console counts: errors=1, pageerrors=0, warnings=0
PASS CLI Yrs append appeared in the visible Note text textbox without navigation or reload
PASS the server API returned the same appended markdown
PASS browser console: errors=1, expected startup auth errors=1, pageerrors=0, warnings=0; no framework overlay
PASS screenshot: /tmp/client-web-live.png
Browser page closed
Browser context closed
Browser process disconnected
Browser child exit=0, signal=null
Verbatim gate output, part 2 of 2, head 81491beee9fb5bf97bdbb82f8823ff02415e5c84: ``` test tests::renames::a_taken_name_gets_a_number_and_daily_notes_keep_theirs ... ok test tests::outside::own_saves_are_not_outside_edits ... 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 test tests::renames::typing_in_a_linking_note_during_a_rename_is_kept ... ok test tests::renames::undo_keeps_a_made_note_someone_typed_in ... ok test tests::renames::backlinks_follow_edits_and_deletes ... ok test tests::rooms::late_joiner_gets_full_state ... ok test tests::rooms::fresh_note_opened_by_many_at_once_is_not_doubled ... ok test tests::renames::typing_a_new_title_renames_the_file_after_a_pause ... ok test tests::rooms::retried_change_applies_once ... ok test tests::rooms::patches_use_utf16_positions ... ok test tests::rooms::stale_replace_keeps_newer_typing ... ok test tests::rooms::retried_create_makes_one_note ... ok test tests::saving::a_write_error_keeps_the_change ... ok test tests::rooms::typing_survives_a_concurrent_delete ... ok test tests::saving::crash_after_write_does_not_double_text ... ok test tests::saving::an_error_after_the_write_does_not_double_text ... ok test tests::saving::failed_save_keeps_the_change ... ok test tests::saving::crash_before_write_loses_nothing ... ok test tests::saving::line_endings_and_bom_are_kept ... ok test tests::saving::first_keystroke_creates_the_file ... ok test tests::rooms::random_concurrent_editing_converges_without_duplicates ... ok test tests::saving::opening_never_writes ... ok test tests::saving::title_and_h1_stay_in_step ... ok test tests::saving::saving_does_not_loop ... ok test tests::saving::nonstop_typing_still_saves ... ok test tests::renames::a_crash_mid_rename_resumes_and_applies_each_edit_once ... ok test tests::tags::bad_names_are_refused ... ok test tests::storm::outside_rewrites_during_a_storm_all_land ... ok test tests::tags::typing_during_a_tag_rename_is_kept ... ok test tests::tags::renames_every_tag_and_undoes_as_one_step ... ok test tests::trash::a_closed_note_is_trashed_without_opening_it ... 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::forget_deletes_file_and_history_forever ... ok test tests::trash::half_written_trash_folders_never_hide_a_live_note ... 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::tags::a_big_tag_rename_never_stalls_typing ... ok test tests::unloading::a_connected_client_keeps_it ... ok test tests::unloading::an_open_note_keeps_it ... ok test tests::unloading::an_unused_home_unloads_and_answers_after ... 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 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 tests::trash::a_crash_mid_delete_finishes_on_restart_exactly_once ... ok test tests::writers::every_writer_at_once_loses_and_doubles_nothing ... ok test tests::tags::a_crash_mid_rename_resumes_and_renames_each_tag_once ... ok test result: ok. 179 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 11.52s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_perf-9a61ce517de32ac7) running 4 tests test scenarios::storm::tests::typing_stops_before_the_newline_ahead_of_outside_lines ... ok test live::tests::frames_round_trip_and_keystrokes_stay_whole ... ok test stats::tests::medians_of_runs_and_pooled_singles ... ok test scenarios::soak::tests::slope_of_a_line ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running unittests src/bin/storage-bench.rs (/home/kayg/Developer/calternal-target-client/debug/deps/storage_bench-a154031903efd344) 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-client/debug/deps/calternal_plugin_hello-572ad83648baad68) 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-client/debug/deps/calternal_prefs-5ab3320fa1e4a357) running 9 tests test tests::a_retry_with_the_same_key_acts_once ... ok test tests::keys_are_an_area_then_dotted_parts ... ok test tests::a_change_on_one_device_reaches_the_other ... ok test tests::bad_keys_and_big_values_get_friendly_errors ... ok test tests::people_do_not_share_preferences ... ok test tests::set_then_get_and_survive_a_restart ... ok test tests::saving_the_same_value_again_is_quiet ... ok test tests::quick_saves_from_two_devices_all_land ... 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.37s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_search-02ca20459ac6361c) running 13 tests test query::tests::lone_symbols_are_ignored ... ok test query::tests::dates_cover_whole_periods ... ok test fuzzy::tests::distance_counts_swaps_as_one ... ok test fuzzy::tests::common_typos_are_fixed ... 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 read::tests::text_matches_like_the_index ... ok test text::tests::bigrams_cover_unspaced_scripts ... ok test text::tests::words_keep_indic_vowel_signs ... ok test text::tests::fold_drops_accents_and_case ... 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.02s Running tests/search.rs (/home/kayg/Developer/calternal-target-client/debug/deps/search-bd43f95dbd599fcc) running 12 tests test an_empty_search_shows_recent_things ... ok test every_script_is_searchable ... ok test behind_answers_at_once_and_catching_up_is_announced_once ... ok test filters_by_tag_kind_and_date ... ok test odd_input_never_breaks_search ... ok test a_restart_heals_whatever_was_missed ... ok test results_show_why_they_matched_and_where ... ok test prefixes_and_typos_are_forgiven ... ok test searches_answer_while_indexing_runs ... ok test people_only_ever_find_their_own_things ... ok test titles_first_then_recent_use_then_body ... 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.95s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_server-d00ce303d116818e) 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-client/debug/deps/access-9ca6edbd34e5461c) 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.01s Running tests/live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/live-758869be296fc35f) running 6 tests test health_answers_without_signing_in ... ok test a_stranger_token_asks_for_a_refresh ... ok test signed_out_calls_get_a_friendly_refusal ... ok test errors_carry_codes_not_internals ... ok test http_to_journal_to_websocket ... ok test reconnecting_catches_up_from_a_token ... ok test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.17s Running tests/signout.rs (/home/kayg/Developer/calternal-target-client/debug/deps/signout-d299239e3ed5a005) 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.06s Running tests/web.rs (/home/kayg/Developer/calternal-target-client/debug/deps/web-171217ee4f1da82b) 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.04s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_store-d10bc366d7efc761) 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::live_entries_arrive_in_journal_order ... ok test tests::tokens_survive_a_restart_and_reject_strangers ... 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.36s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/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_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_client 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 ``` $ cargo test -p calternal-client --test e2e real_server_login_list_read_append -- --exact --nocapture ``` Compiling calternal-client v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/client) Finished `test` profile [unoptimized + debuginfo] target(s) in 4.29s Running tests/e2e.rs (/home/kayg/Developer/calternal-target-client/debug/deps/e2e-d45e28a8d8acd079) running 1 test test real_server_login_list_read_append ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 6 filtered out; finished in 0.32s ``` $ cargo test -p calternal-client --test e2e offline_append_restarts_and_syncs_once -- --exact --nocapture ``` Finished `test` profile [unoptimized + debuginfo] target(s) in 0.43s Running tests/e2e.rs (/home/kayg/Developer/calternal-target-client/debug/deps/e2e-d45e28a8d8acd079) running 1 test test offline_append_restarts_and_syncs_once ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 6 filtered out; finished in 0.28s ``` $ cargo test -p calternal-client --lib store::tests::warm_list_100k -- --ignored --exact --nocapture ``` Finished `test` profile [unoptimized + debuginfo] target(s) in 0.32s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_client-e9f905cf762fa2d1) running 1 test 100000 notes, warm local page of 100, 100 samples: p50=0.250 ms p95=0.376 ms max=2.188 ms test store::tests::warm_list_100k ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 17 filtered out; finished in 1.07s ``` $ CLI process measurement ``` calternal-client notes list, 100000 local notes, default page 100, process start and output included, 30 samples: p50=6.182 ms p95=12.990 ms max=17.289 ms ``` $ cargo build -p calternal-client --lib --features bindgen ``` Compiling tokio v1.53.2 Compiling indexmap v2.14.2 Compiling winnow v0.7.15 Compiling winnow v1.0.4 Compiling siphasher v1.0.4 Compiling toml_parser v1.1.5+spec-1.1.0 Compiling uniffi_internal_macros v0.31.2 Compiling toml_writer v1.1.3+spec-1.1.0 Compiling memchr v2.8.3 Compiling nom v7.1.3 Compiling askama_parser v0.14.0 Compiling uniffi_pipeline v0.31.2 Compiling fs-err v2.11.0 Compiling basic-toml v0.1.10 Compiling scroll_derive v0.12.1 Compiling rustc-hash v2.1.3 Compiling smawk v0.3.3 Compiling textwrap v0.16.4 Compiling hyper v1.12.0 Compiling scroll v0.12.0 Compiling uniffi_meta v0.31.2 Compiling weedle2 v5.0.0 Compiling tokio-rustls v0.26.6 Compiling toml_datetime v0.7.5+spec-1.1.0 Compiling serde_spanned v1.1.2 Compiling askama_derive v0.14.0 Compiling plain v0.2.3 Compiling tower v0.5.3 Compiling toml v0.9.12+spec-1.1.0 Compiling clap_builder v4.6.7 Compiling goblin v0.8.2 Compiling async-compat v0.2.6 Compiling hyper-util v0.1.21 Compiling askama v0.14.0 Compiling uniffi_udl v0.31.2 Compiling glob v0.3.4 Compiling uniffi_core v0.31.2 Compiling uniffi_bindgen v0.31.2 Compiling clap v4.6.7 Compiling tower-http v0.6.11 Compiling hyper-rustls v0.27.10 Compiling reqwest v0.12.28 Compiling calternal-core v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/core) Compiling uniffi_macros v0.31.2 Compiling tokio-tungstenite v0.30.0 Compiling uniffi v0.31.2 Compiling calternal-client v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/client) Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 34s ``` $ UniFFI Swift generation on Linux ``` Compiling calternal-client v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/client) Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.00s Running `/home/kayg/Developer/calternal-target-client/debug/uniffi-bindgen generate --library /home/kayg/Developer/calternal-target-client/debug/libcalternal_client.so --language swift --out-dir /tmp/calternal-swift-426.q6vIp2` Warning: Unable to auto-format /tmp/calternal-swift-426.q6vIp2/calternal_client.swift using swift-format. Please make sure it is installed. ``` $ Rendered browser / CLI proof, ASCII marker ``` Skipping host requirements validation logic because `PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS` env variable is set. Browser HTTP diagnostic: status=401, path=/api/v1/actions Browser console error diagnostic: path=/api/v1/actions, failedresource=true PASS real browser enrolled a passkey with the bound setup token PASS CLI signed in as its own Installation after browser approval PASS CLI listed the note from SQLite and read its markdown Append process exit=0; server-saved=true; queued=false Server markdown contains marker=true Browser document diagnostic: {"hooks":true,"synced":true,"sharedContains":true,"editorContains":true,"composing":false,"pending":0,"socketOpen":true} PASS live editor contains the CLI marker Console counts: errors=1, pageerrors=0, warnings=0 PASS CLI Yrs append appeared in the visible Note text textbox without navigation or reload PASS the server API returned the same appended markdown PASS browser console: errors=1, expected startup auth errors=1, pageerrors=0, warnings=0; no framework overlay PASS screenshot: /tmp/client-web-live.png Browser page closed Browser context closed Browser process disconnected Browser child exit=0, signal=null ```
Author
Owner

Starting independent defensive audit of #481 on issue/426-client-review, based on issue/426-client-2 at 20a23d9ff5. Comparing against origin/dev and testing authentication, isolation, revocation, credential storage, origin checks, input limits and offline replay.

Starting independent defensive audit of #481 on issue/426-client-review, based on issue/426-client-2 at 20a23d9ff5b45b6c310266022e784dcb8197627b. Comparing against origin/dev and testing authentication, isolation, revocation, credential storage, origin checks, input limits and offline replay.
Author
Owner

Validation initially blocked by the unattended shell environment: cargo test could not find linker cc, and openssl-sys could not find pkg-config. The commands did run through the required shared slot wrapper. No test claim is based on these failed builds. Repairing PATH and OpenSSL discovery using installed Nix tools, then rerunning the before-fix tests and gates.

Validation initially blocked by the unattended shell environment: cargo test could not find linker cc, and openssl-sys could not find pkg-config. The commands did run through the required shared slot wrapper. No test claim is based on these failed builds. Repairing PATH and OpenSSL discovery using installed Nix tools, then rerunning the before-fix tests and gates.
Author
Owner

Finding 1: real credential exposure under the audit's browser-token rule. crates/auth/src/device.rs token() uses json_body(), which permits the server's own browser Origin, then returns the raw Installation token in JSON. No browser/device distinction is enforced. browser_cannot_redeem_a_cli_token exercises an approved code from that Origin and expects 403 with no token. Fix: refuse Origin, Cookie and Sec-Fetch-Mode on redemption, before consuming the approval. Browser approval remains available. The unchanged PR snapshot is being tested to capture the failing assertion.

Finding 1: real credential exposure under the audit's browser-token rule. crates/auth/src/device.rs token() uses json_body(), which permits the server's own browser Origin, then returns the raw Installation token in JSON. No browser/device distinction is enforced. browser_cannot_redeem_a_cli_token exercises an approved code from that Origin and expects 403 with no token. Fix: refuse Origin, Cookie and Sec-Fetch-Mode on redemption, before consuming the approval. Browser approval remains available. The unchanged PR snapshot is being tested to capture the failing assertion.
Author
Owner

Finding 2: real revocation gap in the server path used by the client. crates/server/src/live.rs authenticates only at HTTP upgrade. run() subscribes later, so a revocation between those operations can be missed. catch_up() also sends revocation entries without applying signs_out(), unlike the broadcast path; that includes recovery after broadcast lag. Tests: revoked_between_handshake_and_subscription_never_becomes_ready and revocation_in_catch_up_closes_socket_before_ready. Fix: recheck the original identity after subscribing and before sending or accepting live data, and stop when catch-up encounters this Installation's revocation. Existing open-socket sign-out behavior remains covered.

Finding 2: real revocation gap in the server path used by the client. crates/server/src/live.rs authenticates only at HTTP upgrade. run() subscribes later, so a revocation between those operations can be missed. catch_up() also sends revocation entries without applying signs_out(), unlike the broadcast path; that includes recovery after broadcast lag. Tests: revoked_between_handshake_and_subscription_never_becomes_ready and revocation_in_catch_up_closes_socket_before_ready. Fix: recheck the original identity after subscribing and before sending or accepting live data, and stop when catch-up encounters this Installation's revocation. Existing open-socket sign-out behavior remains covered.
Author
Owner

Finding 3: real defensive protocol gap, without evidence of a cross-user exploit. crates/client/src/sync.rs apply_entries() writes the supplied cursor without checking the entry order, entry sequence/token agreement, epoch, or final page token. A malformed page can regress the committed cursor or skip data. malformed_journal_order_cannot_regress_the_committed_cursor covers descending and repeated sequences, a backwards page cursor, and an inconsistent epoch. Fix: validate the complete batch against the committed cursor before fetching notes or writing anything. Live duplicate entries continue to be ignored before application.

Finding 3: real defensive protocol gap, without evidence of a cross-user exploit. crates/client/src/sync.rs apply_entries() writes the supplied cursor without checking the entry order, entry sequence/token agreement, epoch, or final page token. A malformed page can regress the committed cursor or skip data. malformed_journal_order_cannot_regress_the_committed_cursor covers descending and repeated sequences, a backwards page cursor, and an inconsistent epoch. Fix: validate the complete batch against the committed cursor before fetching notes or writing anything. Live duplicate entries continue to be ignored before application.
Author
Owner

Audit coverage and choices

The reviewed head is 20a23d9ff5 on issue/426-client-2. The fix branch is issue/426-client-review. No app-password implementation or server journal/room route was added by #481; device-code sign-in is the new server surface, and the new client uses the existing journal and room routes. No app-password feature was invented during this audit.

  1. Authentication: existing device expiry, pending, cap, poll interval, unauthenticated approval, single-use redemption, approval binding and second-user takeover tests; added browser redemption refusal and approval guessing limit tests. A pending device request has no preselected account: the signed-in approving person becomes its owner. An input user selector is refused, and another person cannot change approval afterwards.
  2. Isolation: the whole-server action enumeration remains the gate for every registered action. Extended crates/calternal/src/isolation.rs with foreign journal cursors and room lineages. Added real two-user device-token HTTP/list/read/append/peek/revoke, catch-up and websocket room checks, plus client-store account binding.
  3. Revocation: added deterministic upgrade race and catch-up tests. Real device tokens must lose me/actions/journal and an established journal socket on revocation. Revalidation uses the original handshake credential through Authenticator, preserving the cookie origin check.
  4. Secrets: session::create writes only BLAKE3 hashes. Added direct database hash verification. The device response is no-store, never a browser cookie, and browser requests cannot redeem. CLI login prints only user_code and verification_uri; error mappings do not include request headers. Added 0600 checks for the client SQLite database, WAL and SHM, including reopening. Existing tests cover the sync lock's mode. Server access logging records route patterns without query strings, headers or bodies.
  5. Origin/CSRF: new device paths use json_body's origin/content-type guard. Added tests of foreign origins on all three POST routes; existing #409 tests cover foreign-origin cookie access to journal, actions and websocket. Token redemption is stricter and rejects browser request indicators.
  6. Input limits: added oversized, malformed JSON and malformed UTF-8 requests on all three device POST routes. Existing server websocket input cap is 1 MiB. Existing room tests cover truncation, large documents, lineage-before-state and missing durable acknowledgement. Added journal order/token validation with no cursor change on invalid input.
  7. Offline queue: the idempotency keys for binary Yrs updates are the persisted CRDT writer IDs and operation clocks. HTTP read actions do not need mutation keys, and queue replay does not call a text append action. Existing unit/integration tests cover restart and duplicate update application; the added real-server test requeues an already-applied state to model a lost acknowledgement, and deliberately routes it to a different note to verify server lineage refusal. Account binding prevents applying one user's queue with another user's session.

No production VM, staging VM or perf VM was accessed. Heavy commands use the shared build-slot wrapper and the requested CARGO_TARGET_DIR. Installed Nix compiler/OpenSSL paths repair this unattended shell's missing build environment. Before-fix tests run in a separate detached worktree of the unchanged PR head, with only regression tests copied in.

Audit coverage and choices The reviewed head is 20a23d9ff5b45b6c310266022e784dcb8197627b on issue/426-client-2. The fix branch is issue/426-client-review. No app-password implementation or server journal/room route was added by #481; device-code sign-in is the new server surface, and the new client uses the existing journal and room routes. No app-password feature was invented during this audit. 1. Authentication: existing device expiry, pending, cap, poll interval, unauthenticated approval, single-use redemption, approval binding and second-user takeover tests; added browser redemption refusal and approval guessing limit tests. A pending device request has no preselected account: the signed-in approving person becomes its owner. An input user selector is refused, and another person cannot change approval afterwards. 2. Isolation: the whole-server action enumeration remains the gate for every registered action. Extended crates/calternal/src/isolation.rs with foreign journal cursors and room lineages. Added real two-user device-token HTTP/list/read/append/peek/revoke, catch-up and websocket room checks, plus client-store account binding. 3. Revocation: added deterministic upgrade race and catch-up tests. Real device tokens must lose me/actions/journal and an established journal socket on revocation. Revalidation uses the original handshake credential through Authenticator, preserving the cookie origin check. 4. Secrets: session::create writes only BLAKE3 hashes. Added direct database hash verification. The device response is no-store, never a browser cookie, and browser requests cannot redeem. CLI login prints only user_code and verification_uri; error mappings do not include request headers. Added 0600 checks for the client SQLite database, WAL and SHM, including reopening. Existing tests cover the sync lock's mode. Server access logging records route patterns without query strings, headers or bodies. 5. Origin/CSRF: new device paths use json_body's origin/content-type guard. Added tests of foreign origins on all three POST routes; existing #409 tests cover foreign-origin cookie access to journal, actions and websocket. Token redemption is stricter and rejects browser request indicators. 6. Input limits: added oversized, malformed JSON and malformed UTF-8 requests on all three device POST routes. Existing server websocket input cap is 1 MiB. Existing room tests cover truncation, large documents, lineage-before-state and missing durable acknowledgement. Added journal order/token validation with no cursor change on invalid input. 7. Offline queue: the idempotency keys for binary Yrs updates are the persisted CRDT writer IDs and operation clocks. HTTP read actions do not need mutation keys, and queue replay does not call a text append action. Existing unit/integration tests cover restart and duplicate update application; the added real-server test requeues an already-applied state to model a lost acknowledgement, and deliberately routes it to a different note to verify server lineage refusal. Account binding prevents applying one user's queue with another user's session. No production VM, staging VM or perf VM was accessed. Heavy commands use the shared build-slot wrapper and the requested CARGO_TARGET_DIR. Installed Nix compiler/OpenSSL paths repair this unattended shell's missing build environment. Before-fix tests run in a separate detached worktree of the unchanged PR head, with only regression tests copied in.
Author
Owner

All regression tests now fail against the unchanged #481 implementation (20a23d9), with only tests added in the detached baseline worktree. The repaired compiler environment was used. Evidence:

browser_cannot_redeem_a_cli_token:
left: 200
right: 403

revocation_in_catch_up_closes_socket_before_ready:
left: String("ready")
right: "error"

revoked_between_handshake_and_subscription_never_becomes_ready:
left: String("ready")
right: "error"

malformed_journal_order_cannot_regress_the_committed_cursor:
assertion failed: matches!(client.inner.apply_entries(&entries,token).await,Err(ClientError::Protocol))

Each run ended with test result: FAILED. Complete before-fix output is saved in /home/kayg/codex-jobs/client-auth-review/{browser,revoke,upgrade,order}-before.log. The fixed workspace gates are now running. The first clippy pass caught a test fixture using a disallowed filesystem helper; replacing that helper before rerunning the gates.

All regression tests now fail against the unchanged #481 implementation (20a23d9), with only tests added in the detached baseline worktree. The repaired compiler environment was used. Evidence: browser_cannot_redeem_a_cli_token: left: 200 right: 403 revocation_in_catch_up_closes_socket_before_ready: left: String("ready") right: "error" revoked_between_handshake_and_subscription_never_becomes_ready: left: String("ready") right: "error" malformed_journal_order_cannot_regress_the_committed_cursor: assertion failed: matches!(client.inner.apply_entries(&entries,token).await,Err(ClientError::Protocol)) Each run ended with test result: FAILED. Complete before-fix output is saved in /home/kayg/codex-jobs/client-auth-review/{browser,revoke,upgrade,order}-before.log. The fixed workspace gates are now running. The first clippy pass caught a test fixture using a disallowed filesystem helper; replacing that helper before rerunning the gates.
Author
Owner

Validation update: the fixed authentication, client integration, offline replay and extended isolation checks passed in the first workspace test run. The run then failed in unchanged engine test tests::no_write_is_lost_while_users_are_released_and_reopened with "the test never released anyone" (crates/engine/src/tests.rs:475). This assertion depends on the concurrent sweeper observing an idle scheduling gap. No engine implementation or test was changed by the audit. Preserved the full failing run as test-first.log and rerunning the full gates, including the newly added CLI subprocess credential test. No gate is being skipped.

Validation update: the fixed authentication, client integration, offline replay and extended isolation checks passed in the first workspace test run. The run then failed in unchanged engine test tests::no_write_is_lost_while_users_are_released_and_reopened with "the test never released anyone" (crates/engine/src/tests.rs:475). This assertion depends on the concurrent sweeper observing an idle scheduling gap. No engine implementation or test was changed by the audit. Preserved the full failing run as test-first.log and rerunning the full gates, including the newly added CLI subprocess credential test. No gate is being skipped.
Author
Owner

Completed the independent audit of #481 for #426. Fix branch: issue/426-client-review. Head: f6cd9d82af. PR: #482 into dev, building on #481. No merge, deployment or issue closure was performed.

Fixed three findings: browser redemption of raw CLI tokens; missed Installation revocation during websocket upgrade or catch-up; and acceptance of inconsistent journal batches that could regress the client cursor. Four regression tests fail against the unchanged PR head and pass with the fixes. No cross-user data leak was found in the tested action, journal and room paths. No app-password path exists in this diff.

All required gates passed. The final cargo test --workspace run passed 472 tests with zero failures. Three existing internet/performance tests are ignored by the default gate. The CLI subprocess credential test, extended whole-server isolation suite, real device-token isolation checks, client integration and offline replay tests all passed. The initial unrelated engine sweeper scheduling failure passed on the full rerun; its original output is retained in test-first.log.

Detailed findings, coverage and baseline failures are in findings.md. Full final gate output is retained in fmt.log, clippy.log and test.log and quoted verbatim on #426. Commands used CARGO_TARGET_DIR=/home/kayg/Developer/calternal-target-client and the required shared build-slot wrapper; CARGO_BUILD_JOBS=2 and RUST_TEST_THREADS=2 limited concurrency. Installed Nix compiler and OpenSSL paths repaired the unattended shell environment.

Verbatim gate output follows. The formatting check produced no output.

cargo fmt --all --check (exit 0)

cargo clippy --workspace --all-targets -- -D warnings (exit 0)

    Checking calternal-cli v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/cli)
    Checking calternal-auth v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/auth)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.80s

cargo test --workspace (exit 0)

   Compiling calternal-cli v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/cli)
   Compiling calternal-auth v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/auth)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 7.30s
     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal-4c4a167e31c1911b)

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

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

     Running tests/fix_tz_live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/fix_tz_live-5ade24814c9b965b)

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.39s

     Running tests/notes_crash.rs (/home/kayg/Developer/calternal-target-client/debug/deps/notes_crash-b1605d498e88a047)

running 2 tests
test kill_nine_mid_tag_rename_renames_each_tag_once ... ok
test kill_nine_never_loses_or_doubles ... ok

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

     Running tests/notes_crash_typing.rs (/home/kayg/Developer/calternal-target-client/debug/deps/notes_crash_typing-598aeaeee27cf46f)

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.40s

     Running tests/notes_live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/notes_live-142a6fd077fb3627)

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

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

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

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-client/debug/deps/search_live-4ff54bb3759a74a7)

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.03s

     Running tests/startup.rs (/home/kayg/Developer/calternal-target-client/debug/deps/startup-960abf071ed0cfff)

running 5 tests
test a_new_server_prints_a_setup_token ... ok
test answers_within_budget ... ok
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 result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_auth-59595c51092b49a8)

running 15 tests
test config::tests::origins ... ok
test db::tests::a_version_1_database_gets_passkey_names ... ok
test device::tests::approval_cannot_be_changed_and_redemption_is_once ... ok
test db::tests::opens_twice_and_keeps_schema ... ok
test device::tests::pending_polling_has_a_minimum_interval ... 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::recover_needs_a_known_person ... 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 device::tests::device_codes_expire_and_are_capped ... ok

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

     Running tests/abuse.rs (/home/kayg/Developer/calternal-target-client/debug/deps/abuse-c55386dea67ddb41)

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

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

     Running tests/create.rs (/home/kayg/Developer/calternal-target-client/debug/deps/create-73fd67a82935350d)

running 6 tests
test an_earlier_first_owner_token_stops_working ... ok
test a_created_person_enrolls_their_first_passkey_and_is_the_same_person ... ok
test an_expired_enrolment_token_is_refused ... ok
test names_must_be_usable_and_unique ... ok
test nothing_about_the_person_leaks_before_sign_in ... 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.14s

     Running tests/device.rs (/home/kayg/Developer/calternal-target-client/debug/deps/device-e7a01936bbe97ea0)

running 8 tests
test browser_cannot_redeem_a_cli_token ... ok
test device_approval_cannot_select_another_user_or_skip_origin_checks ... ok
test another_person_cannot_take_over_an_approved_device ... ok
test device_approval_guessing_is_rate_limited ... ok
test device_installation_stores_only_the_token_hash ... ok
test device_polling_reports_pending_and_limits_attempts ... ok
test device_routes_refuse_oversized_invalid_and_foreign_requests ... ok
test device_sign_in_requires_approval_and_issues_a_revocable_cli_token ... ok

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

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

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.03s

     Running tests/login.rs (/home/kayg/Developer/calternal-target-client/debug/deps/login-1b95de7d8ab1f8df)

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

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

     Running tests/passkeys.rs (/home/kayg/Developer/calternal-target-client/debug/deps/passkeys-f10a12b3592fd978)

running 7 tests
test a_removed_passkey_that_is_gone_or_unknown_is_not_found ... ok
test add_rename_and_remove_each_leave_a_journal_event ... ok
test an_empty_name_is_refused_and_a_long_one_is_cut ... ok
test adding_needs_a_sign_in_and_an_add_prompt_works_once ... ok
test the_first_passkey_is_listed_with_the_device_it_was_made_on ... ok
test the_same_device_cannot_be_added_twice ... ok
test the_last_passkey_cannot_be_removed ... 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-client/debug/deps/setup-0aa8cc3ee8991ee8)

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

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

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_backdrops-2b468d5482feec75)

running 19 tests
test tests::a_photo_unknown_to_us_is_looked_up ... ok
test tests::an_answer_that_is_not_a_picture_is_refused_and_not_kept ... ok
test tests::an_upload_is_private_to_the_person_who_made_it ... ok
test tests::an_upload_is_kept_once_and_served_back ... 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::picking_is_reported_to_unsplash_once ... ok
test tests::nobody_can_read_or_list_someone_elses_uploads ... ok
test tests::pictures_from_other_hosts_are_refused ... ok
test tests::pictures_are_proxied_cached_and_never_given_the_key ... ok
test tests::search_lists_photos_with_our_own_addresses_and_credit ... ok
test tests::the_real_client_sends_the_key_and_caps_the_size ... ok
test tests::the_real_client_speaks_https_to_unsplash ... ignored, needs the internet
test tests::the_same_search_is_answered_once ... ok
test tests::too_many_pixels_are_refused_but_big_files_are_not ... ok
test tests::unsplash_running_out_of_requests_is_a_plain_slow_down ... ok
test tests::uploads_are_checked_by_content_not_by_what_they_claim ... ok
test tests::the_cache_drops_the_oldest_files_past_its_cap ... ok
test tests::without_a_key_photos_are_off_but_uploads_work ... ok

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

     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_client-d32aab3b1b7e7ebb)

running 0 tests

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

     Running tests/credentials.rs (/home/kayg/Developer/calternal-target-client/debug/deps/credentials-c062f6ea07facd30)

running 1 test
test login_keeps_token_private_on_disk_and_out_of_terminal_output ... ok

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

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_client-1472ad486e701bd8)

running 20 tests
test live::tests::malformed_journal_order_cannot_regress_the_committed_cursor ... ok
test live::tests::silent_live_socket_becomes_offline_after_thirty_seconds ... ok
test room::tests::append_uses_utf16_positions_after_restoring ... ok
test live::tests::cancelling_a_consumed_entry_reconnects_from_the_committed_cursor ... ok
test room::tests::concurrent_local_writers_merge_without_losing_either_append ... ok
test room::tests::changed_lineage_is_reported_before_sending_local_state ... ok
test room::tests::large_note_fetch_and_tiny_append_only_send_missing_changes ... ok
test room::tests::retrying_saved_state_applies_an_append_exactly_once ... ok
test room::tests::room_frames_match_lib0_and_reject_truncation ... ok
test store::tests::a_clean_fetch_does_not_replace_pending_state ... ok
test store::tests::concurrent_snapshot_staging_is_private_to_each_store_connection ... ok
test store::tests::concurrent_store_handles_merge_appends_from_the_same_saved_state ... ok
test store::tests::duplicate_titles_require_an_id ... ok
test room::tests::receiving_state_without_a_durable_ack_is_not_success ... ok
test store::tests::journal_effects_and_position_survive_reopen ... ok
test store::tests::old_acknowledgement_cannot_clear_a_newer_offline_edit ... ok
test store::tests::partial_snapshot_does_not_replace_visible_notes ... ok
test store::tests::store_handles_share_the_same_nonblocking_journal_lock ... ok
test store::tests::warm_list_100k ... ignored, run explicitly through the shared build slot for performance evidence
test store::tests::session_database_and_sidecars_are_private_even_when_reopened ... ok

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

     Running tests/auth_audit.rs (/home/kayg/Developer/calternal-target-client/debug/deps/auth_audit-e492caa646e14f41)

running 2 tests
test two_users_device_tokens_isolate_http_catch_up_and_rooms ... ok
test replay_after_lost_ack_is_once_and_cannot_target_another_note ... ok

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

     Running tests/e2e.rs (/home/kayg/Developer/calternal-target-client/debug/deps/e2e-222590e6c8004229)

running 7 tests
test lifecycle::cold_empty_account_finishes_initial_sync ... ok
test lifecycle::canceled_watch_does_not_consume_the_next_change ... ok
test lifecycle::revoked_installation_reports_signed_out ... ok
test offline_append_restarts_and_syncs_once ... ok
test lifecycle::live_watch_reconnects_after_server_restart ... ok
test real_server_login_list_read_append ... ok
test queue_conflict::queued_deleted_note_does_not_block_other_sync ... ok

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

     Running tests/store.rs (/home/kayg/Developer/calternal-target-client/debug/deps/store-9870a74b7549b99f)

running 2 tests
test secrets_and_invalid_origins_are_rejected ... ok
test new_store_is_local_and_bound_to_one_server ... ok

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

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_core-79347fc21ca43d17)

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 journal::tests::junk_tokens_ask_for_a_refresh ... ok
test batch::tests::visits_everything_once_in_order ... 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-client/debug/deps/calternal_daily-c8c2fb09f72f94b4)

running 21 tests
test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok
test day::tests::midnight_follows_the_device_in_ist ... ok
test day::tests::titles_read_like_the_web_app ... ok
test day::tests::names_and_ids ... ok
test tests::an_existing_day_file_is_reused_whatever_its_id ... ok
test tests::any_text_is_safe_to_read_and_plan ... ok
test tests::bad_input_is_refused_kindly ... ok
test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok
test tests::log_add_then_close_makes_a_range ... ok
test tests::close_turns_one_open_entry_into_a_range ... ok
test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok
test tests::opening_the_same_day_at_once_makes_one_note ... ok
test tests::shared_vectors ... ok
test tests::today_follows_the_device_offset ... ok
test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok
test times_tests::a_line_with_only_tags_stays_words ... ok
test times_tests::a_log_line_splits_into_times_words_and_tags ... ok
test times_tests::any_line_is_safe ... ok
test times_tests::only_a_day_note_has_times ... ok
test times_tests::trailing_tags_on_any_line ... 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.49s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_engine-427d3e100a1bc3c8)

running 13 tests
test hash::tests::key_order_does_not_matter_but_content_does ... ok
test tests::a_plugin_cannot_write_outside_its_namespace ... ok
test tests::a_retry_runs_once_and_replays_the_result ... 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::bad_input_and_unknown_actions_are_friendly ... ok
test tests::changes_need_a_key_reads_do_not ... ok
test tests::connected_follows_live_views ... ok
test tests::identical_calls_at_the_same_moment_run_once ... ok
test tests::journal_pages_continue_where_they_stopped ... ok
test tests::no_write_is_lost_while_users_are_released_and_reopened ... ok
test tests::an_idle_user_is_released_and_comes_back_with_nothing_lost ... ok
test tests::users_never_see_each_other ... ok

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

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_fixtures-c412cc2a8d84d898)

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.53s

     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_fixtures-4e93beec492b33cd)

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-client/debug/deps/calternal_fsio-0087f3cf3ed3c80d)

running 9 tests
test tests::atomic_write_replaces_and_leaves_no_temp_files ... ok
test tests::case_only_rename_works_and_other_clashes_are_refused ... ok
test tests::failed_write_keeps_the_old_file ... ok
test tests::names_fold_case_and_unicode_form ... ok
test tests::only_one_process_owns_a_data_folder ... ok
test tests::prepared_writes_land_only_when_placed ... ok
test tests::unique_names_skip_case_and_form_clashes ... ok
test tests::write_unless_changed_keeps_someone_elses_version ... ok
test tests::big_writes_arrive_whole ... ok

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

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/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.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_migrate_v0-7a652c1a1b699822)

running 36 tests
test tests::rules::dry_run_writes_nothing ... 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::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::m1_titles_come_from_title_then_h1_then_file_name_and_stay_unique ... ok
test tests::rules::m2_attachments_that_exist_are_copied_and_relinked ... ok
test tests::rules::m2_code_is_never_rewritten ... ok
test tests::rules::m2_links_are_repaired_by_name_date_title_and_slug ... ok
test tests::rules::m2_unresolved_links_stay_as_written_and_are_reported ... ok
test tests::rules::m2_wikilinks_always_become_standard_links ... ok
test tests::rules::m3_m5_frontmatter_keys_drop_and_times_convert ... ok
test tests::rules::m4_unreferenced_block_ids_go_and_referenced_ones_stay ... ok
test tests::rules::m5_unreadable_dates_fall_back ... ok
test tests::rules::m6_conflict_copies_are_not_migrated ... 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::rules::running_twice_gives_the_same_bytes ... ok
test tests::units::every_v0_time_shape_converts ... ok
test tests::units::file_names_give_titles ... ok
test tests::units::keys_ignore_case_encoding_quotes_and_md ... ok
test tests::units::links_parse_in_every_shape ... 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::berlin_converts_inside_the_day ... ok
test tzmarker::tests::code_is_never_touched ... ok
test tzmarker::tests::day_from_a_date_value ... ok
test tzmarker::tests::eu_summer_time_edges ... 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::not_a_marker_is_left_alone ... ok
test tzmarker::tests::same_zone_just_goes ... ok
test tzmarker::tests::second_run_changes_nothing ... ok
test tzmarker::tests::styles_survive_conversion ... ok
test tzmarker::tests::unknown_zone_or_a_non_log_line_is_kept_and_counted ... 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.08s

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

running 180 tests
test anchor::tests::lines_by_utf16_index ... 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 backlinks::tests::snippets_are_the_trimmed_line ... ok
test diff::tests::an_inserted_line_starts_at_a_line_start ... ok
test diff::tests::edits_never_split_a_character ... ok
test bulk::undo::tests::inverse_roundtrips ... 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 diff::tests::edits_turn_old_into_new ... ok
test index::tests::a_shared_path_answers_with_the_newest_note ... ok
test history::tests::pending_save_promotes_to_base ... 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 index::tests::unloads_and_reloads ... ok
test links::tests::finds_standard_and_old_style_links ... 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::retarget_matches_case_and_unicode_forms ... ok
test links::tests::skips_code_images_and_the_web ... ok
test meta::tests::cursors_round_trip_and_reject_junk ... ok
test meta::tests::snippets_skip_frontmatter_and_headings ... 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 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::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 index::tests::answers_like_plain_maps ... 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::rewrite::tests::only_real_tags_change ... ok
test tags::scan::tests::code_is_never_tags ... 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_edited_block_is_refused_never_the_wrong_one ... ok
test tests::anchors::an_anchor_follows_its_block_when_lines_shift ... ok
test tests::anchors::anchors_need_a_hash_and_block_ids_work ... ok
test tests::anchors::history_folds_typing_and_names_jobs ... ok
test tests::fanout::a_crash_before_the_seed_is_durable_never_doubles_text ... ok
test tests::anchors::shifting_lines_never_move_the_wrong_block ... ok
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
test tests::fanout::a_version_always_matches_its_text ... ok
test tests::fanout::bursts_converge_and_reach_history ... ok
test tests::fresh::a_note_made_with_text_opens_with_its_frontmatter ... 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
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
test tests::listing::the_list_stays_live_with_new_notes_saves_and_outside_edits ... ok
test tests::opening::a_cold_fill_ends_with_every_index_and_right_answers ... ok
test tests::listing::the_kept_count_follows_adds_and_deletes ... ok
test tests::opening::a_note_never_typed_in_is_still_forgotten_on_restart ... ok
test tests::opening::a_cold_home_indexes_every_file_once_with_its_own_id ... ok
test tests::opening::a_warm_open_announces_only_what_changed_while_closed ... 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::opening::upgrading_without_a_saved_scan_announces_nothing_for_known_notes ... ok
test tests::outside::copied_note_gets_a_fresh_id ... ok
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::outside_create_and_delete ... ok
test tests::outside::outside_edit_while_typing_merges ... ok
test tests::opening::asking_mid_scan_never_says_not_found_and_never_duplicates_a_day ... ok
test tests::outside::outside_rename_keeps_the_id ... ok
test tests::outside::own_saves_are_not_outside_edits ... 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
test tests::outside::polling_finds_outside_changes ... ok
test tests::renames::a_taken_name_gets_a_number_and_daily_notes_keep_theirs ... ok
test tests::renames::backlinks_follow_edits_and_deletes ... 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
test tests::renames::typing_a_new_title_renames_the_file_after_a_pause ... ok
test tests::renames::typing_in_a_linking_note_during_a_rename_is_kept ... ok
test tests::renames::undo_keeps_a_made_note_someone_typed_in ... ok
test tests::rooms::fresh_note_opened_by_many_at_once_is_not_doubled ... ok
test tests::rooms::late_joiner_gets_full_state ... ok
test tests::rooms::patches_use_utf16_positions ... ok
test tests::rooms::random_concurrent_editing_converges_without_duplicates ... 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
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::crash_before_write_loses_nothing ... ok
test tests::saving::failed_save_keeps_the_change ... ok
test tests::renames::a_crash_mid_rename_resumes_and_applies_each_edit_once ... ok
test tests::saving::line_endings_and_bom_are_kept ... ok
test tests::saving::first_keystroke_creates_the_file ... ok
test tests::saving::opening_never_writes ... ok
test tests::saving::saving_does_not_loop ... ok
test tests::saving::title_and_h1_stay_in_step ... ok
test tests::saving::nonstop_typing_still_saves ... ok
test tests::storm::outside_rewrites_during_a_storm_all_land ... ok
test tests::tags::a_big_tag_rename_never_stalls_typing ... 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::trash::a_crash_mid_delete_finishes_on_restart_exactly_once ... 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::forget_deletes_file_and_history_forever ... ok
test tests::trash::half_written_trash_folders_never_hide_a_live_note ... 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::a_connected_client_keeps_it ... ok
test tests::unloading::an_open_note_keeps_it ... ok
test tests::unloading::an_unused_home_unloads_and_answers_after ... ok
test tests::tags::a_crash_mid_rename_resumes_and_renames_each_tag_once ... 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 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 tests::writers::every_writer_at_once_loses_and_doubles_nothing ... ok

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

     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_perf-9a61ce517de32ac7)

running 4 tests
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::medians_of_runs_and_pooled_singles ... ok
test live::tests::frames_round_trip_and_keystrokes_stay_whole ... ok

test result: ok. 4 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-client/debug/deps/storage_bench-a154031903efd344)

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-client/debug/deps/calternal_plugin_hello-572ad83648baad68)

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-client/debug/deps/calternal_prefs-5ab3320fa1e4a357)

running 9 tests
test tests::a_change_on_one_device_reaches_the_other ... ok
test tests::a_retry_with_the_same_key_acts_once ... ok
test tests::bad_keys_and_big_values_get_friendly_errors ... ok
test tests::keys_are_an_area_then_dotted_parts ... ok
test tests::people_do_not_share_preferences ... ok
test tests::quick_saves_from_two_devices_all_land ... ok
test tests::saving_the_same_value_again_is_quiet ... ok
test tests::set_then_get_and_survive_a_restart ... 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.32s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_search-02ca20459ac6361c)

running 13 tests
test fuzzy::tests::distance_counts_swaps_as_one ... ok
test fuzzy::tests::common_typos_are_fixed ... ok
test query::tests::dates_cover_whole_periods ... ok
test query::tests::lone_symbols_are_ignored ... ok
test query::tests::words_filters_and_phrases ... ok
test read::tests::block_ids_are_found ... ok
test read::tests::excerpts_mark_matches_in_context ... ok
test read::tests::text_matches_like_the_index ... ok
test read::tests::renumbering_shifts_placeholders ... ok
test text::tests::bigrams_cover_unspaced_scripts ... ok
test text::tests::fold_drops_accents_and_case ... 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.01s

     Running tests/search.rs (/home/kayg/Developer/calternal-target-client/debug/deps/search-bd43f95dbd599fcc)

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

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

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

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-client/debug/deps/access-9ca6edbd34e5461c)

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.01s

     Running tests/live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/live-758869be296fc35f)

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

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

     Running tests/signout.rs (/home/kayg/Developer/calternal-target-client/debug/deps/signout-d299239e3ed5a005)

running 3 tests
test revoked_between_handshake_and_subscription_never_becomes_ready ... ok
test revocation_in_catch_up_closes_socket_before_ready ... ok
test signing_a_device_out_closes_its_live_socket ... ok

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

     Running tests/web.rs (/home/kayg/Developer/calternal-target-client/debug/deps/web-171217ee4f1da82b)

running 3 tests
test caching_and_security_headers_follow_what_each_file_is ... ok
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 result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

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

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::live_entries_arrive_in_journal_order ... ok
test tests::old_idempotency_records_are_swept_after_commits ... ok
test tests::old_idempotency_records_are_swept_when_the_store_opens ... ok
test tests::tokens_survive_a_restart_and_reject_strangers ... ok
test tests::reads_are_capped ... ok

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

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/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_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_client

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

Completed the independent audit of #481 for #426. Fix branch: issue/426-client-review. Head: f6cd9d82af7a0b0f3c7b62a9a53ae658c8b60fe8. PR: https://git.kayg.org/kayg/calternal/pulls/482 into dev, building on #481. No merge, deployment or issue closure was performed. Fixed three findings: browser redemption of raw CLI tokens; missed Installation revocation during websocket upgrade or catch-up; and acceptance of inconsistent journal batches that could regress the client cursor. Four regression tests fail against the unchanged PR head and pass with the fixes. No cross-user data leak was found in the tested action, journal and room paths. No app-password path exists in this diff. All required gates passed. The final cargo test --workspace run passed 472 tests with zero failures. Three existing internet/performance tests are ignored by the default gate. The CLI subprocess credential test, extended whole-server isolation suite, real device-token isolation checks, client integration and offline replay tests all passed. The initial unrelated engine sweeper scheduling failure passed on the full rerun; its original output is retained in test-first.log. Detailed findings, coverage and baseline failures are in findings.md. Full final gate output is retained in fmt.log, clippy.log and test.log and quoted verbatim on #426. Commands used CARGO_TARGET_DIR=/home/kayg/Developer/calternal-target-client and the required shared build-slot wrapper; CARGO_BUILD_JOBS=2 and RUST_TEST_THREADS=2 limited concurrency. Installed Nix compiler and OpenSSL paths repaired the unattended shell environment. Verbatim gate output follows. The formatting check produced no output. cargo fmt --all --check (exit 0) ```text ``` cargo clippy --workspace --all-targets -- -D warnings (exit 0) ```text Checking calternal-cli v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/cli) Checking calternal-auth v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/auth) Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.80s ``` cargo test --workspace (exit 0) ```text Compiling calternal-cli v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/cli) Compiling calternal-auth v0.1.0 (/home/kayg/Developer/calternal-wt-client/crates/auth) Finished `test` profile [unoptimized + debuginfo] target(s) in 7.30s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal-4c4a167e31c1911b) running 12 tests test args::tests::defaults_and_flags ... ok test args::tests::dev_user_never_on_a_public_address ... ok test args::tests::migrate_v0 ... ok test args::tests::origin_defaults_to_the_local_port ... ok test args::tests::user_create ... ok test args::tests::user_recover ... ok test args::tests::web_folder ... ok test args::tests::fix_commands ... ok test isolation::bob_cannot_join_alices_note_room ... ok test isolation::bob_reaches_nothing_of_alices_through_any_action ... ok test plugins::tests::contract_matches_the_server ... ok test isolation::catch_up_rejects_another_users_cursor_and_rooms_reject_foreign_lineage ... ok test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.46s Running tests/fix_tz_live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/fix_tz_live-5ade24814c9b965b) 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.39s Running tests/notes_crash.rs (/home/kayg/Developer/calternal-target-client/debug/deps/notes_crash-b1605d498e88a047) running 2 tests test kill_nine_mid_tag_rename_renames_each_tag_once ... ok test kill_nine_never_loses_or_doubles ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.02s Running tests/notes_crash_typing.rs (/home/kayg/Developer/calternal-target-client/debug/deps/notes_crash_typing-598aeaeee27cf46f) 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.40s Running tests/notes_live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/notes_live-142a6fd077fb3627) running 2 tests test joining_a_missing_note_fails_politely ... ok test type_over_the_websocket_and_read_it_back ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s Running tests/prefs_live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/prefs_live-eb5dc9cde25731e4) 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-client/debug/deps/search_live-4ff54bb3759a74a7) 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.03s Running tests/startup.rs (/home/kayg/Developer/calternal-target-client/debug/deps/startup-960abf071ed0cfff) running 5 tests test a_new_server_prints_a_setup_token ... ok test answers_within_budget ... ok 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 result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_auth-59595c51092b49a8) running 15 tests test config::tests::origins ... ok test db::tests::a_version_1_database_gets_passkey_names ... ok test device::tests::approval_cannot_be_changed_and_redemption_is_once ... ok test db::tests::opens_twice_and_keeps_schema ... ok test device::tests::pending_polling_has_a_minimum_interval ... 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::recover_needs_a_known_person ... 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 device::tests::device_codes_expire_and_are_capped ... ok test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s Running tests/abuse.rs (/home/kayg/Developer/calternal-target-client/debug/deps/abuse-c55386dea67ddb41) running 9 tests test bad_json_and_unknown_fields_are_refused ... ok test forged_sessions_get_nowhere ... ok test garbage_credentials_never_crash ... ok test non_json_requests_are_refused ... ok test junk_setup_tokens_are_refused_then_rate_limited ... ok test open_prompts_are_capped ... ok test nothing_about_the_server_leaks_before_sign_in ... ok test oversized_bodies_are_refused ... ok test other_sites_cannot_act_for_you ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s Running tests/create.rs (/home/kayg/Developer/calternal-target-client/debug/deps/create-73fd67a82935350d) running 6 tests test an_earlier_first_owner_token_stops_working ... ok test a_created_person_enrolls_their_first_passkey_and_is_the_same_person ... ok test an_expired_enrolment_token_is_refused ... ok test names_must_be_usable_and_unique ... ok test nothing_about_the_person_leaks_before_sign_in ... 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.14s Running tests/device.rs (/home/kayg/Developer/calternal-target-client/debug/deps/device-e7a01936bbe97ea0) running 8 tests test browser_cannot_redeem_a_cli_token ... ok test device_approval_cannot_select_another_user_or_skip_origin_checks ... ok test another_person_cannot_take_over_an_approved_device ... ok test device_approval_guessing_is_rate_limited ... ok test device_installation_stores_only_the_token_hash ... ok test device_polling_reports_pending_and_limits_attempts ... ok test device_routes_refuse_oversized_invalid_and_foreign_requests ... ok test device_sign_in_requires_approval_and_issues_a_revocable_cli_token ... ok test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s Running tests/isolation.rs (/home/kayg/Developer/calternal-target-client/debug/deps/isolation-d86c2499fb5dcebb) 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.03s Running tests/login.rs (/home/kayg/Developer/calternal-target-client/debug/deps/login-1b95de7d8ab1f8df) running 9 tests test a_sign_in_answer_cannot_be_replayed ... ok test bearer_tokens_work_like_cookies ... ok test an_unknown_passkey_is_refused ... ok test revoking_another_device_signs_it_out ... ok test sign_in_with_a_passkey_creates_a_new_installation ... ok test sign_out_ends_the_session_immediately ... ok test signing_in_shows_up_live_on_another_device ... ok test signing_out_shows_up_live_on_another_device ... ok test sessions_expire_when_unused ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.18s Running tests/passkeys.rs (/home/kayg/Developer/calternal-target-client/debug/deps/passkeys-f10a12b3592fd978) running 7 tests test a_removed_passkey_that_is_gone_or_unknown_is_not_found ... ok test add_rename_and_remove_each_leave_a_journal_event ... ok test an_empty_name_is_refused_and_a_long_one_is_cut ... ok test adding_needs_a_sign_in_and_an_add_prompt_works_once ... ok test the_first_passkey_is_listed_with_the_device_it_was_made_on ... ok test the_same_device_cannot_be_added_twice ... ok test the_last_passkey_cannot_be_removed ... 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-client/debug/deps/setup-0aa8cc3ee8991ee8) running 8 tests test a_restart_replaces_the_first_owner_token ... ok test a_finished_prompt_cannot_be_replayed ... ok test a_token_works_exactly_once_under_a_storm ... ok test first_owner_needs_a_name ... ok test first_owner_signs_up_with_the_printed_token ... ok test recovery_adds_a_new_passkey_for_the_same_person ... ok test an_expired_setup_token_is_refused ... ok test session_cookie_is_locked_down ... ok test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_backdrops-2b468d5482feec75) running 19 tests test tests::a_photo_unknown_to_us_is_looked_up ... ok test tests::an_answer_that_is_not_a_picture_is_refused_and_not_kept ... ok test tests::an_upload_is_private_to_the_person_who_made_it ... ok test tests::an_upload_is_kept_once_and_served_back ... 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::picking_is_reported_to_unsplash_once ... ok test tests::nobody_can_read_or_list_someone_elses_uploads ... ok test tests::pictures_from_other_hosts_are_refused ... ok test tests::pictures_are_proxied_cached_and_never_given_the_key ... ok test tests::search_lists_photos_with_our_own_addresses_and_credit ... ok test tests::the_real_client_sends_the_key_and_caps_the_size ... ok test tests::the_real_client_speaks_https_to_unsplash ... ignored, needs the internet test tests::the_same_search_is_answered_once ... ok test tests::too_many_pixels_are_refused_but_big_files_are_not ... ok test tests::unsplash_running_out_of_requests_is_a_plain_slow_down ... ok test tests::uploads_are_checked_by_content_not_by_what_they_claim ... ok test tests::the_cache_drops_the_oldest_files_past_its_cap ... ok test tests::without_a_key_photos_are_off_but_uploads_work ... ok test result: ok. 18 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.05s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_client-d32aab3b1b7e7ebb) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/credentials.rs (/home/kayg/Developer/calternal-target-client/debug/deps/credentials-c062f6ea07facd30) running 1 test test login_keeps_token_private_on_disk_and_out_of_terminal_output ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.01s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_client-1472ad486e701bd8) running 20 tests test live::tests::malformed_journal_order_cannot_regress_the_committed_cursor ... ok test live::tests::silent_live_socket_becomes_offline_after_thirty_seconds ... ok test room::tests::append_uses_utf16_positions_after_restoring ... ok test live::tests::cancelling_a_consumed_entry_reconnects_from_the_committed_cursor ... ok test room::tests::concurrent_local_writers_merge_without_losing_either_append ... ok test room::tests::changed_lineage_is_reported_before_sending_local_state ... ok test room::tests::large_note_fetch_and_tiny_append_only_send_missing_changes ... ok test room::tests::retrying_saved_state_applies_an_append_exactly_once ... ok test room::tests::room_frames_match_lib0_and_reject_truncation ... ok test store::tests::a_clean_fetch_does_not_replace_pending_state ... ok test store::tests::concurrent_snapshot_staging_is_private_to_each_store_connection ... ok test store::tests::concurrent_store_handles_merge_appends_from_the_same_saved_state ... ok test store::tests::duplicate_titles_require_an_id ... ok test room::tests::receiving_state_without_a_durable_ack_is_not_success ... ok test store::tests::journal_effects_and_position_survive_reopen ... ok test store::tests::old_acknowledgement_cannot_clear_a_newer_offline_edit ... ok test store::tests::partial_snapshot_does_not_replace_visible_notes ... ok test store::tests::store_handles_share_the_same_nonblocking_journal_lock ... ok test store::tests::warm_list_100k ... ignored, run explicitly through the shared build slot for performance evidence test store::tests::session_database_and_sidecars_are_private_even_when_reopened ... ok test result: ok. 19 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.10s Running tests/auth_audit.rs (/home/kayg/Developer/calternal-target-client/debug/deps/auth_audit-e492caa646e14f41) running 2 tests test two_users_device_tokens_isolate_http_catch_up_and_rooms ... ok test replay_after_lost_ack_is_once_and_cannot_target_another_note ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.38s Running tests/e2e.rs (/home/kayg/Developer/calternal-target-client/debug/deps/e2e-222590e6c8004229) running 7 tests test lifecycle::cold_empty_account_finishes_initial_sync ... ok test lifecycle::canceled_watch_does_not_consume_the_next_change ... ok test lifecycle::revoked_installation_reports_signed_out ... ok test offline_append_restarts_and_syncs_once ... ok test lifecycle::live_watch_reconnects_after_server_restart ... ok test real_server_login_list_read_append ... ok test queue_conflict::queued_deleted_note_does_not_block_other_sync ... ok test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.77s Running tests/store.rs (/home/kayg/Developer/calternal-target-client/debug/deps/store-9870a74b7549b99f) running 2 tests test secrets_and_invalid_origins_are_rejected ... ok test new_store_is_local_and_bound_to_one_server ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_core-79347fc21ca43d17) 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 journal::tests::junk_tokens_ask_for_a_refresh ... ok test batch::tests::visits_everything_once_in_order ... 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-client/debug/deps/calternal_daily-c8c2fb09f72f94b4) running 21 tests test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok test day::tests::midnight_follows_the_device_in_ist ... ok test day::tests::titles_read_like_the_web_app ... ok test day::tests::names_and_ids ... ok test tests::an_existing_day_file_is_reused_whatever_its_id ... ok test tests::any_text_is_safe_to_read_and_plan ... ok test tests::bad_input_is_refused_kindly ... ok test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok test tests::log_add_then_close_makes_a_range ... ok test tests::close_turns_one_open_entry_into_a_range ... ok test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok test tests::opening_the_same_day_at_once_makes_one_note ... ok test tests::shared_vectors ... ok test tests::today_follows_the_device_offset ... ok test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok test times_tests::a_line_with_only_tags_stays_words ... ok test times_tests::a_log_line_splits_into_times_words_and_tags ... ok test times_tests::any_line_is_safe ... ok test times_tests::only_a_day_note_has_times ... ok test times_tests::trailing_tags_on_any_line ... 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.49s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_engine-427d3e100a1bc3c8) running 13 tests test hash::tests::key_order_does_not_matter_but_content_does ... ok test tests::a_plugin_cannot_write_outside_its_namespace ... ok test tests::a_retry_runs_once_and_replays_the_result ... 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::bad_input_and_unknown_actions_are_friendly ... ok test tests::changes_need_a_key_reads_do_not ... ok test tests::connected_follows_live_views ... ok test tests::identical_calls_at_the_same_moment_run_once ... ok test tests::journal_pages_continue_where_they_stopped ... ok test tests::no_write_is_lost_while_users_are_released_and_reopened ... ok test tests::an_idle_user_is_released_and_comes_back_with_nothing_lost ... ok test tests::users_never_see_each_other ... ok test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.72s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_fixtures-c412cc2a8d84d898) 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.53s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_fixtures-4e93beec492b33cd) 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-client/debug/deps/calternal_fsio-0087f3cf3ed3c80d) running 9 tests test tests::atomic_write_replaces_and_leaves_no_temp_files ... ok test tests::case_only_rename_works_and_other_clashes_are_refused ... ok test tests::failed_write_keeps_the_old_file ... ok test tests::names_fold_case_and_unicode_form ... ok test tests::only_one_process_owns_a_data_folder ... ok test tests::prepared_writes_land_only_when_placed ... ok test tests::unique_names_skip_case_and_form_clashes ... ok test tests::write_unless_changed_keeps_someone_elses_version ... ok test tests::big_writes_arrive_whole ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/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.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_migrate_v0-7a652c1a1b699822) running 36 tests test tests::rules::dry_run_writes_nothing ... 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::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::m1_titles_come_from_title_then_h1_then_file_name_and_stay_unique ... ok test tests::rules::m2_attachments_that_exist_are_copied_and_relinked ... ok test tests::rules::m2_code_is_never_rewritten ... ok test tests::rules::m2_links_are_repaired_by_name_date_title_and_slug ... ok test tests::rules::m2_unresolved_links_stay_as_written_and_are_reported ... ok test tests::rules::m2_wikilinks_always_become_standard_links ... ok test tests::rules::m3_m5_frontmatter_keys_drop_and_times_convert ... ok test tests::rules::m4_unreferenced_block_ids_go_and_referenced_ones_stay ... ok test tests::rules::m5_unreadable_dates_fall_back ... ok test tests::rules::m6_conflict_copies_are_not_migrated ... 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::rules::running_twice_gives_the_same_bytes ... ok test tests::units::every_v0_time_shape_converts ... ok test tests::units::file_names_give_titles ... ok test tests::units::keys_ignore_case_encoding_quotes_and_md ... ok test tests::units::links_parse_in_every_shape ... 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::berlin_converts_inside_the_day ... ok test tzmarker::tests::code_is_never_touched ... ok test tzmarker::tests::day_from_a_date_value ... ok test tzmarker::tests::eu_summer_time_edges ... 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::not_a_marker_is_left_alone ... ok test tzmarker::tests::same_zone_just_goes ... ok test tzmarker::tests::second_run_changes_nothing ... ok test tzmarker::tests::styles_survive_conversion ... ok test tzmarker::tests::unknown_zone_or_a_non_log_line_is_kept_and_counted ... 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.08s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_notes-b2a79fd4e42c6ce5) running 180 tests test anchor::tests::lines_by_utf16_index ... 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 backlinks::tests::snippets_are_the_trimmed_line ... ok test diff::tests::an_inserted_line_starts_at_a_line_start ... ok test diff::tests::edits_never_split_a_character ... ok test bulk::undo::tests::inverse_roundtrips ... 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 diff::tests::edits_turn_old_into_new ... ok test index::tests::a_shared_path_answers_with_the_newest_note ... ok test history::tests::pending_save_promotes_to_base ... 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 index::tests::unloads_and_reloads ... ok test links::tests::finds_standard_and_old_style_links ... 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::retarget_matches_case_and_unicode_forms ... ok test links::tests::skips_code_images_and_the_web ... ok test meta::tests::cursors_round_trip_and_reject_junk ... ok test meta::tests::snippets_skip_frontmatter_and_headings ... 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 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::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 index::tests::answers_like_plain_maps ... 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::rewrite::tests::only_real_tags_change ... ok test tags::scan::tests::code_is_never_tags ... 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_edited_block_is_refused_never_the_wrong_one ... ok test tests::anchors::an_anchor_follows_its_block_when_lines_shift ... ok test tests::anchors::anchors_need_a_hash_and_block_ids_work ... ok test tests::anchors::history_folds_typing_and_names_jobs ... ok test tests::fanout::a_crash_before_the_seed_is_durable_never_doubles_text ... ok test tests::anchors::shifting_lines_never_move_the_wrong_block ... ok 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 test tests::fanout::a_version_always_matches_its_text ... ok test tests::fanout::bursts_converge_and_reach_history ... ok test tests::fresh::a_note_made_with_text_opens_with_its_frontmatter ... 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 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 test tests::listing::the_list_stays_live_with_new_notes_saves_and_outside_edits ... ok test tests::opening::a_cold_fill_ends_with_every_index_and_right_answers ... ok test tests::listing::the_kept_count_follows_adds_and_deletes ... ok test tests::opening::a_note_never_typed_in_is_still_forgotten_on_restart ... ok test tests::opening::a_cold_home_indexes_every_file_once_with_its_own_id ... ok test tests::opening::a_warm_open_announces_only_what_changed_while_closed ... 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::opening::upgrading_without_a_saved_scan_announces_nothing_for_known_notes ... ok test tests::outside::copied_note_gets_a_fresh_id ... ok 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::outside_create_and_delete ... ok test tests::outside::outside_edit_while_typing_merges ... ok test tests::opening::asking_mid_scan_never_says_not_found_and_never_duplicates_a_day ... ok test tests::outside::outside_rename_keeps_the_id ... ok test tests::outside::own_saves_are_not_outside_edits ... 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 test tests::outside::polling_finds_outside_changes ... ok test tests::renames::a_taken_name_gets_a_number_and_daily_notes_keep_theirs ... ok test tests::renames::backlinks_follow_edits_and_deletes ... 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 test tests::renames::typing_a_new_title_renames_the_file_after_a_pause ... ok test tests::renames::typing_in_a_linking_note_during_a_rename_is_kept ... ok test tests::renames::undo_keeps_a_made_note_someone_typed_in ... ok test tests::rooms::fresh_note_opened_by_many_at_once_is_not_doubled ... ok test tests::rooms::late_joiner_gets_full_state ... ok test tests::rooms::patches_use_utf16_positions ... ok test tests::rooms::random_concurrent_editing_converges_without_duplicates ... 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 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::crash_before_write_loses_nothing ... ok test tests::saving::failed_save_keeps_the_change ... ok test tests::renames::a_crash_mid_rename_resumes_and_applies_each_edit_once ... ok test tests::saving::line_endings_and_bom_are_kept ... ok test tests::saving::first_keystroke_creates_the_file ... ok test tests::saving::opening_never_writes ... ok test tests::saving::saving_does_not_loop ... ok test tests::saving::title_and_h1_stay_in_step ... ok test tests::saving::nonstop_typing_still_saves ... ok test tests::storm::outside_rewrites_during_a_storm_all_land ... ok test tests::tags::a_big_tag_rename_never_stalls_typing ... 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::trash::a_crash_mid_delete_finishes_on_restart_exactly_once ... 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::forget_deletes_file_and_history_forever ... ok test tests::trash::half_written_trash_folders_never_hide_a_live_note ... 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::a_connected_client_keeps_it ... ok test tests::unloading::an_open_note_keeps_it ... ok test tests::unloading::an_unused_home_unloads_and_answers_after ... ok test tests::tags::a_crash_mid_rename_resumes_and_renames_each_tag_once ... 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 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 tests::writers::every_writer_at_once_loses_and_doubles_nothing ... ok test result: ok. 179 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 17.11s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_perf-9a61ce517de32ac7) running 4 tests 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::medians_of_runs_and_pooled_singles ... ok test live::tests::frames_round_trip_and_keystrokes_stay_whole ... ok test result: ok. 4 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-client/debug/deps/storage_bench-a154031903efd344) 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-client/debug/deps/calternal_plugin_hello-572ad83648baad68) 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-client/debug/deps/calternal_prefs-5ab3320fa1e4a357) running 9 tests test tests::a_change_on_one_device_reaches_the_other ... ok test tests::a_retry_with_the_same_key_acts_once ... ok test tests::bad_keys_and_big_values_get_friendly_errors ... ok test tests::keys_are_an_area_then_dotted_parts ... ok test tests::people_do_not_share_preferences ... ok test tests::quick_saves_from_two_devices_all_land ... ok test tests::saving_the_same_value_again_is_quiet ... ok test tests::set_then_get_and_survive_a_restart ... 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.32s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_search-02ca20459ac6361c) running 13 tests test fuzzy::tests::distance_counts_swaps_as_one ... ok test fuzzy::tests::common_typos_are_fixed ... ok test query::tests::dates_cover_whole_periods ... ok test query::tests::lone_symbols_are_ignored ... ok test query::tests::words_filters_and_phrases ... ok test read::tests::block_ids_are_found ... ok test read::tests::excerpts_mark_matches_in_context ... ok test read::tests::text_matches_like_the_index ... ok test read::tests::renumbering_shifts_placeholders ... ok test text::tests::bigrams_cover_unspaced_scripts ... ok test text::tests::fold_drops_accents_and_case ... 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.01s Running tests/search.rs (/home/kayg/Developer/calternal-target-client/debug/deps/search-bd43f95dbd599fcc) running 12 tests test an_empty_search_shows_recent_things ... ok test a_restart_heals_whatever_was_missed ... ok test behind_answers_at_once_and_catching_up_is_announced_once ... ok test every_script_is_searchable ... ok test filters_by_tag_kind_and_date ... ok test odd_input_never_breaks_search ... ok test prefixes_and_typos_are_forgiven ... ok test people_only_ever_find_their_own_things ... ok test results_show_why_they_matched_and_where ... ok test searches_answer_while_indexing_runs ... ok test titles_first_then_recent_use_then_body ... ok test the_index_follows_changes_live ... ok test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.73s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_server-d00ce303d116818e) 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-client/debug/deps/access-9ca6edbd34e5461c) 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.01s Running tests/live.rs (/home/kayg/Developer/calternal-target-client/debug/deps/live-758869be296fc35f) running 6 tests test a_stranger_token_asks_for_a_refresh ... ok test health_answers_without_signing_in ... ok test errors_carry_codes_not_internals ... ok test http_to_journal_to_websocket ... ok test signed_out_calls_get_a_friendly_refusal ... ok test reconnecting_catches_up_from_a_token ... ok test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s Running tests/signout.rs (/home/kayg/Developer/calternal-target-client/debug/deps/signout-d299239e3ed5a005) running 3 tests test revoked_between_handshake_and_subscription_never_becomes_ready ... ok test revocation_in_catch_up_closes_socket_before_ready ... ok test signing_a_device_out_closes_its_live_socket ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s Running tests/web.rs (/home/kayg/Developer/calternal-target-client/debug/deps/web-171217ee4f1da82b) running 3 tests test caching_and_security_headers_follow_what_each_file_is ... ok 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 result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/debug/deps/calternal_store-d10bc366d7efc761) 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::live_entries_arrive_in_journal_order ... ok test tests::old_idempotency_records_are_swept_after_commits ... ok test tests::old_idempotency_records_are_swept_when_the_store_opens ... ok test tests::tokens_survive_a_restart_and_reject_strangers ... ok test tests::reads_are_capped ... ok test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.44s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-client/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_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_client 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 ```
Author
Owner

kayg (2026-10-16), binding for every client: file over app on EVERY device.

Calternal is a personal cloud (files, photos, mail, notes, budget, calendar in one), not only a notes app. On every device (Mac, iPhone/iPad, CLI/Linux, and the Watch where feasible), the user's data lives as plain files on that device's file system and syncs both ways with the server. A database is only an index or cache that can be rebuilt from the files.

Slice 1 (#481/#482) keeps notes and live-edit state only in SQLite. The client store must be redesigned so files are the truth on the device and SQLite is just the index. That covers local file layout, two-way sync, edits made by other apps, conflicts and live editing over files. A new ADR replaces that part of 0040.

**kayg (2026-10-16), binding for every client: file over app on EVERY device.** Calternal is a personal cloud (files, photos, mail, notes, budget, calendar in one), not only a notes app. On every device (Mac, iPhone/iPad, CLI/Linux, and the Watch where feasible), the user's data lives as plain files on that device's file system and syncs both ways with the server. A database is only an index or cache that can be rebuilt from the files. Slice 1 (#481/#482) keeps notes and live-edit state only in SQLite. The client store must be redesigned so files are the truth on the device and SQLite is just the index. That covers local file layout, two-way sync, edits made by other apps, conflicts and live editing over files. A new ADR replaces that part of 0040.
Author
Owner

Started the files-first client redesign on branch issue/426-files, based on f6cd9d82af (issue/426-client-review). I am inspecting the server Home, markdown round trips, watcher and client sync before implementation. The approved non-interactive plan governs this run.

Started the files-first client redesign on branch issue/426-files, based on f6cd9d82af7a0b0f3c7b62a9a53ae658c8b60fe8 (issue/426-client-review). I am inspecting the server Home, markdown round trips, watcher and client sync before implementation. The approved non-interactive plan governs this run.
Author
Owner

kayg's answers to the client grill C1–C18 (2026-10-16). All recommendations are accepted. In brief:

  • C1: File Provider on Mac and iOS; a plain folder on Linux and the CLI.
  • C2: full sync for small data. Media and large files arrive on demand, or when pinned per device.
  • C3: design for multiple accounts (<folder>/<account>/).
  • C4: one sync route (journal + per-file content + resumable chunks + dedupe), chosen for performance, reliability and the smallest footprint.
  • C5: a watcher plus a launch scan; automatic.
  • C6: conflicts are handled automatically wherever it makes sense:
    • text: three-way merge;
    • structured data: per-record merge by its plugin;
    • binaries: keep both.
  • C7: live state exists only while a file is open. Test it on the web with multiple users first: that's the next slice, with app passwords, after voice.
  • C8, C9: one Trash and version history, both on the server only.
  • C10: portable names, enforced by the server.
  • C11: a cheap device index; expensive work stays on the server.
  • C12, C13, C14: shared Rust format plugins, Maildir on devices, and a Watch that keeps only recordings and a small cache.
  • C15: extremely reliable sync: silent push plus background refresh.
  • C16, C17: OS encryption; tokens in the Keychain or a 0600 file.
  • C18: ADRs first, then kayg reads them, then the client work restarts. #481/#482 stay unmerged until they're reworked onto the file model.
**kayg's answers to the client grill C1–C18 (2026-10-16).** All recommendations are accepted. In brief: - **C1:** File Provider on Mac and iOS; a plain folder on Linux and the CLI. - **C2:** full sync for small data. Media and large files arrive on demand, or when pinned per device. - **C3:** design for multiple accounts (`<folder>/<account>/`). - **C4:** one sync route (journal + per-file content + resumable chunks + dedupe), chosen for performance, reliability and the smallest footprint. - **C5:** a watcher plus a launch scan; automatic. - **C6:** conflicts are handled automatically wherever it makes sense: - text: three-way merge; - structured data: per-record merge by its plugin; - binaries: keep both. - **C7:** live state exists only while a file is open. Test it on the web with multiple users first: that's the next slice, with app passwords, after voice. - **C8, C9:** one Trash and version history, both on the server only. - **C10:** portable names, enforced by the server. - **C11:** a cheap device index; expensive work stays on the server. - **C12, C13, C14:** shared Rust format plugins, Maildir on devices, and a Watch that keeps only recordings and a small cache. - **C15:** extremely reliable sync: silent push plus background refresh. - **C16, C17:** OS encryption; tokens in the Keychain or a 0600 file. - **C18:** ADRs first, then kayg reads them, then the client work restarts. #481/#482 stay unmerged until they're reworked onto the file model.
Author
Owner

Starting the client architecture ADR work on branch issue/426-adrs, based on origin/dev at c82161d7c6fefcd476d73a92f1fbc2461ef2fef1.

Starting the client architecture ADR work on branch `issue/426-adrs`, based on `origin/dev` at `c82161d7c6fefcd476d73a92f1fbc2461ef2fef1`.
Author
Owner

Finding: origin/dev ends at ADR 0039, while the two unmerged client branches already use ADR numbers 0040 to 0042. I will keep 0040 for the revised Rust client ADR and start the six new storage and sync ADRs at 0043 so those branch numbers do not collide. The Mac toolkit ADR on the review branch remains proposed pending the Catalyst versus AppKit spike. Evidence: docs/adr on origin/dev ends at 0039; origin/issue/426-client-review contains 0040, 0041 and 0042, and its 0041 status says proposed.

Finding: origin/dev ends at ADR 0039, while the two unmerged client branches already use ADR numbers 0040 to 0042. I will keep 0040 for the revised Rust client ADR and start the six new storage and sync ADRs at 0043 so those branch numbers do not collide. The Mac toolkit ADR on the review branch remains proposed pending the Catalyst versus AppKit spike. Evidence: docs/adr on origin/dev ends at 0039; origin/issue/426-client-review contains 0040, 0041 and 0042, and its 0041 status says proposed.
Author
Owner

Finding: the slice-1 client stores note rows and Yrs room state in SQLite, while the binding for this issue says files are the durable truth on each device. The revised client ADR will make SQLite a rebuildable index and keep live edit state only while a file is open. Evidence: crates/client/src/store.rs defines notes and rooms tables and crates/client/src/room.rs persists Yrs state; issue #426 comment 54737 records C1 to C18. Issue #478 comment 54531 also says the web app, Apple client, CLI, public API and MCP Events use one replayable journal route.

Finding: the slice-1 client stores note rows and Yrs room state in SQLite, while the binding for this issue says files are the durable truth on each device. The revised client ADR will make SQLite a rebuildable index and keep live edit state only while a file is open. Evidence: crates/client/src/store.rs defines notes and rooms tables and crates/client/src/room.rs persists Yrs state; issue #426 comment 54737 records C1 to C18. Issue #478 comment 54531 also says the web app, Apple client, CLI, public API and MCP Events use one replayable journal route.
Author
Owner

Finished the ADR work on branch issue/426-adrs. Head: c86d7759816eb3e7f0455d7ef5f9c90ded339c1f. PR: #483. The PR is open and targets dev.

ADR 0040 keeps one Rust client for native apps, CLI and MCP, while the public API stays a thin server adapter. Its device database is only a rebuildable index, and the macOS toolkit remains undecided under proposed ADR 0041.

ADR 0043 makes files the durable truth on the server and every device. It keeps live state only while a file is open, imports outside edits automatically, and keeps Trash and version history on the server.

ADR 0044 gives every client one replayable per-user journal and file transfer contract, with resumable uploads and content dedupe. MCP Events uses signed webhook subscriptions on the same cursor, and older MCP clients keep working.

ADR 0045 defines safe conflict handling by data kind: text uses a three-way merge, structured files merge by record through their plugin, and binary conflicts keep both copies under the device-name rule.

ADR 0046 sets the device layout and sync scope: Apple File Provider, a plain Linux folder, full sync for small data, on-demand or pinned large content, Maildir, a small Watch cache, a rebuildable index, OS encryption and protected tokens.

ADR 0047 combines silent APNs, background refresh and journal catch-up with atomic local writes and an idempotent outbox that clears only after durable server acknowledgement.

ADR 0048 shares Rust format plugins between server and clients for parsing, indexing and structured merges; OCR, transcription and other heavy work stay on the server.

Final gate output:

  • git diff HEAD^ HEAD --check: exit 0, no output.
  • ADR structure check output:
ADR numbering and section order: PASS (7 files)
README links: PASS (46 links)

Code tests were not run because this change only updates documentation.

Finished the ADR work on branch `issue/426-adrs`. Head: `c86d7759816eb3e7f0455d7ef5f9c90ded339c1f`. PR: https://git.kayg.org/kayg/calternal/pulls/483. The PR is open and targets `dev`. ADR 0040 keeps one Rust client for native apps, CLI and MCP, while the public API stays a thin server adapter. Its device database is only a rebuildable index, and the macOS toolkit remains undecided under proposed ADR 0041. ADR 0043 makes files the durable truth on the server and every device. It keeps live state only while a file is open, imports outside edits automatically, and keeps Trash and version history on the server. ADR 0044 gives every client one replayable per-user journal and file transfer contract, with resumable uploads and content dedupe. MCP Events uses signed webhook subscriptions on the same cursor, and older MCP clients keep working. ADR 0045 defines safe conflict handling by data kind: text uses a three-way merge, structured files merge by record through their plugin, and binary conflicts keep both copies under the device-name rule. ADR 0046 sets the device layout and sync scope: Apple File Provider, a plain Linux folder, full sync for small data, on-demand or pinned large content, Maildir, a small Watch cache, a rebuildable index, OS encryption and protected tokens. ADR 0047 combines silent APNs, background refresh and journal catch-up with atomic local writes and an idempotent outbox that clears only after durable server acknowledgement. ADR 0048 shares Rust format plugins between server and clients for parsing, indexing and structured merges; OCR, transcription and other heavy work stay on the server. Final gate output: - `git diff HEAD^ HEAD --check`: exit 0, no output. - ADR structure check output: ```text ADR numbering and section order: PASS (7 files) README links: PASS (46 links) ``` Code tests were not run because this change only updates documentation.
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#426
No description provided.