-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
area:corefd5 core libraryfd5 core libraryaudit-trailAudit trail / provenance chain featureAudit trail / provenance chain featureeffort:medium1-4 hours1-4 hoursfeatureNew feature or requestNew feature or request
Description
Parent: #161
Goal
Extend verify.rs to validate audit chain integrity.
Spec
ChainStatusenum:Valid(usize)(entry count),NoLog,BrokenChain { index, expected, actual },Error(String)verify_chain(file: &File) -> Fd5Result<ChainStatus>- Integrate into
Fd5Statusor return separately - Validation:
- Walk entries in order
- Each entry\u2019s parent_hash must form a valid chain
- No gaps or tampered entries
TDD
- Test valid chain → Valid(N)
- Test tampered middle entry → BrokenChain
- Test no log → NoLog
- Test single entry chain
- Test content_hash mismatch with chain (Merkle tree catches audit log tampering)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:corefd5 core libraryfd5 core libraryaudit-trailAudit trail / provenance chain featureAudit trail / provenance chain featureeffort:medium1-4 hours1-4 hoursfeatureNew feature or requestNew feature or request