docs: M0 spike results, gpui-kit 0.12.0 and decisions D-32...D-48 #7

Merged
poli0981 merged 9 commits from docs/m0-spikes into main 2026-12-05 23:01:49 +00:00
Owner

Summary

Results of the remaining M0 spikes, run in parallel on 2026-12-05/06, and the doc changes they drive.

  • Verdicts: S1b pass (gpui-kit 0.12.0, gpui-pre; D-33). S4 pass (Chrome, Edge, Firefox, Brave; D-48). S2, S3, S5 and S10 partial: what is left is the manual checklist in each report.
  • gpui-kit 0.10.0 → 0.12.0 in doc 02 and the notices; the xxhash-rust BSL-1.0 exception is approved.
  • Decisions D-32…D-48 in doc 17 §5. D-34…D-38 are spike proposals. D-39…D-48 were chosen under the delegation of 2026-12-06 and are flagged for review. D-39 (format encodings) needs a human read before the first golden fixture (M1). No primitive, KDF parameter or nonce scheme changes; D-39 pins encodings that docs 04 and 05 left open.
  • Layout: doc 15 split into 15_BUILD_CI.md and 18_RELEASE_DISTRIBUTION.md; spike reports moved to docs/spike-reports/; every doc ≤ 450 lines.
  • Changelog: the root CHANGELOG.md is an index; release notes live in changelog/beta/beta-0.N.md and changelog/v1/ (betas are 0.x; D-32).
  • Quiet re-run (2026-12-06, no compiler running) of the non-GUI measurements: S5 Argon2id (Standard 88 ms), the kill test (6 × 1,000 kills, 0 corrupt, 0 missing), save timings, and the S4 driver.

Review guide

  1. docs/17_SPIKES_ROADMAP.md §2.1 (verdicts), §4 (gates), §5 (decision log), §6 (open actions and questions).
  2. docs/spike-reports/*.md: one per spike, each with a verdict, findings and a manual checklist.
  3. The docs each decision touches (the "Affects" column of §5), especially 04 and 05 for D-39 and D-40.

CI

Docs and comments only: no code, workflow, lockfile or dependency manifest changes. qodana.yaml and rust-toolchain.toml change only in comments. CI should pass unchanged.

Still open (maintainer)

  • Review D-34…D-48; read D-39 against docs 04 and 05 before M1.
  • Manual checklists: S2-M1…M12, S3-M1…M9, S4-M1…M6, S5-M1/M2, S5b-M2…M4, S10-M1…M5.
  • GUI re-runs: S1b run-all.ps1, S2 soaks, S3 SendInput, S4 browsers (S4-M5).
  • S10-M1 needs approval for a ~6 GB Qodana image pull.

No secrets or repository settings to create.

🤖 Generated with Claude Code

## Summary Results of the remaining M0 spikes, run in parallel on 2026-12-05/06, and the doc changes they drive. - **Verdicts:** S1b pass (gpui-kit 0.12.0, `gpui-pre`; D-33). S4 pass (Chrome, Edge, Firefox, Brave; D-48). S2, S3, S5 and S10 partial: what is left is the manual checklist in each report. - **gpui-kit 0.10.0 → 0.12.0** in doc 02 and the notices; the `xxhash-rust` BSL-1.0 exception is approved. - **Decisions D-32…D-48** in doc 17 §5. D-34…D-38 are spike proposals. D-39…D-48 were chosen under the delegation of 2026-12-06 and are flagged for review. **D-39 (format encodings) needs a human read before the first golden fixture (M1).** No primitive, KDF parameter or nonce scheme changes; D-39 pins encodings that docs 04 and 05 left open. - **Layout:** doc 15 split into `15_BUILD_CI.md` and `18_RELEASE_DISTRIBUTION.md`; spike reports moved to `docs/spike-reports/`; every doc ≤ 450 lines. - **Changelog:** the root `CHANGELOG.md` is an index; release notes live in `changelog/beta/beta-0.N.md` and `changelog/v1/` (betas are 0.x; D-32). - **Quiet re-run** (2026-12-06, no compiler running) of the non-GUI measurements: S5 Argon2id (Standard 88 ms), the kill test (6 × 1,000 kills, 0 corrupt, 0 missing), save timings, and the S4 driver. ## Review guide 1. `docs/17_SPIKES_ROADMAP.md` §2.1 (verdicts), §4 (gates), §5 (decision log), §6 (open actions and questions). 2. `docs/spike-reports/*.md`: one per spike, each with a verdict, findings and a manual checklist. 3. The docs each decision touches (the "Affects" column of §5), especially 04 and 05 for D-39 and D-40. ## CI Docs and comments only: no code, workflow, lockfile or dependency manifest changes. `qodana.yaml` and `rust-toolchain.toml` change only in comments. CI should pass unchanged. ## Still open (maintainer) - Review D-34…D-48; read D-39 against docs 04 and 05 before M1. - Manual checklists: S2-M1…M12, S3-M1…M9, S4-M1…M6, S5-M1/M2, S5b-M2…M4, S10-M1…M5. - GUI re-runs: S1b `run-all.ps1`, S2 soaks, S3 SendInput, S4 browsers (S4-M5). - S10-M1 needs approval for a ~6 GB Qodana image pull. No secrets or repository settings to create. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
poli0981 added 9 commits 2026-12-05 22:45:18 +00:00
Doc 15 had grown to 525 lines. It now keeps build, CI and the Git workflow
(sections 1-5, with the old section 14 as section 6) and is renamed
15_BUILD_CI.md. Packaging, signing, extension release, versioning, the
release checklist, reproducibility, distribution channels and the
Microsoft Store move to the new doc 18 (old sections 6-13 become 1-8).
Every reference in the docs, CLAUDE.md, README, CONTRIBUTING and config
comments points at the new place.

Doc 17 would pass the length limit once the S2-S5 results arrive, so
spike results now live in docs/spike-reports/, one file per spike, and
doc 17 section 2.1 is their index. The S1 result moves there unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The root CHANGELOG.md becomes an index: a table of release series, the
file layout and the rules for writing entries. Release notes live in
changelog/beta/beta-0.<minor>.md, one file per beta series, and in
changelog/v1/v1.<minor>.<patch>.md, one file per stable release.
Unreleased work is written straight into the next release's file, so the
existing entries move to changelog/beta/beta-0.1.md under [Unreleased].

D-32 (Kokone, 2026-12-05): the public beta is numbered 0.1.0 and every
release before 1.0.0 is a 0.x.y release on the beta channel; this
replaces the v1.0.0-beta.N tags. Doc 18 section 4 and the release
checklist, the tag rule in doc 15 section 6.4 and milestone M5 follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Five local runs with the CI image (qodana-rust 2026.3-eap, digest
b7338b92...) all gave the same 48 results: 47 false type errors in xtask
and one expected warning about the git-ignored spikes directory. The
planned fix, installing the toolchain in the bootstrap, changed nothing,
and neither did the toolchain version or the edition.

The IDE does attach the standard library; SDKs.json lists no Rust std
for any project, so its empty roots were a false lead. What is missing
is the set of items core and alloc generate with macros. The next tests
are the GA image (a 6 GB pull for the maintainer to approve) and a
volume-backed cache. Qodana stays report-only and the Cloud baseline is
not reset.

The S10 report (with the 2026-12-02 data moved out of doc 17) is
docs/spike-reports/S10_QUALITY_PIPELINE.md; docs 02, 14, 15 and 17 and
the qodana.yaml comment follow it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The version check found gpui-kit 0.12.0 (2026-11-30; gpui-pre 0.3.15),
two releases past the 0.10.0 that S1 measured. Spike S1b rebuilt S1's
shell on it: no source change, clippy clean, the UI Automation
pre-check matches S1 in EN, VI and JA, scrolling and start-up hold, and
idle private memory is about 17 MiB lower. S1's eight findings and
D-31's four conditions are unchanged.

One licence changes: gpui-component 0.12.0 pulls xxhash-rust (BSL-1.0)
through notify 9. Doc 02 gets a licence-exception table (2.7) with it as
proposed; deny.toml gains the exception only with the change that adds
gpui-kit to the workspace, after the maintainer approves it.

Also: the backend stays gpui-pre (never gpui-fast); no spell checker on
vault fields; LiveRegion for announcements; Windows still ignores the
text-scale hook; D-05 becomes version-neutral; R-01 gains the weekly
release cadence and the S1b gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
S5 ran in two parts (2026-12-05/06). Every independent known-answer test
for the crypto core passes; the field-box vector waits on the AAD_field
encoding. argon2 0.6.0 runs lanes on one thread unless its parallel
feature is on. The save pipeline survived 10,000 random and 220
fixed-point kills with no corrupt or missing vault, but copying the
backup straight into its final name left an unopenable backup after
about 80 % of the kills in that step.

- Add docs/spike-reports/S5_CRYPTO_FORMAT.md: verdict partial, setup,
  measurements, findings, the crypto and format choices left open, the
  manual checklist (S5-M1/M2, S5b-M1...M4) and re-run commands.
- Doc 05: hard-link backups with a flushed-copy fallback (D-34), the
  leftover rule (D-35), lock retry, read-only files, sidecar after the
  replace; preliminary I/O numbers.
- Doc 03: the atomic replace is injected into mv-vault (D-36); sidecar
  path. Doc 14 and doc 15: cargo xtask kill-test and the VM power-cut
  test (D-37).
- Doc 04: lane answer, preliminary timings, caller-owned and wiped KDF
  memory, decoder copies, S5 column in the verification table. Docs 02,
  06, 07: crate features, byte strings, TOTP short secrets, temp files.
- Doc 17: S5 row, D-34...D-37 (proposed, flagged for review), q2
  answered, q13 (open crypto and format choices) and q14.

Nothing in the vault format, KDF parameters or crypto constructions is
decided here; where doc 04 or 05 leaves an encoding open, the docs now
point to q13.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs: record spike S3, SecureInput on GPUI
CI / ci-ok (push) Skipped
Security / workflow-lint (push) Skipped
95e3820652
S3 (2026-12-05/06) built SecureInput as a custom GPUI element on
gpui-kit 0.12.0. In six memory scans no copy of a typed password, whole
or as any run of six characters, was found outside its zeroising buffer;
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 detaches the window's IME context while it has focus. That is
what Microsoft prescribes for password fields, and needs no unsafe, no
OS call and no new crate. The IME, suggestion, paste, Caps Lock, mouse
and Narrator checks by hand (S3-M1...M9) are open.

- Add docs/spike-reports/S3_SECURE_INPUT.md.
- Doc 12 §4: SecureInput as built; paste and keystroke-hook input
  methods become open questions.
- Doc 10: new §11 (secret text entry), page-locked buffer in §8.
- Docs 04 §10, 07 §5/§6, 02: one-character residue, RR-2 limited to
  reveal, no new crate, windows features for the paste read.
- Doc 17: S3 row, D-38 (proposed, flagged for review), q15-q17.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kokone ran S1b's manual checklist on 2026-12-06: S1b-M1...M6 give the
same results as S1 on gpui-kit 0.10.0. Kokone also approved D-33 and the
crate-scoped licence exception for xxhash-rust (BSL-1.0), which arrives
through gpui-component 0.12.0 and notify 9.0.0.

- S1b report: verdict pass, criteria rows and checklist result.
- Doc 02 §2.7: the exception is approved; it enters deny.toml with the
  change that brings gpui-kit into the workspace (M1).
- Doc 17: S1b row, D-33 and the decision-log note.
- Changelog: the gpui-kit entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs: record spikes S2 and S4; settle the open spike choices (D-39...D-48)
CI / ci-ok (push) Skipped
Security / workflow-lint (push) Skipped
c965aa6e42
S2 (tray, hotkey, single instance, autostart) is partial: every automated
clause passes, 12,267 events with none missed or duplicated; the hour of
use and the visual checks by hand (S2-M1...M12) are open. S4 (native
messaging) passes on Chrome, Edge, Firefox and Brave; Vivaldi is untested.

On 2026-12-06 Kokone delegated the choices the spikes left open. The
options chosen are the most conservative ones the spikes support, and
every one is flagged for review:
- D-39 format encodings: AAD_slot (88 bytes, LE), AAD_field (u64 field
  id, credential id for passkey boxes), box layout, HKDF argument order
  and salts, kdf_id 0, flags and limit errors, padding. They become the
  format contract with the first golden fixture; a human reads
  mv-crypto and mv-vault against them before that.
- D-40 key derivation: argon2 parallel off, calibration unchanged and
  docs 00/05 aligned to doc 04, KDF memory page-locked best-effort,
  password length in code points after NFKC, unassigned code points
  refused when a password is set.
- D-41 static C runtime; D-42 short TOTP secrets accepted; D-43
  save-pipeline details (restore counter, sidecar notice and file hash,
  leftover notice, 2 s sharing-violation retry, retention, fs4 and
  tempfile dropped); D-44 SecureInput paste and input-method hints;
  D-45 cargo xtask ui-smoke.
- D-46 tray and hotkey on GPUI's main thread, close to tray goes
  headless, explicit foreground, no default hotkey, Store start-up
  activation; D-47 session-scoped pipe name, listener before the window,
  identity checks both ways, pipe in mv-platform without interprocess;
  D-48 browser integration: Brave at P0, exactly three registry keys,
  host never parents the app, one long-lived port, size checks.

Docs: S2 and S4 reports; docs 00, 02, 03, 04, 05, 06, 07, 08, 10, 11,
12, 14, 15, 17, 18; S3 and S5 reports; changelog; the seed notices
(gpui-kit 0.12.0; interprocess, fs4 and tempfile removed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs: record the quiet re-run of spikes S5 and S4
CI / ci-ok (push) Skipped
Security / workflow-lint (push) Skipped
Reusable / Security / Secrets (gitleaks) (pull_request) Successful in 12s
Reusable / Security / .NET (NuGetAudit) (pull_request) Skipped
Security / workflow-lint (pull_request) Successful in 26s
CI / Windows · clippy, tests (pull_request) Successful in 36s
Reusable / Security / Dependencies (osv-scanner) (pull_request) Successful in 15s
Reusable / Security / SAST (Opengrep) (pull_request) Successful in 28s
CI / Linux · fmt, clippy, rules, tests, coverage (pull_request) Successful in 42s
CI / ci-ok (pull_request) Successful in 3s
Reusable / Security / Rust (cargo-deny) (pull_request) Successful in 37s
Security / scan (pull_request) Successful in 1m19s
a5c42c98e3
Re-ran the non-GUI measurements on 2026-12-06 with no compiler running
before or after.

S5: Argon2id medians are 10-28 % lower than the busy run (Standard
88 ms by default, 44 ms with `parallel`; the calibration cap 270 ms),
so the conclusions and D-40 stand. The kill test passed again: 6 x
1,000 kills, 0 corrupt, 0 missing; copy mode still breaks backups,
link and atomic do not (S5b-M1 done). Large save p50 is 57.9 ms on an
idle drive and 91.9 ms when run straight after the kill test: fsync of
5 MiB ranged 3.5-59.5 ms while the CPU steps stayed fixed.

S4: the driver re-run gives the same security, limit and lifecycle
results with slightly lower latencies; the browser re-run (S4-M5)
remains.

Docs 04 §5, 05 §9 and 17 §2.1 and the beta 0.1 changelog carry the
new figures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
poli0981 merged commit 1ab2b64a7f into main 2026-12-05 23:01:49 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: poli0981/mutevault#7