ReviewOS

also looking at this

stacks/drone

feat: own runtime firmware candidates

#49
Merged chris wants to merge codex/runtime-candidate-ownership into main
24 files +1245 -92
docs/adr/0028-runtime-trust-store.mdmodified+22-3
Changes to docs/adr/0028-runtime-trust-store.md
@@ -47,7 +47,26 @@ process-crash evidence is not measured physical power-loss durability. Same-user
4747privileged disk rollback and malicious kernel/filesystem behavior require separate
4848hardware protection and are outside this host protocol's claims.
4949
50Installed, candidate and known-good slots, authenticated image integration and
51health confirmation bound to an exact image and boot/session identity remain part
52of #42. No receipt or healthy boolean can select firmware. Physical installation,
50Protected preparation now uses this metadata operation to authenticate actual
51image bytes before and after writing the existing signed-candidate format. The
52same file writer serves standalone staging. Candidate inspection requires a root
53pin from authenticated store readback when preparation uses the current rotated
54root. A candidate receipt supplies no current trust or selection authority.
55
56The original format1 database journals metadata. Candidate reservation upgrades
57its exact schema to format2 in a single transaction, preserving all earlier
58records, floors and the independently pinned store identity. The writer database
59stays format1. New code reads both formats; older binaries reject format2 before
60rewriting it. Missing/corrupt or unknown schemas are never reinitialized.
61
62Format2 adds bounded owned candidate records and one active-reservation index.
63A record binds the exact attempt/generation and generated signed description,
64is committed before image IO, and changes to prepared only after authenticated
65bytes and full candidate-file readback. The files use exclusive immutable-ID
66directories inside the private store. Explicit retirement preserves the files
67and history. Metadata-only recovery cannot promote a reserved candidate based on
68its receipt. Recorded-byte status is not current-policy authorization.
69
70Installed and known-good slot roles and health confirmation bound to an exact
71image and boot/session identity remain part of #42. No receipt or healthy boolean can select firmware. Physical installation,
5372bootloader behavior, secure boot and hardware anti-rollback remain gated by #2/#9.