Files
client/docs/evidence/bookmark-schema-windows.md
T
omar 02f4001820 fix: validate and verify native bookmark schema fields
- Validate bookmark editor text before submission and reject noncanonical legacy password encodings.
- Verify disposable Windows saves, stale targets, actual DPAPI and loopback startup behavior.
2026-11-28 10:27:19 +03:00

4.8 KiB

Windows bookmark schema verification

The scope is the ten schema-field:bookmark.* entries below in native/compatibility.json. bookmark.name, folder-object fields and bookmarkOrder are not new acceptance claims. The Windows runs used generated identities, disposable profiles and synthetic password input. No owner profile or secret values were used in the receipts.

Field ID suffix Evidence and scope
id The owning Slint create form generated a valid ID; editing and moving reused it and the same sidebar row after two reopens. It is deliberately not a writable field. Schema writes rejected malformed, oversize, wrong-type and duplicate IDs.
address Slint rejected a control character and overlength input, trimmed a valid edit, and retained the previous object and disk bytes after a blocked save. The live runtime used the saved loopback address. Changing it invalidated both DPAPI slots; a refused change preserved both files.
identity_id The actual vault picker selected a nondefault identity, displayed it after two reopens, and could clear the override. The live connection reported the saved vault UID for each tab. Invalid encodings and types were refused. This is not a comparison of the vault UID to the live server UID.
folder The Move dialog placed the bookmark in the selected existing folder; both reopens displayed it there, not at root. Missing/wrong-type folder IDs were rejected. Existing folder tests separately cover cycles and maximum depth.
nickname Slint rejected too short, over 30 Unicode scalars and control characters. It trimmed the override, reopened it and allowed clearing. A stale editor could not overwrite a newer saved name. The initiator's live own-client row reported the saved override.
channel Slint bounded and trimmed the text and allowed clearing. The channel-tree action inserted the nested path and rejected a second submission after replacement of the captured session. On both live starts the own roster reported the configured room.
auto_connect The Slint toggles were saved and reopened. On both live starts, the nested bookmark connected before the root bookmark despite reversed storage order; the disabled bookmark did not get a tab.
auto_connect_muted On both live starts, the first core's audio state and its own server-fed roster had input muted, output unmuted. On both manual reconnects the same bookmark did not apply startup mute. The code awaits SetAudio before dispatching Connect, and core connection options use those flags. No trace of wire packet order or independent peer observation is claimed.
server_password_encrypted Canonical legacy input was stripped and prompted first; malformed/noncanonical input did not activate import and generic writes refused a canonical value too. Re-entering and saving used real Windows DPAPI; the native consumer recovered the bound secret on two reopens without another prompt, then the isolation policy stopped before network I/O.
channel_password_encrypted The same checks applied separately to the second prompt and channel-bound DPAPI slot. Neither legacy ciphertext key nor plaintext appeared in the live JSON preference or secret index. No authenticated server/channel join using either re-entered password was exercised.

Receipts

  • target/bookmark-schema-verification.log, offline section: 10 passed, including bookmark_schema_editor_keeps_identity_and_folder_after_two_reopens, bookmark_schema_bad_patches_leave_profile_unchanged, bookmark_schema_captured_channel_rejects_a_replacement_session, bookmark_schema_reenters_both_legacy_slots_through_real_dpapi, malformed legacy import, native profile reopens and three actual DPAPI tests. The live case was ignored in this invocation and run separately below.
  • target/bookmark-schema-live.log: exact smoke::bookmark_schema::bookmark_schema_startup_consumes_saved_fields_on_beta14, 1 passed in 57.53 s. Both runtime restarts and both manual activations completed. The disposable runner disabled Query for the guest phase. Teardown found zero listeners on UDP 19987 and TCP 30053/19080 and zero private fixture runtime directories.

The editor tests use the real Slint dialog callbacks, not Windows native input automation. The live test drives the real application runtime by attaching a generation directly after the Slint saves; a headless Slint window does not exercise HWND integration. The roster checks are from the initiator's own server-fed row; a usable independent peer readback was not obtained. The captured-channel replacement uses synthetic roster events. No physical audio endpoints opened. Scope does not include simultaneous preference and new-password writes as a single transaction, Linux/macOS secret stores, or mobile UI.