diff --git a/Home.md b/Home.md index 0937381..1d4ef41 100644 --- a/Home.md +++ b/Home.md @@ -147,7 +147,7 @@ Security issues: see [SECURITY.md](https://git.faumaray.com/Voelin/VoelinClient/ ## Documentation pages -Mirror of `docs/` on `main` (`2e985d7`). The repository files are the source; this wiki is regenerated by `.claude/wiki-sync.js`. +Mirror of `docs/` on `main` (`439a47f`). The repository files are the source; this wiki is regenerated by `.claude/wiki-sync.js`. - [android.md](android): Android app - [architecture.md](architecture): Architecture diff --git a/android.md b/android.md index 7003b1a..805ec39 100644 --- a/android.md +++ b/android.md @@ -237,4 +237,4 @@ the source then says why). --- -*Mirrored from [`docs/android.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/android.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/android.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/android.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/architecture.md b/architecture.md index 84bfdb8..2a4e847 100644 --- a/architecture.md +++ b/architecture.md @@ -419,33 +419,93 @@ A row whose binding columns cannot be read is listed and read as unbound, with a warning, instead of failing the list; so no damaged row, the account record's included, keeps a sign-out from finishing, and `Forget` still deletes the key it names. -Signing out of an account is the trait's `sign_out`, run on this table: it -removes the account record and the synced copies, unbinds the identities only -this device holds, keeps the device key (unbound, byte for byte) when the -record says it predates the account, and deletes it when it does not or when -the caller asks to forget it. The engine and the UI do not use the key store -yet; accounts, sign-in and the integrations page are later steps. +Signing out of an account is the trait's `sign_out`, run on this table, and it +keeps every key (Phase 2 task 34 of the protocol repository, open question 10 +of its accounts design, answered by the owner on 2026-10-24). The device key +stays, unbound and byte for byte, whether it was in use before the account +existed or the client made it for the account: at every host without accounts +that the user reached with it, it is the user's identity, and deleting it would +lose their servers, roles and memberships there. +`AccountRecord.bound_existing_key` stays in the record for the client's wording, +and no rule reads it. The sign-out unbinds the identities only this device holds +and deletes what is not a key of the device: the account record, and the synced +copies of integration secrets, which the account service holds. It does not +release the device key at the service. The engine and the UI do not use the key +store yet; accounts, sign-in and the integrations page are later steps. -The device key is never a synced copy. The trait's `sign_out` deletes every -identity bound with `synced = true` in its first step, before it reads the -record, so a device key stored that way would be deleted even where the record -says to keep it. `SqliteKeyStore` therefore refuses, with an error that names -the key and the record, a `put` of a `voelin` blob with `synced = true` while an -account record names its uid as the device key, or while an account record -cannot be read (it may name the key); and a `put` of an account record whose -device key is stored as a synced copy. A key bound with `synced = false` is -accepted: a sign-out unbinds it and then follows the record. The check is made -under the store's lock; it is defence in depth against the code that signs in, -which does not exist yet. +The three parts of open question 10, and what each asks of the store and of the +client: + +1. **A sign-out keeps every device key.** The only deletion of a key of the + device is "Forget this device's identity", the user's explicit choice, after + an offer to export the key. Signed in, it is a sign-out with + `DeviceKeyChoice::Forget(uid)` (the key goes before the record is read, so an + unreadable record does not keep it); signed out, it is `KeyStore::remove` of + the key, and for a TeamSpeak identity `Store::delete_identity`. The store has + no export call: the UI reads the bytes first, a Voelin key with + `KeyStore::voelin_key` and `IdentityKey::to_pkcs8`, a TeamSpeak identity with + `Store::identity` and `ts::identity::export`. +2. **A device key can be released from its account**, so that it can serve + another account. Releasing is the account service's operation + (`AccountClient::release`: `POST /v1/devices//release`, after a password + check) followed by the same local sign-out with `Auto`, which keeps the key, + unbound. The store has nothing to add and the client remembers nothing of the + release: the service holds the registration of the key, and a sign-in or a + sign-up refused with `CONFLICT`, field `device`, is how the client learns + that the key is still registered with an account it signed out of. +3. **The deletion of an account releases every device key of it.** The service + writes a DEVICE and a RELEASED entry for each key, the hosts that adopted a + key end their record of it at their next poll, and the account's users on + them stay the deleted account's, out of reach for good: nobody inherits them, + neither a key nor another account. The local half is + `AccountClient::delete_account(choice)`, the same sign-out: this device's key + is kept with `Auto`. + +What the screens owe, as duties of the GPUI client (they do not exist yet; the +acceptance of the task in the protocol repository names the fixtures): + +- The sign-out dialog says what is kept: "This device's identity stays on this + device. Servers that do not use accounts still know you by it. Choose 'Forget + this device's identity' to delete it (you can export it first)." Forgetting is + a separate, explicit choice there, with the export offered before it. +- Settings → Account offers "Release this device's identity from the account", + apart from signing out: the password first (`AccountClient::reauth`), then + `release`, then the text of protocol section 13.6 (the key can sign in to, or + up for, another account; a host that adopted it and knows the kind RELEASED + accepts it after its next poll, within five minutes). After a release the + client closes its own account sessions and shows no prompt to sign in again + when a host closes one with code 11; a release whose answer was lost + (`SignedOut`) is finished with a sign-out with `Auto`; a `CONFLICT`, field + `device`, at sign-in or sign-up is explained. +- **The delete-account dialog warns that the servers of the account become + unreachable** (its users on the hosts that adopted its keys stay the deleted + account's, and nobody inherits them) **and offers an export of the device keys + first**, before the deletion is sent: `KeyStore::list` names the `voelin` + rows, and each is read and exported as above. + +The device key is never a synced copy. The trait's `sign_out` keeps the device +key, but its first step deletes every identity bound with `synced = true`, +before it reads the record, so a device key stored that way would be deleted +all the same, whichever way the record says it came. `SqliteKeyStore` therefore +refuses, with an error that names the key and the record, a `put` of a `voelin` +blob with `synced = true` while an account record names its uid as the device +key, or while an account record cannot be read (it may name the key); and a +`put` of an account record whose device key is stored as a synced copy. A key +bound with `synced = false` is accepted: a sign-out unbinds it and keeps it. The +check is made under the store's lock; it is defence in depth against the code +that signs in, which does not exist yet. The rows are private keys, so a deleted key must not stay in the file. Every connection to the database sets `secure_delete`, which makes SQLite overwrite what it deletes, and deleting a key (`Store::delete_identity`, and the -`KeyStore::remove` a sign-out deletes with) is followed by a -`PRAGMA wal_checkpoint(TRUNCATE)`, so that the frame of the write-ahead log that -held the key's page goes too: neither `client.db` nor `client.db-wal` has the -key's text afterwards. A sign-out runs the checkpoint once, after its last step, -not after each row it removes. The checkpoint waits for another connection for +`KeyStore::remove` that forgetting a Voelin key and a sign-out delete with) is +followed by a `PRAGMA wal_checkpoint(TRUNCATE)`, so that the frame of the +write-ahead log that held the key's page goes too: neither `client.db` nor +`client.db-wal` has the key's text afterwards. A sign-out deletes the synced +copies (private keys of TeamSpeak identities), the account record and, when the +user chose to forget it, the device key; it runs the checkpoint once, after its +last step, not after each row it removes, and not at all when it deleted +nothing. The checkpoint waits for another connection for 150 ms at most (the connection's own busy timeout is restored after it), because while it waits for a reader it holds the writer lock of the log and every other writer waits with it. If another connection blocks it (one that keeps reading an @@ -693,4 +753,4 @@ are defined in the core, which reads them on every use. --- -*Mirrored from [`docs/architecture.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/architecture.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/architecture.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/architecture.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/audio.md b/audio.md index 2eaf815..f61eff9 100644 --- a/audio.md +++ b/audio.md @@ -135,4 +135,4 @@ of it reappearing). The audio thread reports these changes as session errors. --- -*Mirrored from [`docs/audio.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/audio.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/audio.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/audio.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/building.md b/building.md index ddd0115..eb8cd6b 100644 --- a/building.md +++ b/building.md @@ -208,4 +208,4 @@ voelin-model = { path = "../VoelinProtocol/crates/voelin-model" } --- -*Mirrored from [`docs/building.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/building.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/building.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/building.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/ci.md b/ci.md index 6142b4b..ba8333d 100644 --- a/ci.md +++ b/ci.md @@ -351,4 +351,4 @@ runner; local shell/API fixtures do not establish deployment acceptance. --- -*Mirrored from [`docs/ci.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/ci.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/ci.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/ci.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/gateway-admin.md b/gateway-admin.md index 0e1e527..8be08d5 100644 --- a/gateway-admin.md +++ b/gateway-admin.md @@ -456,4 +456,4 @@ with what they store locally. --- -*Mirrored from [`docs/gateway-admin.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/gateway-admin.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/gateway-admin.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/gateway-admin.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/gateway-protocol.md b/gateway-protocol.md index 992af49..8d20e43 100644 --- a/gateway-protocol.md +++ b/gateway-protocol.md @@ -194,4 +194,4 @@ for `react`, `pin`, `create_topic`, `create_event`, `rsvp`, `stream`, --- -*Mirrored from [`docs/gateway-protocol.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/gateway-protocol.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/gateway-protocol.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/gateway-protocol.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/i18n.md b/i18n.md index b205fee..b7dedf3 100644 --- a/i18n.md +++ b/i18n.md @@ -141,4 +141,4 @@ therefore the translations. Texts outside Slint need their own mechanism: --- -*Mirrored from [`docs/i18n.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/i18n.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/i18n.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/i18n.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/identity.md b/identity.md index f3e1b26..5d65032 100644 --- a/identity.md +++ b/identity.md @@ -253,4 +253,4 @@ the repository. Every fixture in the tests is generated by --- -*Mirrored from [`docs/identity.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/identity.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/identity.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/identity.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/media.md b/media.md index c86ae80..d6b10e1 100644 --- a/media.md +++ b/media.md @@ -1457,4 +1457,4 @@ has not run on Windows yet. --- -*Mirrored from [`docs/media.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/media.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/media.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/media.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/protocol-notes%2Fts6-streaming.md b/protocol-notes%2Fts6-streaming.md index 8b7e8d8..4f5529f 100644 --- a/protocol-notes%2Fts6-streaming.md +++ b/protocol-notes%2Fts6-streaming.md @@ -426,4 +426,4 @@ itself with these decoders is still to be confirmed. --- -*Mirrored from [`docs/protocol-notes/ts6-streaming.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/protocol-notes/ts6-streaming.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/protocol-notes/ts6-streaming.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/protocol-notes/ts6-streaming.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/release.md b/release.md index 6ca9dc8..07a2be1 100644 --- a/release.md +++ b/release.md @@ -238,4 +238,4 @@ After: --- -*Mirrored from [`docs/release.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/release.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/release.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/release.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/research%2Fmyteamspeak.md b/research%2Fmyteamspeak.md index 30e1a98..87d889f 100644 --- a/research%2Fmyteamspeak.md +++ b/research%2Fmyteamspeak.md @@ -423,4 +423,4 @@ Voelin does needs them. --- -*Mirrored from [`docs/research/myteamspeak.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/research/myteamspeak.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/research/myteamspeak.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/research/myteamspeak.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/research%2Fstream-fps.md b/research%2Fstream-fps.md index 522c9a0..17647d5 100644 --- a/research%2Fstream-fps.md +++ b/research%2Fstream-fps.md @@ -82,4 +82,4 @@ repository. --- -*Mirrored from [`docs/research/stream-fps.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/research/stream-fps.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/research/stream-fps.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/research/stream-fps.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/research%2Fts6-late-join.md b/research%2Fts6-late-join.md index cea29d7..9ff7221 100644 --- a/research%2Fts6-late-join.md +++ b/research%2Fts6-late-join.md @@ -239,4 +239,4 @@ between Voelin clients. --- -*Mirrored from [`docs/research/ts6-late-join.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/research/ts6-late-join.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/research/ts6-late-join.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/research/ts6-late-join.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/research%2Fui-review.md b/research%2Fui-review.md index 05276fc..8b79272 100644 --- a/research%2Fui-review.md +++ b/research%2Fui-review.md @@ -349,4 +349,4 @@ Discord: --- -*Mirrored from [`docs/research/ui-review.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/research/ui-review.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/research/ui-review.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/research/ui-review.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/session-seam.md b/session-seam.md index a4e841a..75595d0 100644 --- a/session-seam.md +++ b/session-seam.md @@ -19,7 +19,8 @@ here; section 11 lists what it has to do. Read for this design: `crates/voelin-core/src/link.rs`, `ts_link.rs`, `voice.rs`, `book.rs`, `stream.rs`, `files.rs`, `session.rs` (its use of the link), `tests/link_fake.rs`, `voelin-audio/src/packet.rs`; and in -VoelinProtocol (main `c8e0e5a`) `crates/voelin-proto/src/link.rs`, +VoelinProtocol (main at the pin of that round; moved to `c5bb6b9` by task 34) +`crates/voelin-proto/src/link.rs`, `media.rs` with `media/`, `test_util/` (FakeHost, FakeSession, FakeConnector, FakeAccountAgent, the conformance suite), `proto/voelin/v1/*.proto`, `crates/voelin-model/src/replica/` and @@ -789,8 +790,8 @@ against this record, not against an assumption. ### Slice 1: the adapter 1. **Protocol crates at one revision.** `voelin-identity`, `voelin-proto` - and `voelin-model` from VoelinProtocol at one rev (main `c8e0e5a` or - later: it has `AccountAgent`, `IssuerTrust`, `Credential::Account`; + and `voelin-model` from VoelinProtocol at one rev (the main of the seam + round or later: it has `AccountAgent`, `IssuerTrust`, `Credential::Account`; `voelin-identity` changed only in `cert.rs` and `revocation.rs` since `64808cc`). `crates/voelin-model` is removed and every crate that used it takes `voelin-model = { workspace = true }` (`voelin-core`, `-ui`, @@ -1217,7 +1218,8 @@ second that works. ### 16.2 The conformance suite **Through the registry.** `the_conformance_suite_passes_on_a_session_of_the_registry` -runs the 17 cases of `c8e0e5a` against the `FakeSession` that +runs the 17 cases of the protocol's suite (still 17, in the same order, at +`c5bb6b9`) against the `FakeSession` that `Backends::connect(params, LocalCtx::standalone())` hands over: 17 of 17 pass, none is skipped. The registry adds nothing to a plain connector's session (`host_uid` is the connector's, there is no stream port), so the @@ -1733,15 +1735,52 @@ were fresh compose projects (`down -v`, `up -d`) for each smoke run. `Command::ObserveGateway` link `ts::identity::to_blob`, `VoiceOptions::client_version` links `ts::versions::resolve`. -- **The same leak in `voelin-store`, not closed.** `Store::identity` and - `Store::identities` read the stored JSON of a TeamSpeak identity with `?`, so - an `Error::Json` whose text is the `serde_json` message, which quotes a key - that does not import, as the gate's minor did in the connector. The rows are - written from a `tsclientlib::Identity` (`add_identity`), so a damaged - database is the only way to such a row; the key store (`keystore.rs`) drops - the parse error for the same reason. `ts::identity::from_json` cannot be - used there (`voelin-core` depends on `voelin-store`); the fix is the same - classification in `voelin-store`, or `from_json` moved down. +- **The key store follows task 34 (`phase4/keystore-task34`).** Open question 10 + of the accounts design (answered by the owner on 2026-10-24) made + `KeyStore::sign_out` keep every device key, and VoelinProtocol `main` + (`c5bb6b9`) has it. `SqliteKeyStore` runs that trait method, so the follow-up + that Phase 2 task 34 leaves to this repository ("Note for VoelinClient") is + the pin of the three protocol crates, the tests that asserted the deletion + of a key made for the account (now kept, unbound, byte for byte; only + `DeviceKeyChoice::Forget` deletes a key of the device), and the documents: + `keystore.rs` and `docs/architecture.md`, "Identities", which has the three + parts of the question and the duties of the GPUI client (the sign-out + dialog's wording with "Forget this device's identity" and an export first, + the release in Settings → Account, and the delete-account dialog, which + warns that the account's servers become unreachable and offers an export of + the device keys first). A sign-out still deletes the synced copies and the + account record, so `SignOutPass` stays for their one checkpoint, and the + refusal of a device key stored as a synced copy stays, with its reason + reworded: the sign-out keeps the key but deletes every synced copy before it + reads the record. The store gained no release call and no "released" record: + `AccountClient::release` ends in `sign_out` with `Auto`, and the design asks + the client to remember nothing of a release. A note for VoelinProtocol, not + fixed here: when the device key's own row carries a device-only binding, the + trait's provided `sign_out` lists the key twice in `SignOut.unbound` (once in + its loop over the identities bound to the account, once in the `Auto` branch), + which the tests of this repository do not mind (they use `contains`) and which + is a follow-up for the protocol repository. +- **The same leak in `voelin-store`, closed in `phase4/keystore-task34`.** + `Store::identity` and `Store::identities` read the stored JSON of a + TeamSpeak identity with `?`, so an `Error::Json` whose text is the + `serde_json` message, which quotes a key that does not import, as the gate's + minor did in the connector. The rows are written from a + `tsclientlib::Identity` (`add_identity`), so a damaged database is the only + way to such a row. `ts::identity::from_json` cannot be used there + (`voelin-core` depends on `voelin-store`), so the same classification is in + `voelin-store` (`identity_from_json`): the new `Error::Identity { damage, + line, column }` says malformed, cut short, not an identity or unreadable + (`IdentityDamage`), and where, and never the text. The key store + (`keystore.rs`) was checked line by line and does not leak: `check_teamspeak` + and `Columns::level` drop the parse error (`let Ok(..) else` and `map_or`), + and the binding warning names the row's kind and uid, not its data. A test + with six damaged rows (a key that does not import, a field of the wrong type, + syntax, a cut text, bytes that are no UTF-8 as a BLOB and as TEXT) calls + everything of the store and of the key store that reads or writes the row and + looks through the errors (text, `Debug` and sources) and the logs at TRACE for + any 8 characters in a row of what the row held + (`crates/voelin-store/tests/identity_text.rs`); it fails with the reader's + message put back. - The bookmark tests of `link/connect.rs` that still sit in `ts/ts_session/mod.rs` (17.2) belong next to it. - `QueryLogin.allowlisted` goes with the query observer (H5), which becomes a @@ -1795,7 +1834,8 @@ changes). `Cargo.lock`, `Cargo.toml`, `README.md`, `docs/ui.md`, `crates/voelin-ui/Cargo.toml`, `app.rs` and `servers.rs` merged without a conflict: the lock resolves with `--locked`, and its difference to `main`'s is the branch's alone (the edges of `voelin-core` to `voelin-identity` and -`voelin-proto`, the revision `c8e0e5a` of the three protocol crates, and +`voelin-proto`, the revision of the three protocol crates that the branch +pinned (since moved to `c5bb6b9` by task 34), and `voelin-model` as a git package). `CHANGELOG.md` is `main`'s entry (`voelin-ui-vm`); the branch adds none (17.1), and still needs none: nothing of this round is visible to a user. @@ -1815,7 +1855,7 @@ included. |---|---| | `cargo fmt $(scripts/own-crates.sh) -- --check` | 1.94: clean at the head and at every commit (the merge first differed by the order of one `use` in `voelin-ui-vm`, fixed in the merge commit). Nightly: five files, the baseline's six without `voelin-ui/src/studio.rs`, which `main`'s split removed (`voelin-core/src/history.rs`, `voelin-media/src/ffmpeg/encoder.rs`, `voelin-stream/src/discovery.rs`, `voelin-ui/src/chat.rs`, `tools/voelinctl/src/engine.rs`); `voelin-ui-vm` is clean on both. | | `cargo clippy $(scripts/own-crates.sh) --all-targets --no-deps --locked -- -D warnings` | 1.94: clean at the merge (and `-p voelin-ui` alone) and at the head. Each of the five new commits was checked out detached in this worktree and passes `fmt` and `clippy`: the merge on all own crates and on `-p voelin-ui` alone, the four others on `-p voelin-core -p voelin-store`. Nightly, `-p voelin-core --all-targets`: the same five errors as in 17.5 (`result_large_err` of `shutdown_connection` in `ts/voice.rs`, four `chunks_exact` in `audio.rs`), none in new code. | -| `cargo test -p voelin-core --locked --no-fail-fast` | At the head, 1.94 and nightly: 246 lib tests pass (244 + the two of this round), 2 are ignored, 2 fail, the two of the baseline (`discover::tests::without_records_the_gateway_itself_is_asked`, `web::tests::pictures_go_through_the_proxy_named_for_each_hop`: `localhost` resolves to `::1` only here); the integration tests pass (`session_fake` 19 and 2 ignored, the others as in 17.5). At the merge, before the minors: 244, the same two, and the integration numbers of 17.5. `cargo test -p voelin-ui -p voelin-ui-vm -p voelinctl`: 35, 146 and 7 pass. `voelin-store` (a comment changed): 31 lib tests and 49 of its integration tests pass, but `store::tests::a_blocked_checkpoint_waits_briefly_and_leaves_the_busy_timeout_as_it_was` failed once, in a run under a load average of 8.5 from other jobs on this machine (it asserts that a checkpoint returned in under a second of wall clock); it passed in five isolated runs and three more runs of the crate; it was not chased (a crate this round left alone). | +| `cargo test -p voelin-core --locked --no-fail-fast` | At the head, 1.94 and nightly: 246 lib tests pass (244 + the two of this round), 2 are ignored, 2 fail, the two of the baseline (`discover::tests::without_records_the_gateway_itself_is_asked`, `web::tests::pictures_go_through_the_proxy_named_for_each_hop`: `localhost` resolves to `::1` only here); the integration tests pass (`session_fake` 19 and 2 ignored, the others as in 17.5). At the merge, before the minors: 244, the same two, and the integration numbers of 17.5. `cargo test -p voelin-ui -p voelin-ui-vm -p voelinctl`: 35, 146 and 7 pass. `voelin-store` (a comment changed): 31 lib tests and 49 of its integration tests pass, but `store::tests::a_blocked_checkpoint_waits_briefly_and_leaves_the_busy_timeout_as_it_was` failed once, in a run under a load average of 8.5 from other jobs on this machine (it asserts that a checkpoint returned in under a second of wall clock); it passed in five isolated runs and three more runs of the crate; it was not chased (a crate this round left alone; the bound was replaced in `phase4/keystore-task34` by a one-hour busy timeout and a 30 s hang detector). | | The lib suite 10 times in a row (1.94) | `cargo test -p voelin-core --lib`: ten runs, each 246 passed, 2 failed, 2 ignored, the same two failing tests every time, the banner test passing every time. The same ten runs with those two tests skipped (`--skip`): exit 0 every time (246 passed, 2 ignored). `session::banner_tests::a_failing_banner_is_logged_once_with_its_address` (17.5 saw it fail once) did not fail in these 20 full runs, so the test is as it was: a fix would be a guess at a cause nobody has seen. | | `RUSTDOCFLAGS='-D warnings' cargo doc --no-deps -p voelin-core` | passes, with and without `--features media-desktop`. | | The acceptance of section 10 | The `rg` is empty from the repository root (`--glob '!**/ts/**'`) and from `crates/voelin-core/src` (`--glob '!ts/**'`), with the four exceptions; `session.rs` names none of `tsclientlib`, `tsproto`, `voelin_query`, `ts_bookkeeping`; the grep of `pub` items outside `ts/` is empty; the rustdoc JSON of `voelin-core` (nightly, `--features media-desktop`; every item of the crate, 5,292 of them, whose type references name `tsclientlib`, `tsproto*`, `ts_bookkeeping`, `voelin_query` or `voelin_observer`) has 11 items with such references, all in `voelin_core::ts` (`to_blob`, `from_blob`, `export`, `write_export`, `improve_level`, `Found::identity`, `resolve`, `native_version`, `KnownVersion::to_version` and the two setters), none elsewhere; `voelin_core::stream` keeps its re-exports; `cargo tree -p voelin-core -e normal` still lists `tsclientlib` and `tsproto*`. | @@ -1923,4 +1963,4 @@ targets included. --- -*Mirrored from [`docs/session-seam.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/session-seam.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/session-seam.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/session-seam.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/studio.md b/studio.md index 5f8b9dd..0c010dd 100644 --- a/studio.md +++ b/studio.md @@ -376,4 +376,4 @@ two threads) takes about 3 ms at its own rate (15 fps by default). --- -*Mirrored from [`docs/studio.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/studio.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/studio.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/studio.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/testing%2Fload.md b/testing%2Fload.md index beacda2..700e964 100644 --- a/testing%2Fload.md +++ b/testing%2Fload.md @@ -262,4 +262,4 @@ What the smoke still does not do reliably, and was not changed for: --- -*Mirrored from [`docs/testing/load.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/testing/load.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/testing/load.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/testing/load.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/testing%2Fmanual-matrix.md b/testing%2Fmanual-matrix.md index 803e8c3..36be38f 100644 --- a/testing%2Fmanual-matrix.md +++ b/testing%2Fmanual-matrix.md @@ -224,4 +224,4 @@ noted. --- -*Mirrored from [`docs/testing/manual-matrix.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/testing/manual-matrix.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/testing/manual-matrix.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/testing/manual-matrix.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/ui.md b/ui.md index 16754c6..bbeea66 100644 --- a/ui.md +++ b/ui.md @@ -991,4 +991,4 @@ renderer; the phone layouts are desktop renders, not Android device tests. --- -*Mirrored from [`docs/ui.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/2e985d793cb48a0bcbec7fa308d1ed28e9b4c566/docs/ui.md) at `2e985d7` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/ui.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/439a47f6564baed87e7a7a832fe7e947ac782e55/docs/ui.md) at `439a47f` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.*