diff --git a/DECISIONS.md b/DECISIONS.md index 8a8553c9..1ac070b2 100644 --- a/DECISIONS.md +++ b/DECISIONS.md @@ -22345,6 +22345,641 @@ and a decision with its call by id, so the second call's row and result would still be ambiguous there. Two calls alike in one reply is a provider fault; showing both runs on their own, in both views, says what is known. +## 2026-11-30 — TD-5420: no secret service, `audit.key_store`, and the export gate (Class B, the manager's decision) + +*Marked 2026-12-01: this entry describes TD-5429's design (branch +`td/5429-folder-key`). What 0.5.14 ships of it is in "TD-5420: the +manager's split", below.* + +The 0.5.14 packaged check: on Linux with no keyring running, `secret-tool` +fails at once ("was not provided by any .service files"). A log upgraded from +0.5.13 never got its chain over its old rows (the keychain cannot say whether +it was chained, so by design no genesis is made), Doctor's audit row stayed +failed, and both exports refused, taking away the usage export those users +had in 0.5.13. + +**Reverted: reading "no secret service" as no keychain.** The first fix +classified that stderr as `KeychainUnavailable`, so the data folder decided. +An independent review rejected it: a keyring that is only unreachable for a +run (no session bus, KeePassXC not yet started) would then mint `audit.key` +and sign with it, and once the keyring was back Doctor reported the rows +"changed" for good. The classification is main's again: an unknown answer +that begins no chain, which heals on the next run that can read the +keychain. The stderr is now `KeychainNoService`, a plain `KeychainError` to +every caller (the audit key's answer `no_service` decides exactly as +`error`), named apart only so Doctor can say what to do. + +**The manager's decision**, quoted: "1. Doctor says it plainly: 'No secret +service is running. Start your keyring once and restart TST Desk, or set +audit.key_store: data_folder.' Also list it under known limits in the notes. +2. Add the opt-in `audit.key_store: data_folder` (the default is the +keychain). It's a deliberate user choice, so it never mints a key by +accident. Document it in the admin guide, and allow the managed policy file +to lock it. 3. Don't take away the export. A chain that hasn't begun because +the key store is unavailable is not tampering. In that case both exports +still work, with the header saying 'integrity: not verified, key store +unavailable since