Skip to content

Add durable private state and verified data-only recovery - #272

Closed
MichaelWave369 wants to merge 2 commits into
feat/linux-release-foundationfrom
feat/durable-state-foundation
Closed

MichaelWave369 wants to merge 2 commits into
feat/linux-release-foundationfrom
feat/durable-state-foundation

Conversation

@MichaelWave369

@MichaelWave369 MichaelWave369 commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

JSONL writes could interleave, truncated rows were silently skipped, memory retries could race, and publication of an older receipt could expose a newer pending revision. The candidate serializes and syncs acknowledged writes, detects incomplete or logically corrupt state, and keeps older receipt publication tied to its exact revision.

phi-state backup/verify/restore captures private, versioned data into fresh directories. Restore verifies hashes and canonical records before writing; it excludes configuration, credentials, claims and indexes and archives historical effect/approval authority outside active paths. Explicit incomplete-tail recovery preserves original bytes without replaying uncertain operations. Unknown schemas are held. The packaged XDG state root is shared by CLI/runtime processes; legacy roots require explicit data-only migration.

Validation: 18 new durability/recovery tests; the focused selection passed 37 tests, Ruff and mypy (--ignore-missing-imports, 304 modules). Full GitHub CI passed all four lanes, including 2,126 Python tests with 6 skips. Latest CI is green at 48707cef6a2fd4058f7885724ab56712fe1a68fa, and the installed-package/live UEFI image lane passed sidecar restart, actual greeter relogin and two boots. Installed storage and abrupt virtual restart remain the distinct #273 gate; hardware power-loss behavior is not claimed. An earlier local full run had 18 environment failures (restricted AF_UNIX/Wayland and unavailable bubblewrap preflight); remote CI resolved the platform-verification gap without silently skipping those tests.

POSIX permissions and terminal review do not isolate malicious processes with the same UID. Backups are unencrypted and hashes establish integrity, not authenticity. Stacked on #271. See docs/os/STATE_RECOVERY.md and the implementation register. No authority or adapter is promoted and this PR does not publish a supported OS release.

Copy link
Copy Markdown
Owner Author

Superseded by merged consolidation PR #291.

The reviewed implementation/evidence lineage is preserved on main at merge commit 81103bbfeb59b0864b97e5bd64935730d301f349.
This closure is repository cleanup only. It does not change any preserved release, publication, hardware, signing, source/license, or field-test holds documented by the consolidated candidate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant