Skip to content

feat(installer): persist verified GPT artifacts through retained directories - #120

Merged
lalalune merged 1 commit into
developfrom
codex/installer-gpt-artifact-store-20260923
Sep 23, 2026
Merged

lalalune merged 1 commit into
developfrom
codex/installer-gpt-artifact-store-20260923

Conversation

@lalalune

Copy link
Copy Markdown
Member

GPT capture and restore currently operate on memory buffers. Add an internal filesystem primitive that creates a digest-named backup exclusively through a retained private directory, syncs the file and directory, then reopens and verifies the exact artifact. Interrupted and existing files are preserved; unsafe files, changed inodes, corrupt bytes and revoked checks fail closed.

The disposable VM qualification uses a separate ext4 root disk and covers four cancellation and child-process exit checkpoints, fresh-descriptor recovery, duplicate creation, unsafe file types/metadata, chunk cancellation and caller input mutation. Both 512-byte and 4096-byte sector runs passed with unchanged target/canary evidence. Independently extracted the stored file from the stopped VM disk and confirmed its digest, root ownership, 0600 mode and single link.

Validation: bun install, bun run verify, strict C compilation, nine QMP runner tests, and both complete local VM lanes after syncing with develop. CI retains source-bound qualification reports.

This is an uninstalled internal candidate for #20. Production backing-storage policy, locking/backend composition, journal integration, hardware power-loss testing and physical media qualification remain outstanding; this does not close #20.

@lalalune
lalalune merged commit 87bb540 into develop Sep 23, 2026
10 checks passed
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.

installer: implement and qualify whole-disk and alongside installation

1 participant