3 Commits
Author SHA1 Message Date
poli0981 f91ae9f31a Merge pull request 'docs: let part of M1 start before S5 passes (D-49)' (#9) from docs/d49-m1-before-s5 into main
Reusable / Security / Secrets (gitleaks) (push) Successful in 13s
Reusable / Security / .NET (NuGetAudit) (push) Skipped
CI / Windows · clippy, tests (push) Successful in 38s
Security / workflow-lint (push) Successful in 35s
CI / Linux · fmt, clippy, rules, tests, coverage (push) Successful in 38s
Reusable / Security / SAST (Opengrep) (push) Successful in 33s
CI / ci-ok (push) Successful in 4s
Reusable / Security / Dependencies (osv-scanner) (push) Successful in 21s
Reusable / Security / Rust (cargo-deny) (push) Successful in 42s
Security / scan (push) Successful in 1m18s
Reusable / Qodana / Qodana (push) Successful in 5m49s
Qodana / rust (push) Successful in 5m49s
Reviewed-on: #9
2026-12-06 01:28:02 +00:00
poli0981andClaude Opus 5.5 5e70069238 docs: let part of M1 start before S5 passes (D-49)
CI / ci-ok (push) Skipped
Security / workflow-lint (push) Skipped
Reusable / Security / .NET (NuGetAudit) (pull_request) Skipped
Reusable / Security / Secrets (gitleaks) (pull_request) Successful in 24s
Security / workflow-lint (pull_request) Successful in 27s
CI / Windows · clippy, tests (pull_request) Successful in 33s
CI / Linux · fmt, clippy, rules, tests, coverage (pull_request) Successful in 43s
Reusable / Security / Dependencies (osv-scanner) (pull_request) Successful in 22s
CI / ci-ok (pull_request) Successful in 4s
Reusable / Security / SAST (Opengrep) (pull_request) Successful in 34s
Reusable / Security / Rust (cargo-deny) (pull_request) Successful in 38s
Security / scan (pull_request) Successful in 1m19s
Kokone chose option (b) of doc 17 §6 question 18 on 2026-12-06. S5
stays partial, and its remaining runs are deferred: no low-end machine
is available for the Argon2id run (S5-M1, S5-M2, S5b-M2). The VM
power-cut test (S5b-M3) and Miri wait with it.

- D-49 in doc 17 §5 lets M1 start with work that fixes no format or
  KDF value: the workspace crates, mv-core, the deny.toml exception,
  +crt-static and the kill-test.
- The KDF presets, the field-box vector and the first golden fixture
  (and so M1's exit) wait for S5. Doc 17 §1 notes the exception, §4
  gains a gate, and question 18 is marked decided.
- Docs 04 §5 and 05 §9, the S5 report and the beta 0.1 changelog say
  the low-end runs are deferred.
- The S5 row of doc 17 §2.1 no longer calls D-39...D-43 unreviewed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-06 08:12:19 +07:00
poli0981 d738cba230 Merge pull request 'docs: record the M0 sign-off of spikes S2, S3, S4 and S10' (#8) from docs/m0-signoff into main
Reusable / Security / Secrets (gitleaks) (push) Successful in 15s
Reusable / Security / .NET (NuGetAudit) (push) Skipped
Security / workflow-lint (push) Successful in 28s
CI / Windows · clippy, tests (push) Successful in 36s
Reusable / Security / SAST (Opengrep) (push) Successful in 28s
Reusable / Security / Dependencies (osv-scanner) (push) Successful in 18s
Reusable / Security / Rust (cargo-deny) (push) Successful in 44s
Security / scan (push) Successful in 1m9s
CI / Linux · fmt, clippy, rules, tests, coverage (push) Successful in 43s
CI / ci-ok (push) Successful in 5s
Reusable / Qodana / Qodana (push) Successful in 5m28s
Qodana / rust (push) Successful in 5m28s
Reviewed-on: #8
2026-12-06 01:09:28 +00:00
5 changed files with 41 additions and 19 deletions

No files matched your search

+7 -2
View File
@@ -28,8 +28,9 @@ progress, and the public beta is the exit criterion of M5 (doc 17 §3).
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`).
docs left open are under "Decided" below. The runs on a low-end machine, the VM
power-cut test and Miri wait until a low-end machine is available (D-49;
`docs/spike-reports/S5_CRYPTO_FORMAT.md`).
- **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
@@ -102,6 +103,10 @@ progress, and the public beta is the exit criterion of M5 (doc 17 §3).
nightly-only (doc 13 §1).
### Decided
- Part of M1 may start before spike S5 passes (D-49, 2026-12-06):
- work that fixes no format or KDF value goes first;
- the KDF presets and the first golden fixture wait for S5's low-end run, which is
deferred until a low-end machine is available.
- 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
+2 -1
View File
@@ -147,7 +147,8 @@ fixture a human reads `mv-crypto` against this text (CLAUDE.md).
exactly as above, with no KDF parameter change (D-40). Doc 00 §6 and doc 05 §9 state
the unlock time this gives: Standard's own time where it takes 250 ms to 2 s; about
0.5 s on faster PCs, or less where calibration stops at its pass cap; over 2 s the
user is told. The low-end runs (S5-M1, S5-M2) are open.
user is told. The low-end runs (S5-M1, S5-M2) are deferred until a low-end machine is
available (D-49); they confirm or adjust these values before the first golden fixture.
- **Build note:** set `opt-level = 3` for the crypto crates in the dev profile; an
unoptimised Argon2id takes many seconds and makes tests unbearable.
+2 -1
View File
@@ -245,6 +245,7 @@ Rules
| Search | In-memory scan of metadata | Under 50 ms for 10,000 items | — |
The S5 figures come from the maintainer's PC (i7-14700KF, NVMe SSD), most from the quiet
re-run of 2026-12-06; a low-end machine is open (S5-M1, S5b-M2). A rough size guide is
re-run of 2026-12-06. The low-end runs (S5-M1, S5b-M2) are deferred until a low-end
machine is available (D-49). A rough size guide is
0.5–1 KiB per login item, so a 10,000-item vault is in the 5–10 MiB range; S5's fake
items averaged 650 bytes.
+18 -12
View File
@@ -7,7 +7,8 @@
A spike is a throwaway experiment that answers one question with a pass/fail criterion.
Spike code is not merged; its result is written here and, where it changes the design,
into the relevant document. **No feature work starts until S1–S5 have passed or their
fallback has been chosen.**
fallback has been chosen.** One exception: D-49 lets M1 begin, while S5 is still
partial, with work that fixes no format or KDF value.
## 2. Spikes
@@ -43,7 +44,7 @@ measurements, findings and the manual checklist. This table is the index.
| 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) |
| 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 deferred until a low-end machine is available (D-49); q13's choices are made and approved (D-39…D-43) | [`S5_CRYPTO_FORMAT.md`](spike-reports/S5_CRYPTO_FORMAT.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
@@ -89,9 +90,11 @@ Done:
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);
- S5, the last mandatory spike, stays partial. Its pass criterion still needs the
low-end Argon2id run (S5-M1, S5-M2). That run, the VM power-cut test (S5b-M3) and Miri
are deferred until a low-end machine is available. D-49 (question 18, option b) lets
M1 start meanwhile with work that fixes no format or KDF value; the presets and the
first golden fixture wait for S5;
- the rest of H-13;
- Qodana's false Rust results (S10-M1…M4), report-only meanwhile.
@@ -102,7 +105,8 @@ Open:
| 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 |
| Default KDF preset values | S5 (low-end run deferred; D-49) |
| First golden fixture, and so M1's exit | S5 (D-49) |
| PRF extension, conditional-mediation hand-over | S6 |
| Windows Hello unlock | S7 |
| In-app update from the release host | S9 |
@@ -115,10 +119,10 @@ Open:
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-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.
(2026-12-02), D-32 (2026-12-05) and D-49 (2026-12-06). 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
@@ -180,6 +184,7 @@ before that fixture.
| 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 |
| D-49 | **Part of M1 starts before S5 passes** (§6 q18, option b). S5 stays partial. Its remaining runs wait until a low-end machine is available: the low-end Argon2id run (S5-M1, S5-M2, S5b-M2), the VM power-cut test (S5b-M3) and Miri.<br>• M1 may start with work that fixes no format or KDF value: the workspace crates, `mv-core`, the `deny.toml` exception, `+crt-static` and `cargo xtask kill-test`.<br>• Three things wait for S5: the KDF preset values (doc 04 §5), the field-box regression vector and the first golden fixture. M1's exit waits too, since its criterion is golden fixture v0.<br>• §1's rule is relaxed for this work only. | 04, 05, 17 |
## 6. Open actions
@@ -277,7 +282,7 @@ 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
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
@@ -285,7 +290,8 @@ before that fixture.
`+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.
write-through stays. But it reads §1 loosely.~~ **Decided 2026-12-06: D-49**, option
(b). S5's remaining runs are deferred until a low-end machine is available.
## 7. Out of scope, on purpose
+12 -3
View File
@@ -23,8 +23,14 @@
rules are written down (findings B2–B6; D-34, D-35).
- **Quiet re-run done** (2026-12-06, no compiler running): the Argon2id timings below
replace the busy ones, and the kill test passed again (6 × 1,000 kills, 0 corrupt,
0 missing; S5b-M1). **Open:** the low-end Argon2id run (S5-M1, S5-M2); the VM
power-cut test (S5b-M3); Miri (the PC has no nightly toolchain).
0 missing; S5b-M1).
- **Deferred** (D-49, 2026-12-06) until a low-end machine is available:
- the low-end Argon2id run (S5-M1, S5-M2);
- the VM power-cut test (S5b-M3);
- Miri (the PC has no nightly toolchain).
Meanwhile M1 starts with work that fixes no format or KDF value. The presets and the
first golden fixture wait for these runs.
- **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) and approved by Kokone the same day.
@@ -84,7 +90,7 @@
| Hostile parameters before any KDF work | **Pass** | 8 out-of-range sets, each rejected in under 50 ms |
| Golden fixtures | **Not applicable yet** | No released version; v0 at M1 |
| Argon2id timing, dev PC | **Pass** | Quiet re-run, 2026-12-06; table below |
| Argon2id timing, low-end machine | **Open** | S5-M1, S5-M2 |
| Argon2id timing, low-end machine | **Deferred** (D-49) | S5-M1, S5-M2; no low-end machine yet |
| Lane threading determined | **Pass** | Source and measurements (finding A1); KATs pass with `parallel` |
| 1,000-iteration kill-during-save never corrupts | **Pass** | Final run 6 × 1,000 (large, small × link, copy, atomic): 2,769 old, 3,231 new, **0 corrupt, 0 missing**. First run 4 × 1,000: 0 corrupt, 0 missing. Stall test: 220 kills, each as expected. Quiet re-run (2026-12-06): 6 × 1,000, 2,662 old, 3,338 new, **0 corrupt, 0 missing**; stall test 110 kills, each as expected |
| Leftover temp and lock files handled | Done | Findings B4, B5 |
@@ -381,6 +387,9 @@ quick kill-test step in `ci.yml` (doc 15 §4). D-39…D-43 are written into docs
## Manual checklist (Kokone)
S5-M1, S5-M2, S5b-M2 and S5b-M3 are deferred (D-49): no low-end machine is available
yet. They must be done before the first golden fixture.
| # | Check | Expected |
|---|---|---|
| S5-M1 | On a low-end Windows PC (dual or quad core, 4–8 GB, ideally without AVX2), follow `spikes/s5a-crypto-core/RUN-ON-LOW-END.md`: run both exes and `measure-lanes.ps1`, send back the three CSV files and notes | Every configuration finishes; the CSV records CPU, cores, RAM and `avx2`. Standard well under 2 s; over 2 s makes doc 04 §5's "offer to lower memory" path real |