docs: record the M0 sign-off of spikes S2, S3, S4 and S10 #8

Merged
poli0981 merged 1 commits from docs/m0-signoff into main 2026-12-06 01:09:30 +00:00
11 changed files with 159 additions and 119 deletions

No files matched your search

+22 -23
View File
@@ -11,38 +11,36 @@ progress, and the public beta is the exit criterion of M5 (doc 17 §3).
### Added
- Spike S4 **passed** (2026-12-06): the extension reaches the app through the native host
in Chrome, Edge, Firefox and Brave, with per-user registration and replies in a few
milliseconds on an open port. Brave becomes a P0 browser (it reads Chrome's key);
Vivaldi stays best-effort until it is tested. The host never starts the app as its
own child, because Firefox would kill it, and the pipe code moves to `mv-platform`
without `interprocess` (D-48, flagged for review;
`docs/spike-reports/S4_NATIVE_MESSAGING.md`).
- Spike S2 is **partial** (2026-12-06): the tray icon and global hotkey run on GPUI's own
milliseconds on an open port. Brave and Vivaldi become P0 browsers (both read Chrome's
key; Vivaldi checked by hand). The host never starts the app as its own child, because
Firefox would kill it, and the pipe code moves to `mv-platform` without
`interprocess` (D-48; `docs/spike-reports/S4_NATIVE_MESSAGING.md`).
- Spike S2 **passed** (2026-12-06): the tray icon and global hotkey run on GPUI's own
loop with no missed or duplicated event in 12,267, a second launch always reaches the
first instance, and autostart works. Closing to the tray now removes the window and
switches GPUI to headless, which takes idle CPU to zero; the pipe name gains the
session id, and pipe clients check the server's identity (D-46, D-47, flagged for
review). The hour-long run and the visual checks by hand are open
(`docs/spike-reports/S2_TRAY_HOTKEY.md`).
session id, and pipe clients check the server's identity (D-46, D-47). The hour-long
run and the visual checks passed by hand (`docs/spike-reports/S2_TRAY_HOTKEY.md`).
- Spike S5 is **partial** (2026-12-06): every independent known-answer test for the
crypto core passes, and the save pipeline survived 10,000 random and 220 fixed-point
kills without a corrupt or missing vault. The backup step changes to a hard link,
because a plain copy left an unopenable backup after most kills in that step, and the
rule for leftover temp files is written down (D-34 to D-37, proposed). `argon2` runs
rule for leftover temp files is written down (D-34 to D-37). `argon2` runs
lanes on one thread unless its `parallel` feature is on. A re-run on a quiet machine
confirmed the timings and passed 6,000 more kills. The crypto and format choices the
docs left open are under "Decided" below; the low-end machine and a VM power-cut test
are still to do (`docs/spike-reports/S5_CRYPTO_FORMAT.md`).
- **Security** Spike S3 is **partial** (2026-12-06): `SecureInput`, a custom GPUI
- **Security** Spike S3 **passed** (2026-12-06): `SecureInput`, a custom GPUI
element, keeps a typed master password in one zeroising buffer. Six memory scans found
no copy outside it, whole or in part, while the framework's masked input left 3 to 14
whole copies, some still there 30 s after clearing. The element reports that it
accepts no text input, so GPUI switches the IME and Windows text services off for it
(D-38, flagged for review). The IME, suggestion, paste, Caps Lock, mouse and Narrator
checks by hand are open (`docs/spike-reports/S3_SECURE_INPUT.md`).
- Spike S10 is **partial** (2026-12-05): the security scan and the coverage gate pass;
Qodana's Rust linter runs on the runner but reports 47 false type errors. Five runs
showed that the earlier diagnosis (no standard library attached) was wrong: the linter
misses only the items `core` and `alloc` generate with macros. Qodana stays
(D-38). The IME, suggestion, paste, Caps Lock, mouse and Narrator checks passed by
hand (`docs/spike-reports/S3_SECURE_INPUT.md`).
- Spike S10 **passed** (accepted 2026-12-06): the security scan and the coverage gate
pass; Qodana's Rust linter completes on the runner but reports 47 false type errors.
Five runs showed that the earlier diagnosis (no standard library attached) was wrong:
the linter misses only the items `core` and `alloc` generate with macros. Qodana stays
report-only; the next tests are the GA image and a volume-backed cache
(`docs/spike-reports/S10_QUALITY_PIPELINE.md`).
- Spike S1 **passed** (2026-12-02, D-31): `gpui-kit` 0.10.0 is the application shell.
@@ -104,12 +102,13 @@ progress, and the public beta is the exit criterion of M5 (doc 17 §3).
nightly-only (doc 13 §1).
### Decided
- The open choices from spikes S3 and S5, chosen on Kokone's delegation (2026-12-06) and
flagged for review: the vault-format encodings (D-39), key derivation in operation,
with `argon2`'s `parallel` feature off and calibration unchanged (D-40), a statically
linked C runtime (D-41), short TOTP secrets accepted (D-42), save-pipeline details
(D-43), paste and input-method hints for `SecureInput` (D-44), and `cargo xtask
ui-smoke` for `gpui-kit` upgrades (D-45). Qodana stays report-only.
- Kokone approved the spike decisions D-31 to D-48 (2026-12-06). Among them are the
open choices from spikes S3 and S5, chosen on Kokone's delegation: the vault-format
encodings (D-39), key derivation in operation, with `argon2`'s `parallel` feature off
and calibration unchanged (D-40), a statically linked C runtime (D-41), short TOTP
secrets accepted (D-42), save-pipeline details (D-43), paste and input-method hints
for `SecureInput` (D-44), and `cargo xtask ui-smoke` for `gpui-kit` upgrades (D-45).
Qodana stays report-only.
- Betas are 0.x releases, starting at 0.1.0; 1.0.0 is the first stable release. Release
notes are kept per beta series and per stable release (D-32).
- Name MuteVault; Windows 11 first; passkeys through the browser extension in v1; own
+1 -1
View File
@@ -131,7 +131,7 @@ Where secrets can be observed in transit, who can observe them, and what is done
| Logs | No secrets | — | Secret types cannot be formatted; item ids only | Timing and usage patterns |
| Clipboard | One secret at a time | Any process in the session; clipboard history and cloud sync if enabled | History/cloud exclusion formats; timed clear; clear on lock | A process polling the clipboard during the window |
| Keyboard — master password entry | Master password | Keyloggers running as the user or higher | Secure-desktop entry is a P2 idea | A7 |
| Text-input services (IME, Windows text suggestions and prediction) | Whatever is typed into a field that Windows does not know is a password | The suggestion popup on screen; the IME's and Windows' learned typing data | `SecureInput` reports that it accepts no text input, so GPUI detaches the window's IME context while it has focus: text services are off for the field, as Microsoft prescribes for password fields (S3, D-38; `docs/spike-reports/S3_SECURE_INPUT.md`). The `gpui-kit` masked input keeps them on: S1 saw the suggestion popup show a typed password (S1 finding 7). No field holding vault data gets a spell checker, whose "Learn Spelling" writes words to disk (doc 12 §4) | Until S3-M1 and S3-M3 pass by hand, the switch is measured but its effect on a real IME and the popup is not. Keystroke-hook input methods (EVKey, UniKey) see every key whatever the field does; MuteVault does not detect them, and the master-password screens only hint at switching them to English mode (D-44). Each keystroke leaves one-character framework strings, freed unwiped. After a paste, the clipboard holds its own copy until the form is submitted; MuteVault then clears it if it is unchanged since the paste (D-44) |
| Text-input services (IME, Windows text suggestions and prediction) | Whatever is typed into a field that Windows does not know is a password | The suggestion popup on screen; the IME's and Windows' learned typing data | `SecureInput` reports that it accepts no text input, so GPUI detaches the window's IME context while it has focus: text services are off for the field, as Microsoft prescribes for password fields (S3, D-38; `docs/spike-reports/S3_SECURE_INPUT.md`). The `gpui-kit` masked input keeps them on: S1 saw the suggestion popup show a typed password (S1 finding 7). No field holding vault data gets a spell checker, whose "Learn Spelling" writes words to disk (doc 12 §4) | The switch is measured, and S3-M1 and S3-M3 confirmed by hand (2026-12-06) that a real IME and the suggestion popup stay out of the field. Keystroke-hook input methods (EVKey, UniKey) see every key whatever the field does; MuteVault does not detect them, and the master-password screens only hint at switching them to English mode (D-44). Each keystroke leaves one-character framework strings, freed unwiped. After a paste, the clipboard holds its own copy until the form is submitted; MuteVault then clears it if it is unchanged since the paste (D-44) |
| Keyboard — auto-type (P1) | Username, password | Keyloggers; the wrong window if focus changes | Window re-check before each chunk; off by default | A7; user error |
| Screen | Revealed secrets, TOTP codes | Screen capture, remote assistance, onlookers | Masking, timed reveal, capture exclusion | Cameras; capture below the window-manager level |
| Process memory | Keys, opened secrets | Same-user processes with access rights; administrator | Access restrictions, sealed fields, zeroise, short lifetimes | A7, A8 |
+3 -3
View File
@@ -11,8 +11,8 @@ native-messaging channel. It holds no vault data and performs no cryptography.
| Browser | v1 | Notes |
|---|---|---|
| Chrome, Edge, Brave | P0 | Manifest V3 service worker. Brave uses Chrome's registry key (S4) |
| Vivaldi, other Chromium | P0 best-effort | Same build; Vivaldi is expected to read Chrome's key too, until S4-M1 shows it |
| Chrome, Edge, Brave, Vivaldi | P0 | Manifest V3 service worker. Brave and Vivaldi use Chrome's registry key (S4, S4-M1) |
| Other Chromium | P0 best-effort | Same build |
| Firefox | P0 | Manifest V3 with an event page; add-on id `mutevault@poli0981.dev` |
Flatpak-packaged browsers on Linux cannot reach native-messaging hosts outside their
@@ -118,7 +118,7 @@ update and from Settings → Browser integration:
| Browser | Registry key under `HKCU\Software\` |
|---|---|
| Chrome, Brave (S4), Vivaldi (expected, S4-M1) | `Google\Chrome\NativeMessagingHosts\dev.poli0981.mutevault` |
| Chrome, Brave (S4), Vivaldi (S4-M1) | `Google\Chrome\NativeMessagingHosts\dev.poli0981.mutevault` |
| Edge | `Microsoft\Edge\NativeMessagingHosts\dev.poli0981.mutevault` |
| Firefox | `Mozilla\NativeMessagingHosts\dev.poli0981.mutevault` |
+2 -2
View File
@@ -103,8 +103,8 @@ Safety rules
loop already dispatches their windows; their event handlers are set before any of them
exists and only forward into one channel that a foreground task drains, with no
polling (S2, D-46). The tray menu runs a modal loop inside which GPUI keeps running, so
it is never opened from inside a GPUI update. Fallback, if S2-M1 fails: no tray; the
app stays in the taskbar.
it is never opened from inside a GPUI update. S2 passed (2026-12-06), so the fallback
(no tray; the app stays in the taskbar) is not needed.
## 6. Locking on system events
+5 -5
View File
@@ -119,14 +119,14 @@ tracker (D-28). "Documentation" opens the repository on the forge.
- it never shows how many characters it holds;
- security behaviour never depends on focus callbacks, which do not fire in an
inactive window (S3 finding 7).
S3's automated checks pass; the IME and suggestion checks by hand (S3-M1, S3-M3) are
open.
S3 passed on 2026-12-06, the IME and suggestion checks by hand (S3-M1, S3-M3)
included.
- No field that holds vault data, secure notes included, ever gets a `SpellChecker`:
its "Learn Spelling" would write the word to the user's dictionary on disk (S1b,
finding 10).
- Fallback if S3-M1 or S3-M3 fails: `SecureInput` stays for its memory behaviour, and the
text-services exposure moves to doc 07 §5 and §6 (RR-2). The masked input is never used
for entry.
- The masked input is never used for entry. (Had S3-M1 or S3-M3 failed, `SecureInput`
would have stayed for its memory behaviour and the text-services exposure would have
moved to doc 07 §6, RR-2.)
- **Reveal** shows the value for 30 seconds or until focus leaves, whichever is first.
- **Caps Lock** indicator on every password field.
- The master password field has no "show" toggle on the lock screen by default
+51 -29
View File
@@ -40,11 +40,11 @@ measurements, findings and the manual checklist. This table is the index.
|---|---|---|---|
| S1 | 2026-12-02 | **Pass** (D-31) | [`S1_GPUI_SHELL.md`](spike-reports/S1_GPUI_SHELL.md) |
| S1b | 2026-12-05, checklist 2026-12-06 | **Pass** (D-33): S1's criteria hold on `gpui-kit` 0.12.0, the manual checklist gives the same results as on 0.10.0, and the `xxhash-rust` licence exception is approved | [`S1b_GPUI_KIT_012.md`](spike-reports/S1b_GPUI_KIT_012.md) |
| S2 | 2026-12-05/06 | **Partial**: every automated clause passes, 12,267 events with none missed or duplicated, single instance and autostart work; "an hour of use" and the visual checks by hand (S2-M1…M12) are open (D-46, D-47) | [`S2_TRAY_HOTKEY.md`](spike-reports/S2_TRAY_HOTKEY.md) |
| S3 | 2026-12-05/06 | **Partial**: every automated check passes, and no memory scan finds the password outside the zeroising buffer; the IME, text-suggestion, paste, Caps Lock, mouse and Narrator checks by hand (S3-M1…M9) are open (D-38) | [`S3_SECURE_INPUT.md`](spike-reports/S3_SECURE_INPUT.md) |
| S4 | 2026-12-05/06 | **Pass** on Chrome, Edge, Firefox and Brave: echo p99 at most 3.5 ms (Firefox 34 ms in its first round), per-user registration, the background stays alive while the port is open, the host exits on its own. Vivaldi is untested (S4-M1). The driver's quiet re-run (2026-12-06) gives the same results; the browsers' is S4-M5 (D-48) | [`S4_NATIVE_MESSAGING.md`](spike-reports/S4_NATIVE_MESSAGING.md) |
| S2 | 2026-12-05/06, checklist 2026-12-06 | **Pass**: every automated clause passes, 12,267 events with none missed or duplicated, single instance and autostart work; Kokone signed off "an hour of use" and the visual checks (S2-M1…M12) on 2026-12-06 (D-46, D-47) | [`S2_TRAY_HOTKEY.md`](spike-reports/S2_TRAY_HOTKEY.md) |
| S3 | 2026-12-05/06, checklist 2026-12-06 | **Pass**: every automated check passes, and no memory scan finds the password outside the zeroising buffer; Kokone signed off the IME, text-suggestion, paste, Caps Lock, mouse and Narrator checks (S3-M1…M9) on 2026-12-06 (D-38) | [`S3_SECURE_INPUT.md`](spike-reports/S3_SECURE_INPUT.md) |
| S4 | 2026-12-05/06, checklist 2026-12-06 | **Pass** on Chrome, Edge, Firefox and Brave: echo p99 at most 3.5 ms (Firefox 34 ms in its first round), per-user registration, the background stays alive while the port is open, the host exits on its own. Vivaldi 8.3 finds the host through Chrome's key (S4-M1). The driver's quiet re-run (2026-12-06) gives the same results; Kokone signed off the checklist on 2026-12-06 (D-48) | [`S4_NATIVE_MESSAGING.md`](spike-reports/S4_NATIVE_MESSAGING.md) |
| S5 | 2026-12-05/06 | **Partial**: every independent known-answer test passes (the field-box vector waits on the `AAD_field` encoding); lane threading determined; 10,000 random and 220 fixed-point kills during save, 0 corrupt, 0 missing; save step 5 and the leftover rule change (D-34, D-35). The quiet re-run (2026-12-06) confirms it: Standard 88 ms by default, 6,000 more kills with 0 corrupt and 0 missing, large save p50 58 ms. The low-end Argon2id run (S5-M1, S5-M2), the VM power-cut test (S5b-M3) and Miri are open; q13's choices are made (D-39…D-43) and await review | [`S5_CRYPTO_FORMAT.md`](spike-reports/S5_CRYPTO_FORMAT.md) |
| S10 | 2026-12-02, 2026-12-05 | **Partial**: security and coverage pass; Qodana runs, but 47 of its 48 Rust results are false (open) | [`S10_QUALITY_PIPELINE.md`](spike-reports/S10_QUALITY_PIPELINE.md) |
| S10 | 2026-12-02, 2026-12-05 | **Pass**, accepted by Kokone on 2026-12-06: security and coverage pass, and Qodana completes; 47 of its 48 Rust results are false, so it stays report-only and the cause is a follow-up (S10-M1…M4) | [`S10_QUALITY_PIPELINE.md`](spike-reports/S10_QUALITY_PIPELINE.md) |
## 3. Milestones
@@ -82,18 +82,31 @@ Open:
S10-M2); reset the Qodana Cloud baseline only after they are gone (S10);
- S1 **passed** on 2026-12-02 (§2.1, D-31); S2–S5 are next, in the order of D-29.
**M0 progress (2026-12-06).**
Done:
- The spike results are merged (#7). S1, S1b, S2, S3, S4 and S10 pass (§2.1); Kokone
signed off their manual checklists and approved D-31 to D-48.
Open:
- S5, the last mandatory spike: the low-end Argon2id run (S5-M1, S5-M2), which its pass
criterion names, plus the VM power-cut test (S5b-M3) and Miri. §1 holds feature work
until S5 passes; whether part of M1 may start earlier is question 18 (§6);
- the rest of H-13;
- Qodana's false Rust results (S10-M1…M4), report-only meanwhile.
## 4. Feature gates that depend on spikes
| Feature | Depends on |
|---|---|
| Tray, close-to-tray, global hotkey | S2 (open until S2-M1 passes; D-46) |
| Password entry without framework strings | S3 |
| Brave/Vivaldi listed as supported | S4: Brave met; Vivaldi waits for S4-M1 |
| Tray, close-to-tray, global hotkey | S2: met 2026-12-06 (D-46) |
| Password entry without framework strings | S3: met 2026-12-06 (D-38) |
| Brave/Vivaldi listed as supported | S4: met; Vivaldi by S4-M1 (2026-12-06) |
| Default KDF preset values | S5 |
| PRF extension, conditional-mediation hand-over | S6 |
| Windows Hello unlock | S7 |
| In-app update from the release host | S9 |
| Qodana as part of the pipeline at all | S10 |
| Qodana as part of the pipeline at all | S10: met 2026-12-06, report-only until its false results are gone |
| Microsoft Store (MSIX) build with browser integration | S13 |
| Start with Windows in the Store build (start-up task, no arguments) | S13 |
| Native Windows passkey provider | S13, then S12 |
@@ -101,21 +114,21 @@ Open:
## 5. Decision log
Kokone's decisions: D-01 to D-04 (2026-11-22), D-25 (2026-11-22, revised 2026-11-23),
D-26 to D-28 (2026-11-23, taken from the ops runbook and Kokone's instructions). D-05
to D-24 were resolved while writing this suite and are **flagged for review** —
overturn any of them and the affected documents are listed. D-29 was taken in the
repository-bootstrap session (2026-12-02) and is flagged for review in the same way.
D-30 is Kokone's (2026-12-02). D-31 records the S1 result: Kokone ran its manual
checklist (2026-12-02), and it is flagged for review in the same way as D-29. D-32 is
Kokone's (2026-12-05). D-33 follows Kokone's request of 2026-12-05 to check the
`gpui-kit` version and change it if needed; Kokone approved it, the licence exception
and S1b's manual checklist on 2026-12-06.
D-34 to D-38 are proposals from the spikes run on 2026-12-05/06 (S5: D-34 to D-37;
S3: D-38) and are flagged for review. On 2026-12-06 Kokone delegated the choices the
spikes left open (§6 questions 5 and 12–17); D-39 to D-45, D-46 and D-47 from S2 and
D-48 from S4 are the options chosen under that delegation, the most conservative ones the spikes
support, and are flagged for review. D-39's encodings become the format contract with the first golden fixture (M1),
so a human reads `mv-crypto` and `mv-vault` against them before that fixture.
D-26 to D-28 (2026-11-23, taken from the ops runbook and Kokone's instructions), D-30
(2026-12-02) and D-32 (2026-12-05). D-05 to D-24 were resolved while writing this suite
and are **flagged for review** — overturn any of them and the affected documents are
listed. D-29 was taken in the repository-bootstrap session (2026-12-02) and is flagged
for review in the same way.
D-31 records the S1 result. D-33 follows Kokone's request of 2026-12-05 to check the
`gpui-kit` version and change it if needed. D-34 to D-38 are proposals from the spikes
run on 2026-12-05/06 (S5: D-34 to D-37; S3: D-38). On 2026-12-06 Kokone delegated the
choices the spikes left open (§6 questions 5 and 12–17); D-39 to D-45, D-46 and D-47
from S2 and D-48 from S4 are the options chosen under that delegation, the most
conservative ones the spikes support. **Kokone approved D-31 to D-48 on 2026-12-06**,
after merging them (#7). D-39's encodings become the format contract with the first
golden fixture (M1), so a human still reads `mv-crypto` and `mv-vault` against them
before that fixture.
| ID | Decision | Affects |
|---|---|---|
@@ -156,7 +169,7 @@ so a human reads `mv-crypto` and `mv-vault` against them before that fixture.
| D-35 | **Leftover temps after a crash** (`<name>.mutevault.tmp-*`, and that vault's backup and sidecar temps) are handled only by that vault's lock holder, after the main file authenticates. A leftover that authenticates with a higher `save_counter` moves to the backup folder; anything else is deleted. If the main file is missing or fails, every temp is kept and the newest that authenticates is offered for recovery. | 05, 07 |
| D-36 | `mv-vault` receives its write-through atomic replace (doc 05 §5 step 6) as an operation injected by `mv-app` and implemented in `mv-platform`; tests use `std::fs::rename`. Revisited after S5b-M3: if write-through changes nothing, `mv-vault` uses `std::fs::rename` and the injection goes. | 03, 05 |
| D-37 | **The kill-during-save test is `cargo xtask kill-test`:** the parent in `xtask`, the child an `mv-vault` example binary; stall points plus random kills, with an in-place-write negative control. The quick variant (stall points and 100 kills per size) runs in `ci.yml` on every pull request, 1,000 kills per size before each release, and the VM power-cut test for any change to the save pipeline or the format. | 14, 15 |
| D-38 | **`SecureInput` is a custom GPUI element that reports no text input** (S3). GPUI then detaches the window's IME context while the field has focus, so text services are disabled through GPUI, never through `mv-platform`, and without input-scope or TSF calls. `mv-platform` supplies only the clipboard read for paste and the page-locked buffer. The masked input is never used for entry.<br>• Holds if S3-M1 (IME) and S3-M3 (text suggestions) pass; if either fails, the element stays and its text-services exposure moves to RR-2 (doc 07 §6). | 04, 07, 10, 12 |
| D-38 | **`SecureInput` is a custom GPUI element that reports no text input** (S3). GPUI then detaches the window's IME context while the field has focus, so text services are disabled through GPUI, never through `mv-platform`, and without input-scope or TSF calls. `mv-platform` supplies only the clipboard read for paste and the page-locked buffer. The masked input is never used for entry.<br>• S3-M1 (IME) and S3-M3 (text suggestions) passed on 2026-12-06, so the text-services exposure does not move to RR-2. | 04, 07, 10, 12 |
| D-39 | **Format encodings** (S5; q13):<br>• `AAD_slot`: doc 04 §6's fields at doc 05 §3's widths, little-endian, 88 bytes; the slot's `created_at` and `flags` are covered by the payload AAD.<br>• `AAD_field = "MVF1" ‖ vault_id ‖ item_id ‖ field_id (u64 LE)`, plus `‖ len (u16 LE) ‖ credential_id` for a passkey key box.<br>• A box is one byte string, `nonce ‖ ciphertext ‖ tag`.<br>• `HKDF(a, b, c)` = (salt, IKM, info); subkeys take no salt; labels are ASCII without a terminator; slot types 2 and 0x80 use the slot's `salt`.<br>• `kdf_id` = 0 requires m = t = p = 0; a slot's non-zero `flags` is `Malformed`; each size limit has a fixed typed error.<br>• `pad` is the shortest that reaches a multiple of 4 KiB, else the next one. | 04, 05, 06 |
| D-40 | **Key derivation in operation** (S5; q13): `argon2`'s `parallel` feature stays off (no `rayon`); calibration stays as doc 04 §5, and docs 00 and 05 are aligned to it; the KDF memory is page-locked best-effort and always wiped; password length counts code points after NFKC; a new password with a code point unassigned in the pinned Unicode version is refused, and an upgrade of `unicode-normalization` is a crypto change. | 00, 02, 04, 05 |
| D-41 | Windows binaries link the C runtime statically (`+crt-static`), so neither build needs the VC++ redistributable (S5; q13). | 15, 18 |
@@ -164,9 +177,9 @@ so a human reads `mv-crypto` and `mv-vault` against them before that fixture.
| D-43 | **Save-pipeline details** (S5; q14): the first save after opening an older file writes max(sidecar, file) + 1; an unparseable sidecar counts as missing, with a notice; a hash of the whole file in the sidecar warns about two copies edited apart; a newer leftover becomes a backup with a one-line notice; a sharing violation is retried for up to 2 s; the recent backups count toward the daily and monthly slots, the newest of each is kept; the sidecar lives in `%LOCALAPPDATA%\MuteVault\state\`; `fs4` and `tempfile` are dropped. | 02, 03, 05 |
| D-44 | **`SecureInput` policies** (S3; q15, q16): every `SecureInput` accepts paste, first line only, and the clipboard is cleared on submit if it is unchanged since the paste; no detection of keystroke-hook input methods, but the master-password screens show a static hint about them. | 07, 10, 12 |
| D-45 | The S1b upgrade harness becomes `cargo xtask ui-smoke` once `mv-ui` exists; it runs locally before each `gpui-kit` upgrade, never in CI (q12). | 14, 17 |
| D-46 | **Tray, hotkey and autostart on GPUI** (S2; holds once S2-M1 passes):<br>• `tray-icon` (`default-features = false`) and `global-hotkey` are Windows-only dependencies of `mv-platform`, created on GPUI's main thread, whose loop already serves their windows; their event handlers are set before any icon or hotkey exists and only enqueue into one channel.<br>• Close to the tray removes the window and switches GPUI to headless; Show re-attaches, opens a window and calls `SetForegroundWindow` itself, never GPUI's `activate_window()`.<br>• The hotkey acts on Pressed only and has no default chord: it stays off until the user records one.<br>• "Start with Windows" lives in Settings. The Velopack build writes and removes a Run value and only reads `StartupApproved`; the Store build uses a start-up task and detects that activation, since it gets no arguments. | 02, 10, 12, 18 |
| D-47 | **Single instance and the pipe** (S2): the mutex is `Local\MuteVault.<SID>`; the pipe is `\\.\pipe\MuteVault.<SID>.<session-id>.v1`, created with the first-instance flag, remote clients rejected and a user-only DACL; its listener starts right after the single-instance check, before the window. Clients (`mutevault-host`, a second instance, the CLI) open it with identification-level impersonation and check the server's user SID, The pipe, server and client, is implemented in `mv-platform` directly on `windows` with overlapped handles; `interprocess` is not used, because its client cannot limit impersonation and synchronous handles block a full-duplex relay (S4 finding 9). | 02, 03, 07, 08, 10 |
| D-48 | **S4 passed; browser integration** (S4): no browser is dropped from P0, and Brave joins Chrome and Edge at P0; Vivaldi stays best-effort until S4-M1.<br>• MuteVault registers exactly the Chrome, Edge and Mozilla keys, never `Software\Chromium\…` (it would shadow Chrome\'s in Edge and Brave) or `Software\BraveSoftware\…`.<br>• The host caps frames at 1 MiB both ways before allocating, parses nothing but `id` and `open_app` while the app is not running, exits on stdin EOF and never relies on its parent process.<br>• "Open MuteVault" when the app is not running: the host starts the installed app with `CREATE_BREAKAWAY_FROM_JOB`, only for `open_app` and with no arguments from the message; no `mutevault:` URL protocol.<br>• The extension keeps one long-lived port per profile and checks request size before posting. Budgets: under 50 ms per request on an open port, under 150 ms to connect. | 02, 03, 07, 08 |
| D-46 | **Tray, hotkey and autostart on GPUI** (S2; S2-M1 passed on 2026-12-06):<br>• `tray-icon` (`default-features = false`) and `global-hotkey` are Windows-only dependencies of `mv-platform`, created on GPUI's main thread, whose loop already serves their windows; their event handlers are set before any icon or hotkey exists and only enqueue into one channel.<br>• Close to the tray removes the window and switches GPUI to headless; Show re-attaches, opens a window and calls `SetForegroundWindow` itself, never GPUI's `activate_window()`.<br>• The hotkey acts on Pressed only and has no default chord: it stays off until the user records one.<br>• "Start with Windows" lives in Settings. The Velopack build writes and removes a Run value and only reads `StartupApproved`; the Store build uses a start-up task and detects that activation, since it gets no arguments. | 02, 10, 12, 18 |
| D-47 | **Single instance and the pipe** (S2): the mutex is `Local\MuteVault.<SID>`; the pipe is `\\.\pipe\MuteVault.<SID>.<session-id>.v1`, created with the first-instance flag, remote clients rejected and a user-only DACL; its listener starts right after the single-instance check, before the window. Clients (`mutevault-host`, a second instance, the CLI) open it with identification-level impersonation and check the server's user SID. The pipe, server and client, is implemented in `mv-platform` directly on `windows` with overlapped handles; `interprocess` is not used, because its client cannot limit impersonation and synchronous handles block a full-duplex relay (S4 finding 9). | 02, 03, 07, 08, 10 |
| D-48 | **S4 passed; browser integration** (S4): no browser is dropped from P0, and Brave joins Chrome and Edge at P0. Vivaldi is listed as supported since S4-M1 (2026-12-06), through Chrome's key; other Chromium browsers stay best-effort.<br>• MuteVault registers exactly the Chrome, Edge and Mozilla keys, never `Software\Chromium\…` (it would shadow Chrome's in Edge and Brave) or `Software\BraveSoftware\…`.<br>• The host caps frames at 1 MiB both ways before allocating, parses nothing but `id` and `open_app` while the app is not running, exits on stdin EOF and never relies on its parent process.<br>• "Open MuteVault" when the app is not running: the host starts the installed app with `CREATE_BREAKAWAY_FROM_JOB`, only for `open_app` and with no arguments from the message; no `mutevault:` URL protocol.<br>• The extension keeps one long-lived port per profile and checks request size before posting. Budgets: under 50 ms per request on an open port, under 150 ms to connect. | 02, 03, 07, 08 |
## 6. Open actions
@@ -199,8 +212,8 @@ so a human reads `mv-crypto` and `mv-vault` against them before that fixture.
1. ~~Which registry key Brave and Vivaldi read for native-messaging hosts (S4).~~
**Answered 2026-12-06 (S4):** Brave reads `HKCU\Software\Chromium\NativeMessagingHosts`,
then Chrome's key, never `BraveSoftware`'s; Vivaldi is expected to do the same
(S4-M1).
then Chrome's key, never `BraveSoftware`'s. Vivaldi 8.3 finds the host through
Chrome's key (S4-M1, 2026-12-06).
2. ~~Whether `argon2` 0.6.0 parallelises lanes (S5).~~ **Answered 2026-12-06 (S5):** only
with its optional `parallel` feature (rayon); by default every lane runs on the
calling thread. With the feature, p = 4 is 2.2–2.9× faster than p = 1 on the dev PC,
@@ -264,6 +277,15 @@ so a human reads `mv-crypto` and `mv-vault` against them before that fixture.
project is on GitHub, where the maintainer's account is suspended (D-25).
**Deferred 2026-12-06** until the account is restored; the one-line change is in the
S3 report, so anyone can file it.
18. May part of M1 start while S5 is still partial? Its pass criterion still needs the
low-end Argon2id run (S5-M1, S5-M2), and the VM power-cut test (S5b-M3) and Miri are
open too. §1 says no feature work before S1–S5 pass. Options: (a) wait until S5
passes (the default, and the conservative one); (b) start the parts that fix no
format or KDF value (workspace crates, `mv-core`, the `deny.toml` exception,
`+crt-static`, `cargo xtask kill-test`) and keep the presets, the field-box vector and
the first golden fixture behind S5. (b) moves sooner and risks little: a low-end
result can change only the preset values, and the power-cut test only whether D-36's
write-through stays. But it reads §1 loosely.
## 7. Out of scope, on purpose
+10 -6
View File
@@ -3,18 +3,19 @@
> MuteVault spike report · first data 2026-12-02 (moved out of doc 17 §3) · Qodana
> attempts 2026-12-05. The question, pass criterion and fallback are in doc 17 §2.
**Verdict: partial.** Two of the three criteria pass. The third half passes: Qodana's
Rust linter completes on the runner, but its results contain 47 false errors that five
runs could not remove. Qodana stays report-only, as before, and the open item is
narrowed (findings 3–6). The fallback (Qodana on non-UI crates only, or no Qodana) is
not needed yet: the scan works, it is the results that are wrong.
**Verdict: pass, accepted by Kokone on 2026-12-06.** The security and coverage criteria
pass, and Qodana's Rust linter completes on the runner, which is what the second
criterion asks. Its results contain 47 false errors that five runs could not remove, so
Qodana stays report-only (doc 17 §6 question 5). Finding their cause (findings 3–6,
S10-M1…M4) is follow-up work, not a gate. The fallback (Qodana on non-UI crates only, or
no Qodana) is not needed: the scan works, it is the results that are wrong.
## Criteria
| Criterion | Result |
|---|---|
| Ops `security.yml` (gitleaks, Opengrep, osv-scanner, cargo-deny) green on the workspace | **Pass** (2026-12-02) |
| `qodana-rust` completes through the ops reusable with `within-docker: true` on `windows-latest` | **Runs, results partly false.** Every run completes; opening the project takes 2–6 minutes on a cold cache (preliminary, the machine was busy). 47 of its 48 results are false (finding 3) |
| `qodana-rust` completes through the ops reusable with `within-docker: true` on `windows-latest` | **Pass** (accepted 2026-12-06), **results partly false.** Every run completes; opening the project takes 2–6 minutes on a cold cache (preliminary, the machine was busy). 47 of its 48 results are false (finding 3) |
| Coverage thresholds enforced in `ci.yml` | **Pass.** Enforced; no gated crate exists yet |
## Setup
@@ -105,6 +106,9 @@ one real warning (finding 7). The sanity check also flags `Iter::all`, `Iter::fi
## Manual checklist
Since S10 passed, these are follow-ups towards Qodana results that can be trusted; none
blocks M1.
| ID | Step | Expected |
|---|---|---|
| S10-M1 | Approve the ~6 GB pull of `jetbrains/qodana-rust:2026.3@sha256:fa4b5484…0d00`, then repeat run 1 with `--image` set to it | 1 result (the `spikes` warning) if the GA build fixes it; otherwise go to M2 |
+16 -12
View File
@@ -1,18 +1,19 @@
# Spike S2 — Tray icon, global hotkey, single instance and autostart with GPUI
> MuteVault spike report · run 2026-12-05/06 on `gpui-kit` 0.12.0 (D-33).
> Question: do tray icon, global hotkey, single instance and autostart coexist with
> GPUI's event loop? Pass criterion and fallback: doc 17 §2. Decisions: D-46, D-47.
> MuteVault spike report · run 2026-12-05/06 on `gpui-kit` 0.12.0 (D-33), manual
> checklist 2026-12-06. Question: do tray icon, global hotkey, single instance and
> autostart coexist with GPUI's event loop? Pass criterion and fallback: doc 17 §2.
> Decisions: D-46, D-47.
**Verdict: partial.** Every clause a script can check passes: no missed or duplicated
**Verdict: pass.** Every clause a script can check passes: no missed or duplicated
event in 12,267, a second launch always reaches the first instance, and autostart
registers, starts and unregisters. One clause is open, "for an hour of use": the
desktop-lock rule capped each automated phase at about five minutes, so it is S2-M1 on
the manual checklist, with the visual checks and the Explorer restart (S2-M2…M12).
Nothing points to the fallback ("taskbar only").
registers, starts and unregisters. The desktop-lock rule capped each automated phase at
about five minutes, so "for an hour of use" was S2-M1 on the manual checklist, with the
visual checks and the Explorer restart (S2-M2…M12). Kokone ran the checklist and signed
it off on 2026-12-06. The fallback ("taskbar only") is not needed.
**Recommendation, taken as D-46 and D-47 (chosen on Kokone's delegation, flagged for
review):** keep `tray-icon` and `global-hotkey` as Windows-only dependencies of
**Recommendation, taken as D-46 and D-47 (chosen on Kokone's delegation, approved on
2026-12-06):** keep `tray-icon` and `global-hotkey` as Windows-only dependencies of
`mv-platform`, created on GPUI's main thread; close to the tray by removing the window
and switching GPUI to headless; bring windows forward explicitly; scope the pipe name to
the session and start its listener before the window; harden the pipe client.
@@ -58,9 +59,9 @@ How the spike works:
| Tray menu events arrive reliably | **Pass.** 1,000 synthetic tray callbacks raised and handled; 10 real left clicks gave 10 shows with the window in front; 4 real menu choices gave 4 events |
| Hotkey events arrive reliably | **Pass.** 2,000 injected chords in each of three states (window in front, closed to the tray, minimised), in bursts 0–3 ms apart: 6,000 Pressed, 6,000 Released |
| No missed or duplicated events | **Pass.** Final run 12,267 events: 0 gaps, 0 duplicates, 0 out of order |
| …for an hour of use | **Open: S2-M1.** About 5 minutes of automated soak; separately, the first instance ran 4 h 39 min in the tray through a 4.5 h sleep and still answered |
| …for an hour of use | **Pass** (S2-M1, Kokone, 2026-12-06). The automated soak covered about 5 minutes. On 2026-12-06 the instance the autostart test started stayed in the tray for 64 min until it was quit from its menu: 89 events, 0 gaps, 0 duplicates. Earlier, the first instance ran 4 h 39 min in the tray through a 4.5 h sleep and still answered |
| Single instance | **Pass.** 100 sequential and 20 simultaneous second launches all handed over and exited 0; one process and one icon left; the window was in front after 100 of 100 |
| Autostart | **Pass** for register, cold start and removal; a real sign-in is S2-M10 |
| Autostart | **Pass** for register, cold start and removal; a real sign-in passed S2-M10 |
## Measurements (preliminary)
@@ -157,6 +158,9 @@ How the spike works:
## Manual checklist (Kokone)
**Done 2026-12-06:** Kokone ran S2-M1…M12 and signed them off. The table stays as the
procedure for a re-run.
Build with `cargo build --release --locked` in `spikes\s2-tray-hotkey` and start
`.\target\release\s2-tray-hotkey.exe --test-control`. `s2-driver ctl stats` prints the
counters; the log is `logs\events-<pid>.log`. Quitting from the tray removes the Run
+24 -19
View File
@@ -1,16 +1,17 @@
# Spike S3 — `SecureInput` on GPUI
> MuteVault spike report · run 2026-12-05/06 on `gpui-kit` 0.12.0 (D-33).
> Question: can a `SecureInput` element keep typed secrets out of framework strings?
> Pass criterion and fallback: doc 17 §2. Decision: D-38.
> MuteVault spike report · run 2026-12-05/06 on `gpui-kit` 0.12.0 (D-33), manual
> checklist 2026-12-06. Question: can a `SecureInput` element keep typed secrets out of
> framework strings? Pass criterion and fallback: doc 17 §2. Decision: D-38.
**Verdict: partial.** Everything that can be automated passes. Nine manual checks
(S3-M1…M9) are open: agents may not use a real IME, the clipboard or Caps Lock, and the
automatic suggestion-popup check saw no popup even in the normal input, so it proves
nothing either way (finding 8). If S3-M1 (IME) and S3-M3 (text suggestions) pass, S3
passes and the fallback (masked input with RR-2) is not needed for entry.
**Verdict: pass.** Everything that can be automated passes. Nine checks needed a person
(S3-M1…M9): agents may not use a real IME, the clipboard or Caps Lock, and the automatic
suggestion-popup check saw no popup even in the normal input, so it proves nothing
either way (finding 8). Kokone ran all nine and signed them off on 2026-12-06, the real
IME (S3-M1) and text suggestions (S3-M3) included. The fallback (masked input with RR-2)
is not needed for entry.
**Recommendation, taken as D-38 (flagged for review):** `SecureInput` is a custom GPUI
**Recommendation, taken as D-38 (approved on 2026-12-06):** `SecureInput` is a custom GPUI
element that reports no text input. GPUI then removes the window's IME context while the
field has focus, which is what Microsoft prescribes for password fields. It needs no
`unsafe`, no OS call and no new crate in `mv-ui`; `mv-platform` only supplies the paste
@@ -68,11 +69,11 @@ read and the page-locked buffer.
|---|---|
| Dots | **Pass.** Window captures: dots and caret only |
| Caret | **Pass** |
| Selection | **Pass** with the keyboard: 10 of 10 edit checks in three text-service modes. Mouse: **open, S3-M6** |
| Paste | Implemented, **open, S3-M4** |
| Caps Lock indicator | Implemented, **open, S3-M5** |
| IME composition off | **Pass** for the mechanism: no IME context whenever `SecureInput` has focus, every run; composition reaching the field: 0. Real IME: **open, S3-M1** |
| Text suggestions and prediction off | Mechanism in place (finding 3); **open, S3-M3** (finding 8) |
| Selection | **Pass** with the keyboard: 10 of 10 edit checks in three text-service modes. Mouse: **pass, S3-M6** |
| Paste | **Pass, S3-M4** |
| Caps Lock indicator | **Pass, S3-M5** |
| IME composition off | **Pass** for the mechanism: no IME context whenever `SecureInput` has focus, every run; composition reaching the field: 0. Real IME: **pass, S3-M1** |
| Text suggestions and prediction off | Mechanism in place (finding 3); **pass, S3-M3** (finding 8) |
| No copy outside the zeroising buffer | **Pass**, 6 runs (below) |
| UI Automation: password field, no value | **Pass.** `IsPassword=True`, no patterns; the normal input has Value and Text patterns |
@@ -168,6 +169,9 @@ A scan of the app takes about 1 s.
## Manual checklist (Kokone)
**Done 2026-12-06:** Kokone ran S3-M1…M9 and signed them all off. The table stays as the
procedure for a re-run.
Build once with `cargo build --release --bins` in `spikes\s3-secure-input`, start
`.\target\release\s3-secure-input.exe`, and type `status` + Enter in its console to see
focus, character count and IME context. Use only the fake password above.
@@ -184,11 +188,12 @@ focus, character count and IME context. Use only the fake password above.
| S3-M8 | Japanese IME on: type `nihon` in Notes without committing, click SecureInput | The composition ends in Notes; SecureInput stays at 0, no WARNING line |
| S3-M9 | Settings → Privacy & security → Inking & typing personalization → personal dictionary | Record whether the fake strings typed into Notes or the masked field appear; clear if wanted |
If S3-M1 or S3-M3 fails, nothing in the app holds the text (finding 4 is unchanged), but
typed text would reach out-of-process text services. The fallback would then be the
masked input with RR-2 extended to entry (finding 5) plus the doc 07 §5 text-input
exposure; `SecureInput` would still be better in memory and would stay, with only the
text-services clause moved to RR-2.
S3-M1 and S3-M3 passed, so this fallback is not used. Had either failed, nothing in the
app would hold the text (finding 4 is unchanged), but typed text would reach
out-of-process text services. The fallback would then be the masked input with RR-2
extended to entry (finding 5) plus the doc 07 §5 text-input exposure; `SecureInput`
would still be better in memory and would stay, with only the text-services clause
moved to RR-2.
## Re-run
+16 -11
View File
@@ -1,17 +1,18 @@
# Spike S4 — Native messaging round trip
> MuteVault spike report · run 2026-12-05/06. Question and pass criterion: doc 17 §2
> MuteVault spike report · run 2026-12-05/06, manual checklist 2026-12-06. Question and
> pass criterion: doc 17 §2
> (extension ↔ host ↔ pipe ↔ app echo under 50 ms; per-user registration without admin;
> the service worker stays alive while the port is open; the host exits cleanly when the
> browser closes). Fallback: drop a browser from the P0 list. Decision: D-48.
**Verdict: pass.** Every clause passed in Chrome 158, Edge 159, Firefox 160 and Brave
1.100 (Chromium 158), with per-user `HKCU` registration and no administrator rights. No
browser is dropped from P0. The browser numbers are preliminary (the PC was shared). The
driver part was re-run on a quiet PC on 2026-12-06 with the same results; the browser
part is S4-M5. Outside the criterion:
- doc 17 §4's gate "Brave/Vivaldi listed as supported": **Brave is met; Vivaldi is not
tested** (not installed, and the spike may not install software): S4-M1;
browser is dropped from P0. The browser numbers come from the first run, on a shared
PC; the driver part was re-run on a quiet PC on 2026-12-06 with the same results. Kokone
signed off the manual checklist on 2026-12-06. Outside the criterion:
- doc 17 §4's gate "Brave/Vivaldi listed as supported" is **met**: Brave by the runs,
Vivaldi 8.3.4191.52 by S4-M1;
- open question 1 is answered: Brave reads `HKCU\Software\Chromium\NativeMessagingHosts`
first, then Chrome's key, and never the `BraveSoftware` key (finding 1, measured).
@@ -84,8 +85,8 @@ holds 1.2 MiB of private memory, 85 handles and 5 threads.
and measured). Keep writing the Edge key, which wins over a stale Chrome entry. Never
write `Software\Chromium\…`: Edge and Brave read it before Chrome's key, so an entry
there would only shadow the Chrome one.
3. **Vivaldi is untested.** KeePassXC registers it through Chrome's key, consistent with a
Chromium-branded build, but that is not proof. Best-effort until S4-M1 passes.
3. **Vivaldi finds the host through Chrome's key** (S4-M1, Vivaldi 8.3.4191.52,
2026-12-06), as KeePassXC's registration suggested.
4. **Chromium starts an `.exe` host through `cmd.exe`** (`%COMSPEC% /d /s /c` with the
quoted path, origin and parent window). The `cmd.exe` lives as long as the host and
costs 9–11 ms of start-up; it also expands `%VAR%` in the path. So the app's peer
@@ -147,6 +148,9 @@ holds 1.2 MiB of private memory, 85 handles and 5 threads.
## Manual checklist (Kokone)
**Done 2026-12-06:** Kokone signed off S4-M1…M5, with Vivaldi 8.3.4191.52 installed for
S4-M1; S4-M6 belongs to S13. The table stays as the procedure for a re-run.
From the spike directory, without administrator rights. Build with `cargo build
--release; Copy-Item target\release\s4-host.exe target\release\s4-host-alt.exe` and
`node tools\build-ext.mjs`; afterwards `pwsh -File unregister.ps1` must print
@@ -158,7 +162,7 @@ From the spike directory, without administrator rights. Build with `cargo build
| S4-M2 | Watch the extension tab during a `node tools\browser-test.mjs full --browser <b>` run | Status and benchmark shown; no console errors |
| S4-M3 | With a second local standard account, create a server on **your** pipe name that admits everyone (PowerShell `NamedPipeServerStreamAcl`), then start your host | The other account can take the name; your host refuses the server (owner SID) and answers `app_not_running`; your app fails to start and says so |
| S4-M4 | Only if managed PCs matter: on a VM set Chrome's `NativeMessagingUserLevelHosts` = 0, register, run a lookup | "Host not found"; MuteVault's Settings must explain the policy |
| S4-M5 | Quiet re-run: `s4-driver.exe all`, then `bash tools/run-all-browsers.sh` (about 30 min), `node tools\summarize.mjs` | Same conclusions; every unregister verifies. The driver part was done on 2026-12-06 (same results); the browser part remains |
| S4-M5 | Quiet re-run: `s4-driver.exe all`, then `bash tools/run-all-browsers.sh` (about 30 min), `node tools\summarize.mjs` | Same conclusions; every unregister verifies. The driver part was done on 2026-12-06 (same results). A browser re-run on 2026-12-06 (07:27–07:31) recorded nothing: each run's app found the pipe name already held by another `s4-app` and refused to start, which is the first-instance flag at work (finding 16). Kokone accepted the first run's browser numbers |
| S4-M6 | Store build: part of S13 (finding 13) | — |
## Re-run
@@ -179,5 +183,6 @@ by `unregister.ps1`, which searches `HKCU\Software` afterwards; the final check
match and the five keys hold exactly their baseline entries. Browser profiles lived
under `profiles\` and were deleted after each run; the real profiles, `%LOCALAPPDATA%`
and `%USERPROFILE%\MuteVault\` were not touched, and the maintainer's running Edge was
left alone. No software was installed. One Chrome run held the desktop lock through a
4.4 h sleep and was stopped by hand.
left alone. The spike installed no software; Kokone installed Vivaldi for S4-M1. One
Chrome run held the desktop lock through a 4.4 h sleep and was stopped by hand. On
2026-12-06, after the checklist, no `spike_s4` entry was left under the five keys.
+9 -8
View File
@@ -6,8 +6,8 @@
> Argon2id timing measured for the presets on the dev PC and a low-end machine; lane
> threading of `argon2` 0.6.0 determined; a 1,000-iteration kill-during-save test never
> corrupts. Fallback: adjust presets; revisit the save pipeline. Decisions: D-34…D-37
> (proposed) and D-39…D-43 (chosen 2026-12-06 on Kokone's delegation), all flagged for
> review.
> (proposed by the spike) and D-39…D-43 (chosen on Kokone's delegation), all approved by
> Kokone on 2026-12-06.
**Verdict: partial.**
@@ -27,7 +27,7 @@
power-cut test (S5b-M3); Miri (the PC has no nightly toolchain).
- **The crypto and format choices the docs left open** are listed under "Decisions".
The spike took none of them; they were chosen on Kokone's delegation of 2026-12-06
(D-39…D-43, flagged for review).
(D-39…D-43) and approved by Kokone the same day.
## Setup
@@ -306,10 +306,11 @@ violations at step 6); disk full, I/O errors, very slow media. S5b-M3 covers the
Each item changes the format contract, the derived keys or a user-visible behaviour. The
spike chose none (doc 17 §6 questions 13 and 14). On 2026-12-06 Kokone delegated the
choice; the options marked **Chosen** were taken under that delegation and are flagged
for review (doc 17 §5). D-39's encodings become format contract (rule 6) with the first
golden fixture (M1); before that fixture a human reads `mv-crypto` and `mv-vault`
against docs 04 and 05 (CLAUDE.md: AI-written crypto and parsing code is a draft).
choice; the options marked **Chosen** were taken under that delegation, and Kokone
approved them the same day (doc 17 §5). D-39's encodings become format contract
(rule 6) with the first golden fixture (M1); before that fixture a human reads
`mv-crypto` and `mv-vault` against docs 04 and 05 (CLAUDE.md: AI-written crypto and
parsing code is a draft).
- **`argon2` `parallel` feature** (A1; rule 10). (a) Off: no new crates; lanes cost no
time. (b) On, global rayon pool: Standard ≈ 2.5× faster; six crates with substantial
@@ -372,7 +373,7 @@ against docs 04 and 05 (CLAUDE.md: AI-written crypto and parsing code is a draft
of a day or month is kept. **Chosen, D-43:** yes, also the monthly ones; the newest.
- **`fs4` and `tempfile`** (B7). **Removed from doc 02, D-43.**
**Proposed, flagged for review** (doc 17 §5): D-34 backups by hard link (B2, B3); D-35
**Proposed, approved 2026-12-06** (doc 17 §5): D-34 backups by hard link (B2, B3); D-35
the leftover rule (B4); D-36 the atomic replace injected into `mv-vault` (B7, B8); D-37
the kill test in `xtask` (B14). Docs updated: 02, 03, 04, 05, 06, 07, 14. Not yet: a
quick kill-test step in `ci.yml` (doc 15 §4). D-39…D-43 are written into docs 00, 02,