Skip to content

Ui Refinement Ux18

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

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

UX18 — Native multi-volume generation candidate (incomplete)

UX17 was accepted on 2026-12-01 UTC with 260 passing local gates (27m10s), no failures, skips or blocked checks, nine hosted checks on 9de139a, and maintainer-reported GUI review and merge. The Storage Settings appearance is now accepted. UX18 replaces the outstanding UX16-D/E/F/G work packages; UX19 is expanded operational filesystem compatibility and UX20 is sustainable retention. M10 remains deferred.

Implemented native candidate

VolumeEventStore is a single serialized non-root native owner of a bounded manifest and immutable paired generations. Explicit initialization adopts an existing verified split pair without copying or rewriting evidence. Each new paired generation uses a private unique child of each selected role directory. Changing one role's slot keeps the other role's selected parent, but creates new child directories for both roles. Existing direct-layout stores can be adopted, but an unchanged direct-layout directory cannot also contain new children; that layout needs explicit migration design before desktop activation. The existing SplitEventStore remains unchanged for normal manager operation, except for an additional receipt-probe method used by this candidate.

A separate private local state directory holds volumes.v1, a bounded canonical SHA-256-checked manifest. It records a random manifest namespace, the complete storage policy, reserve, ordered raw/index generation paths, slot numbers and verified pair IDs. The existing descriptor-relative location and publication helpers enforce ownership, exclusive lock, symlink refusal, mount verification, private permissions, durable file publication and directory synchronization. Each historical pair must reopen and match its recorded identity. No implicit replacement is made on missing evidence. This checksum is not authenticated anti-rollback protection against an actor controlling same-user storage.

Global numeric event identity is generation ordinal times 128 plus the original local ID (1 through 128). The manifest namespace distinguishes unrelated stores; the first generation retains its original IDs. The original raw digest still binds the original pair-local ID, not the translated numeric ID. There are at most 128 generations, a development limit independent of the 128 configured slots per role. No automatic eviction or recycling of historical IDs is allowed.

The native owner resolves exact retries and source-cursor conflicts across every retained generation before new admission. The receipt probe may recover an incomplete raw head but does not admit a new row. Actual acknowledgement still requires durable native append or retry. Query and pending APIs traverse all retained pairs and translate IDs, preserve filters and order, and reject stale revisions. Missing or invalid historical data prevents a successful complete query; missing historical raw data prevents new ACKs. Work and file descriptors scale with the retained generation count; production endurance is unqualified.

Manual native rotation refuses unresolved pending projections or uncertain raw commits, creates a new verified pair, durably publishes the manifest, and only then permits new admissions. An uncertain manifest write poisons the current owner. On restart an unexpected pending manifest is refused, not guessed at or deleted. Failure before manifest publication can leave unused private children; no evidence has been acknowledged there. No deletion or migration is implicit.

The optional native append_with_overflow API accepts ordered role pools. It checks current writer reserves and quota, considers candidates circularly and skips empty/unavailable entries. Physical pressure excludes other paths on the same current device. It preserves the other role where possible. It refuses admission without a durable destination and never retries automatically after an ambiguous write failure in the same call. The native regression demonstrates quota-triggered overflow, including wraparound to slot zero, on disposable same-filesystem fixtures. Actual physically full distinct drives and index pressure rollover are not yet qualified. If the old index is full with pending projections, rotation currently refuses until that backlog can be resolved.

Remaining mandatory UX18 work

The native library is compiled and tested but not wired into the running manager, its receipt sink, query IPC, Settings preference model or notifications. The existing production writer still uses slot 0. Do not change the GUI label from preferred primary to active primary or claim a complete operational switch. Before accepting UX18, implement a durable manager-owned manifest location and explicit existing-store adoption; safe handling of edited/removed active slots; serialized runtime request/commit protocol with authoritative primary state; automatic admission pressure and index-backlog relocation; interrupted manifest publication recovery and physical restart qualification; manager-mediated cross-generation queries, audit and session-notification delivery. Qualify actual manager ingress during a switch, exact retries, distinct physical volumes, full raw and index volumes, same-device skipping, exhausted pools, disconnection, crash at each publication boundary and historical queries. Preserve existing network authorization, no administrator approval for ordinary personal storage, and no evidence deletion. UX19 and UX20 remain separate.

Verification

Extend the existing knetsentry_split_storage_contract regression and retain all existing CTests. The native fixture exercises adoption, pending refusal, independent slot changes, global IDs, conflict and retry protection, paging, stale cursors, quota overflow, empty-slot skipping, wraparound, no spare, failed target, restart, missing history, exclusive ownership, and corrupt or ambiguous manifest refusal. The private runner requires the UX18 marker in the existing verbose native gate. No new repeated test group is introduced; retain 682 configured CTests and the five-execution cap per named test and preset. The new structural verifier increases the inventory to 120 (261 expected full local gates). Passing the native candidate does not close UX18.

Subsequent status

The native candidate was merged after 261 passing local gates and nine hosted checks on bf19575, with maintainer-reported manual review. This accepts only the delivered native scope. See UX18-A for subsequent explicit manager integration and remaining work.

Clone this wiki locally