Thanks to visit codestin.com
Credit goes to github.com

Skip to content

kernel: keep live audit custody private and host verifier retained - #1788

Draft
joshuajbouw wants to merge 11 commits into
os/universalfrom
codex/1759-audit-custody-live
Draft

joshuajbouw wants to merge 11 commits into
os/universalfrom
codex/1759-audit-custody-live

Conversation

@joshuajbouw

@joshuajbouw joshuajbouw commented Aug 31, 2026

Copy link
Copy Markdown
Member

Linked Issue

Tracking #1759. Related: #1790 and #1792.

Summary

Keeps live audit custody private to the kernel and retains the host verifier.

The source was independently accepted at the current head. Landing remains blocked by the Windows x86 storage-callback certification failure and by stale integration ancestry. This PR is preserved as an accepted source candidate, not as release or merge approval.

Changes

  • Makes live audit authority private and consuming.
  • Retains a host verifier for bounded verification.
  • Adds replay, restore, overflow, and atomicity falsifiers.

Verification

  • Independent exact-head GLM and Luna reviews accepted the source.
  • Windows x86 terminal CI failed before native WinFsp certification.
  • Current os/universal must be re-pinned before any landing decision.

AI / Tool Assistance

Assisted-by: Codex:GLM-5.3 Flash

AI assistance was used for implementation. Independent review and the final landing decision remain maintainer-owned.

Checklist

  • Source review completed
  • Windows certification blocker disclosed
  • Ready to merge

Provision boot audit identity and secret through CPUID-gated RDRAND, mint move-only signer and verifier custodians, and wire successful IPC EndpointCreate through one preflighted projection/audit/retire transaction before state commit. Serial emits only public custody identity and retired observation positions.

Tracking #1759.

Signed-off-by: Joshua J. Bouw <[email protected]>
Restore the base #1759 fragment and add a focused security fragment for the live boot custody and audited IPC grant slice.

Signed-off-by: Joshua J. Bouw <[email protected]>
Enable explicit BLAKE3/zeroize erasure for provisioning and keyed custody state, bind checkpoint contexts to their live boot, forbid mixed buffered and immediate-retire relay modes, and move the IPC grant transaction into the owned audit module.

Signed-off-by: Joshua J. Bouw <[email protected]>
Stage canonical audit records in chain-owned scratch and verify through a non-inlined append helper, shrinking the live runtime record frame while preserving preflighted atomic commit and verifier custody boundaries.

Signed-off-by: Joshua J. Bouw <[email protected]>
Build the canonical frame directly in chain-owned storage and pass the grant event by reference, removing another frame-sized live block from the IPC audit path while preserving the same preflighted atomic transition.

Signed-off-by: Joshua J. Bouw <[email protected]>
Open an explicit speculative verifier transaction before the relay authenticates the fold receipt. Commit the verifier only after successful retirement and restore its two cursor fields on failure, with a production-faithful altered-receipt regression.

Signed-off-by: Joshua J. Bouw <[email protected]>
Replace reusable speculative verifier methods with consuming open and folded states, bind retirement to the transaction receipt and staged identity, and add identity/rollback falsifiers for the exactly-once transition.

Signed-off-by: Joshua J. Bouw <[email protected]>
Commit a provisional verifier fold only with a live-custody checkpoint minted after relay receipt authentication, move retained-evidence folding to its own verifier type, and add API and rollback falsifiers for pre-auth commit and path substitution.

Signed-off-by: Joshua J. Bouw <[email protected]>
Move the live verifier into kernel-private AuditChain custody and reduce native-audit-verifier to retained/offline evidence. Prepared live state is consuming and bound to identity, sequence, root, frame, and relay authentication. Excludes ABI, WIT, schema, and fixture changes. Tracking #1759

Signed-off-by: Joshua J. Bouw <[email protected]>
@joshuajbouw joshuajbouw changed the title kernel: provision live audit custody for IPC grants kernel: keep live audit custody private and host verifier retained Sep 1, 2026
Live custody now consumes move-only reservations, owns the unkeyed root fold, and privately mints the receipt before independent relay authentication. Chain live staging no longer precomputes a duplicate root, stale canonical frames are rejected, and the kernel checkpoint restore constructor is removed while retained/offline host restore remains.

Signed-off-by: Joshua J. Bouw <[email protected]>
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