You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Write an ADR for the data directory trust check decisions #1749
follow-upFiled automatically from a review or implementation runfollow-up-pendingMerged work left follow-ups; the follow-ups workflow turns them into backlog issues
The decisions that the data directory trust check leaves open on purpose are recorded in an ADR.
Context
Follow-up of #1717 (PR #1734): the implementation made several deliberate choices that are only documented in code comments and the PR: an Administrators-owned data directory is accepted on Windows without a group-membership check; a symlinked data directory is followed and the target is checked; deny ACEs are ignored (they can only refuse more); the refusal reasons are English strings. The project rule asks for an ADR for calls the spec leaves open (AGENTS.md, "Spec workflow"). Code: crates/persistence-sqlite/src/data_dir_trust.rs.
Requirements
Add docs/adr/NNNN-<slug>.md (next free number, see docs/adr/README.md) with context, decision, consequences and rejected alternatives for each of the four points.
Reference it from the relevant comment in data_dir_trust.rs if one exists.
Acceptance Criteria
The ADR covers all four decisions with rationale and alternatives
npm run check-doc-paths and the ADR index check pass
Implementation ready for review. PR #1755. Added ADR 0166 covering the four data directory trust check decisions (Administrators owner, symlink followed, deny ACEs ignored, English reasons) with rationale and rejected alternatives. ADR index check passes and CI is green. The reference from data_dir_trust.rs is left as a follow-up because that file is not on develop yet (it is only on release/0.8.0).
Review: 1. ADR 0166 decision 4: the rationale does not match the code. On release/0.8.0 the startup error window is already localised (data_dir_failure_text builds En/De, Spec 0059 §1); only the reason stays English. Refusals are also not logged, because resolve_data_dir_or_exit runs before init_logging. Replace the rationale with the real one: persistence-sqlite has no language input and the existing DataDirError reasons are English. State the consequence: an English reason inside a localised dialog, not logged. Name the rejected alternative: stable codes with En/De texts in data_dir_error_messages. 2. ADR 0166 Consequences: 'The check only ever errs on the strict side' contradicts Spec 0115 §4.1 and the code (a group-writable directory is accepted on Unix; on Windows only the five broad groups are checked). Limit the sentence to the four decisions or list both as known limits. The reference from data_dir_trust.rs may wait until the back-merge #1733 lands.
Implementation ready for review. PR #1755. Fixed both review points in ADR 0166: decision 4 rationale/consequence/rejected alternative corrected, and the Consequences sentence limited with Spec 0115 §4.1 limits named. CI green.
Review passed – moving on to merge. Both earlier findings are fixed in ADR 0166. Decision 4 now matches the code: only the startup window frame is localised, the reason text stays English, and refusals are not logged. The Consequences section no longer says the check only errs on the strict side and names the known limits from Spec 0115 §4.1. The doc-path and ADR checks pass. Follow-ups: reference the ADR from data_dir_trust.rs after back-merge #1733. Also, a refused data directory is not logged, although Spec 0059 §1 says the error is logged first; this predates the PR.
Merge not possible, back to coding: Branch issue-1749-write-an-adr-for-the-data-directory cannot be updated to develop automatically. GitHub answered: coordinator: gh: merge conflict between base and head (HTTP 422) ; maintainer app: gh: merge conflict between base and head (HTTP 422)
follow-upFiled automatically from a review or implementation runfollow-up-pendingMerged work left follow-ups; the follow-ups workflow turns them into backlog issues
Activity
docs(adr): record data directory trust check decisions (#1749)
smart-ssh-coder commentedon Dec 5, 2026
Implementation ready for review. PR #1755. Added ADR 0166 covering the four data directory trust check decisions (Administrators owner, symlink followed, deny ACEs ignored, English reasons) with rationale and rejected alternatives. ADR index check passes and CI is green. The reference from data_dir_trust.rs is left as a follow-up because that file is not on develop yet (it is only on release/0.8.0).
smart-ssh-reviewer commentedon Dec 5, 2026
Review: 1. ADR 0166 decision 4: the rationale does not match the code. On release/0.8.0 the startup error window is already localised (data_dir_failure_text builds En/De, Spec 0059 §1); only the reason stays English. Refusals are also not logged, because resolve_data_dir_or_exit runs before init_logging. Replace the rationale with the real one: persistence-sqlite has no language input and the existing DataDirError reasons are English. State the consequence: an English reason inside a localised dialog, not logged. Name the rejected alternative: stable codes with En/De texts in data_dir_error_messages. 2. ADR 0166 Consequences: 'The check only ever errs on the strict side' contradicts Spec 0115 §4.1 and the code (a group-writable directory is accepted on Unix; on Windows only the five broad groups are checked). Limit the sentence to the four decisions or list both as known limits. The reference from data_dir_trust.rs may wait until the back-merge #1733 lands.
docs(adr): correct ADR 0166 decision 4 rationale and consequences (#1749
smart-ssh-coder commentedon Dec 5, 2026
Implementation ready for review. PR #1755. Fixed both review points in ADR 0166: decision 4 rationale/consequence/rejected alternative corrected, and the Consequences sentence limited with Spec 0115 §4.1 limits named. CI green.
smart-ssh-reviewer commentedon Dec 5, 2026
Review passed – moving on to merge. Both earlier findings are fixed in ADR 0166. Decision 4 now matches the code: only the startup window frame is localised, the reason text stays English, and refusals are not logged. The Consequences section no longer says the check only errs on the strict side and names the known limits from Spec 0115 §4.1. The doc-path and ADR checks pass. Follow-ups: reference the ADR from data_dir_trust.rs after back-merge #1733. Also, a refused data directory is not logged, although Spec 0059 §1 says the error is logged first; this predates the PR.
smart-ssh-coordinator commentedon Dec 5, 2026
Merge not possible, back to coding: Branch issue-1749-write-an-adr-for-the-data-directory cannot be updated to develop automatically. GitHub answered: coordinator: gh: merge conflict between base and head (HTTP 422) ; maintainer app: gh: merge conflict between base and head (HTTP 422)