0019 · Name: Lacre becomes Klav
- Status: accepted
- Date: 2026-11-03
Context
The project started out as Lacre. Omar chose a new name, Klav. Nothing is published (no packages, no extension in the stores, no app on TestFlight) and there are no users, and the app identifiers don't exist yet in the Apple Developer Portal. Several format strings carry the name inside them (domain separation labels, key and token prefixes, the OPAQUE suite); changing them after launch would mean keeping both forms forever. Right now it costs nothing.
Decision
Rename everything in a single change, without touching any algorithm, parameter or byte layout (names only):
- Crates, binaries and paths:
crates/lacre-*→crates/klav-*(klav-core,klav-proto,klav-server,klav-client,klav-cli,klav-daemon,klav-touchid,klav-sdk,klav-wasm,klav-ffi); binariesklav,klavd,klav-serverandklav-native-host; directory~/.klav; socketklavd.sock; environment variablesKLAV_*; referencesklav://…. - Formats (spec §14, 2026-11-03):
- All
lacre/v1/…labels becomeklav/v1/…and the OPAQUE suite becomesklav-opaque-v1. - Secret Key: prefix
L1→K1(Kfor Klav,1for the version).Kis in the RFC 4648 base32 alphabet just likeL, and the prefix is validated before the body is read, so the design (checksum, mapping of0/1/8) doesn't change. - Agent private key:
lak1_→kag1_(klav, agent, version 1). It keeps the<producto><tipo><versión>_shape and the 5 characters;kak1_, the direct equivalent, was rejected because in Spanish it reads as "caca" (poo) on every kit and in every log. - Session tokens:
lat_/lrt_→kat_/krt_(thelwas for Lacre). - Agent headers
Klav-Agent,Klav-Timestamp,Klav-NonceandKlav-Signature. - The vectors in
docs/vectores/are regenerated withKLAV_REGEN_VECTORS=1(the RFC 9180 one only changes its description).
- All
- Platform identifiers: native messaging
dev.klav.host; Firefox add-on[email protected]; Keychaindev.klav.agent; iOS appdev.klav.ios, extensiondev.klav.ios.credentials, App Groupgroup.dev.klav.ios; launchddev.klav.klavd; packages@klav/sdkand@klav/extension. The Chromium extension ID doesn't change: it comes from the development key, not from the name. - Visual identity: the wax seal stays; its letter changes from "L" to "K" and the extension icons, the app icon and the screenshots in
docs/img/extensionare regenerated. Thelacre*color tokens becomeklav*. (Superseded the same day in the extension by the visual direction indiseno-visual: the wax seal is retired and the pixel key takes its place.) - Earlier ADRs (one-time exception): in ADRs 0001–0018 only a mechanical rename of identifiers, paths, links and the product name is applied (including the file names
0007-crate-klav-proto.mdand0012-daemon-klavd.md). No decision changes in content; the prefixes they cite (kag1_in 0014) are the new ones because this ADR decides them. The immutability rule still holds for everything else.
Consequences
- Any test installation with the old name (
~/.lacre,lacred, accounts, agents, Keychain keys withdev.lacre.*, native hostdev.lacre.host) stops working: it has to be created again. Data encrypted with the old labels doesn't open with the new ones, on purpose. - The Apple IDs hadn't been created yet, so nothing is lost: they are created directly with
dev.klav.*. - Pending for Omar: rename the GitHub repository to
klav(GitHub redirects the old URL) and register theklav.devdomain, which the Firefox add-on ID uses.