Repository navigation
Live Evidence Rotation Live6D2
Published documentation mirror. Edit the source through a repository PR. See Project status.
Status: accepted (2026-11-30 UTC, 230 local gates, nine hosted checks on 0a7cb43, maintainer-reported manual review and merge); bounded nondeleting retention, not a complete production
retention service. LIVE6D.1 was accepted on 2026-11-30 UTC: 229 automated local
checks, 682 configured CTests, 99 structural verifiers, both isolated background
admission fixtures, nine hosted checks on 179d387, and maintainer-reported
manual review and merge. Six navigation p95 measurements ranged from 145.753
to 152.810 ms (unchanged 200 ms budget).
The existing separately consented local evidence worker now opens a bounded segmented stream in the same private 0700 directory, without choosing a new filesystem or adding network collection. It accepts up to 16 files, with 8192 records of 144 bytes in each, for a total of 131072 records (18 MiB logical record bytes, excluding filesystem metadata). The fixed development policy retains every segment and stops at the total quota. It is not a rolling window, a time-based expiration policy or a production throughput guarantee. The GUI explains the new capacity before approval and reports global durable counts.
Segment zero is the existing observations-v1.bin. Subsequent segments have
fixed names observations-v1-1.bin through observations-v1-15.bin. No old
record is rewritten or migrated. Nonfinal segments must be exactly full; the
final segment may be empty or partially filled with complete valid records.
All records use the original LIVE3 version, with globally increasing sequence
numbers and a SHA-256 chain crossing file boundaries. Rotation does not reset
the current random session identifier or the LIVE4 detector. Native single-file
callers keep their default policy; the desktop explicitly chooses the larger
segmented policy. Tiny segment sizes in fixtures do not change desktop defaults.
Do not change segment size for a segmented stream. Older builds do not understand
rotated evidence; do not use them to inspect or continue this store.
The worker holds the original exclusive directory lock throughout. It checks all 16 recognized names for contiguous numbering, refuses unsafe metadata or policy overflow, verifies all existing records in sequence, and only creates segment zero if no recognized files exist. Each segment must be an owned 0600 regular file with one link on the same supported local filesystem. File and path identity, expected length, and absence of unexpected recognized segments are rechecked before and after writes and reads. Directory or file replacement or loss fails closed. This does not eliminate same-UID races or establish continuous content validation of every historical record during a session.
Rotation creates the next fixed name with O_EXCL, without replacing any file. It synchronizes the new file and directory before acknowledging any append to that segment. Append still requires exact positional write, successful fdatasync, path revalidation and typed readback before worker publication. If interrupted between new file creation and the first append, a valid empty final segment can be reopened and filled; a partial record, sequence gap, nonfinal short segment, invalid chain or unsafe file is refused rather than repaired. No implicit truncation, overwrite, deletion, renaming or fallback occurs.
Recovery scans the entire bounded chain on the background thread. The worker's 16-outstanding-record limit and checked six-second deadline are unchanged; a slow open or filesystem may fail the application deadline, and a blocked syscall can still delay final destruction. Worst-case full-capacity reopen latency and long-duration qualification remain outstanding. File sync and namespace durability depend on the supported filesystem and device honoring these operations. The fixture models interruption states; it does not simulate actual power loss. No external integrity anchor is added: complete suffix removal or a same-UID rewrite can still be undetectable. The store is not the sole evidence vault. Keep the complete ordered set when making an authorized backup after the writer has stopped and exited; never remove individual prefix segments to reclaim capacity. Do not upload actual files in public artifacts.
The existing native evidence contract exercises legacy reopening, valid empty final recovery, actual rotation with small fixture limits, global sequences, worker/detector continuity, total quota refusal, segment permission and link validation, missing prefix/middle refusal, path withdrawal and partial or corrupt chain refusal. The detector contract exercises acceptance past the old 8192 boundary and refusal beyond the new absolute sequence ceiling. Retain 682 configured CTests, 100 structural verifiers, 230 full local gates (231 with optional synthetic GUI review). Require the new marker in the five Release and five sanitizer evidence repetitions, all inherited isolated fixtures, active-retention GUI review and nine hosted checks.
TB-01/TB-03 and the existing local evidence minimization and authorization boundaries remain unchanged. No new storage fields, peer addresses, credentials, network listeners, dependency or privilege is added. Production retention still requires explicit age/size policy, durable independently anchored checkpoints, controlled expiration/hold/export and recovery qualification. Durable operational alerts and acknowledgement, authenticated manager ingress, executable-level agent/gateway ownership, device evidence, indexing/detection scheduling, independent freshness and long-duration qualification remain before M10.
Source repository · Documentation index · License policy
Documentation mirror — CC-BY-SA-4.0. KnetSentry is not an official KDE project.