Skip to content

Ui Refinement Ux18 F

Chris Sutton edited this page Dec 2, 2026 · 1 revision

Published documentation mirror. Edit the source through a repository PR. See Project status.

UX18-F — Storage unavailability, fault tolerance and automatic recovery

UX18-E maintainer acceptance: 271 PASS, zero FAIL/SKIPPED/BLOCKED, 27m18s; nine hosted checks on 116923b, manual GUI review and merge reported. UX18-F is a candidate, not a qualified target release. It preserves the native serialized owner, existing storage selection and authorization, and eight-entry opt-in desktop history.

Verified identity and recovery

The checksummed volumes.v1 file now supports V3, including per-generation raw and index directory binding digests and configured-parent bindings. Bindings cover filesystem type, filesystem ID and directory inode; they are independent of transient mount IDs and device numbers. A reconnect reacquires the exclusive lock and validates the current descriptor and path against the established identity. A substituted directory or medium must not become the evidence destination. Bindings do not constitute hardware serial authentication or resistance to a privileged bit-identical clone. Same-user/privileged rollback outside the existing evidence trust boundary is not solved by a checksum.

V1/V2 remain readable. Migration requires every original pair to be verified before V3 publication; a legacy manifest missing media cannot safely establish its first identity pins and is refused until the original media return. V3 retains absent generations without initializing substitutes. Linked manifest recovery retains the original committed state until the extension or projection relocation is verified; ambiguous control state remains refused. An initially absent, never-observed spare is not eligible during that run; a subsequent configured restart may establish its first binding if valid. Previously established pins, including retired projection parent pins, cannot be silently replaced.

Operational behavior

Condition Native owner action
Missing/substituted raw or historical pair Preserve all manifest entries; refuse new admissions, exact receipt ACKs and complete-history queries until original integrity/uniqueness can be established. No writes to the underlying mountpoint.
Read-only active raw, verified readable history With pending commitment resolved, select a configured eligible alternate and rotate raw while retaining index role.
Read-only active index Relocate pending projection or rotate index when backlog is drained; preserve raw role.
Missing active index, original raw available Reconstruct projection from verified committed raw on an eligible configured alternate, retain raw identity/global IDs, commit replacement manifest. Other unavailable history still blocks complete operations.
No safe alternate / unresolved history Bounded refusal and backpressure; manager remains available for status and recovery. No successful empty-history response.
Original volume returns Revalidate descriptor, parent identity, locks, and evidence; resume eligible pending work and admission when the complete history is again provable.

The existing VOLUMES, ROTATE and VOLUMELOG IPC replies gain DEGRADED, preserving committed slot IDs and ordered transitions. Unavailable evidence queries return explicit UNAVAILABLE (not an empty successful page). Complete-history refusal is conservative; this revision does not implement partial-result pagination. The manager's existing same-user IPC and durable audit remain authoritative. storage_unavailable, storage_recovered, and committed rotation audit events distinguish sustained outage/recovery from ordinary capacity pressure. Desktop primary controls become unavailable during degradation; the existing alert model records availability changes in its opt-in session history. No additional storage permission dialogs or controls.

This does not guarantee writes when all media are unavailable or when raw uniqueness cannot be established, even if there is free space elsewhere. No destructive reclamation or history expiration is introduced. Existing generation/transition and operation bounds remain until UX18-G. Existing abandoned unpublished generation cleanup remains UX20; reconstruction attempts may leave unpublished candidates after a failed publication. No new filesystem support is asserted (UX19). Sustained overlap of authenticated production delivery with handoff/recovery remains UX18-H.

Qualification

Extend existing native split-storage contract with missing/substituted raw, verified degraded restart and exact retry after original return; missing active index, exhausted eligible pool and verified reconstruction; deferred linked-manifest recovery; and V2 migration/interrupted binding publication. Extend bounded health-client decoder for degraded status. Native strict optimized GCC and Clang ASan/UBSan storage tests execute as an ordinary user. Add an explicitly privileged private mount fixture using disposable ext4 loop images, ordinary-user manager/seed/IPC, read-only rollover, detach/reconnect, underlying directory substitution, degraded restart, unavailable queries, index recovery and complete raw pool loss. Target execution remains required. Existing test counts (682 CTests, five executions per named test/preset) unchanged; 126 structural verifiers, expected 273 full gates. Physical media removal, power interruption and real endurance remain separately recorded in the private maintainer ledger. Full target builds, QML/Clazy, all hosted CI, manual GUI review and mount fixture must pass before accepting UX18-F.

UX18-F.1 corrective qualification

The first maintainer target run (2026-12-02 UTC) stopped during linux-analysis at the fdopendir argument diagnostic (clang-analyzer-unix.StdCLibraryFunctions): openat may return -1, and the analyzer did not establish the exception path through the generic require helper. The run reported 3 PASS, 1 FAIL, 2 SKIPPED, 0 BLOCKED; all later qualification remains required. The corrective revision uses an explicit negative-descriptor branch before ownership transfer to fdopendir, preserving Unavailable, IoError, and descriptor cleanup without diagnostic suppression. The existing split-storage test now injects enumeration-open and stream-conversion failures using test-only linker wrappers, checks no invalid descriptor transfer, refused history and acknowledgement, descriptor closure, and exact receipt recovery without changing evidence identity. The existing source contract and private focused test marker are extended; no new CTest registration or acceptance gate is introduced. The candidate is not yet accepted.

UX18-F.2 corrective qualification

The second maintainer run (2026-12-02 UTC) passed all seven build and CTest configurations, strict QML, official REUSE lint and the inherited executable/namespace tests. It recorded 270 PASS, 1 FAIL, 1 SKIPPED, 0 BLOCKED: the new UX18-F fixture failed before initial manager readiness; installed-manager equality and live systemd qualification did not execute. The fixture previously created a root-owned mode-0711 parent. The unchanged audit implementation opens every ancestor with O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC; ordinary-user traversal alone is insufficient. A direct build of the actual manager reproduced exit 6 and audit refusal with that layout, and successful readiness and graceful shutdown with a root-owned caller-group mode-0750 parent. This establishes the fixture setup defect without relaxing production audit or storage policy.

The corrected fixture runs an actual manager audit-only negative/positive preflight in its disposable directory before creating ext4 images; the parent is readable/traversable only to root and the caller group, not writable by the caller. The leaf audit, IPC and storage state directories remain ordinary-user mode 0700; root-owned images remain private. Underlying mountpoint permissions are set explicitly before mounting because the 0077 umask masks execute bits supplied to mkdir. The ordinary-user replacement-access probe proves substitution refusal is not merely caused by inaccessible ancestors. Manager startup and later phase failures report a bounded synthetic diagnostic tail with phase and exit status before cleanup. Reconnection explicitly preserves the historical raw filesystem's read-only mode, including when old mount descriptors remain held. No original storage loss, substitution, restart, read-only rollover, index reconstruction, or recovery assertion is removed. The target private mount fixture remains mandatory; the direct audit-only reproduction does not qualify mounting or recovery. No production C++ change, new CTest registration, additional consolidated gate or manual physical test is introduced.

Maintainer acceptance

2026-12-02 UTC: 273 PASS, 0 FAIL, 0 SKIPPED, 0 BLOCKED (26m32s); the corrected actual-manager private mount recovery and final installed systemd checks passed. Nine hosted checks on 79ea3c1, manual GUI review and merge were reported. Physical qualification is separate.

Roadmap boundary

UX18-G removes artificial lifetime metadata ceilings with migration and bounded access. UX18-H qualifies concurrent authenticated ingestion, handoff and recovery together. UX19 expands actual operational filesystem compatibility, and UX20 implements sustainable retention/reclamation and retained indexed access after raw expiration. M10 remains deferred. No extra planned UX18 increment is introduced.

Clone this wiki locally