-
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 edit.rs to append an audit entry on every attribute edit.
Spec
EditPlangains:message: Option<String>,author: AuthorEditResultgains:audit_entry: AuditEntryEditPlan::apply()flow becomes:- Read current content_hash → parent_hash
- Read current attribute value → old
- Write new attribute value
- Create AuditEntry
- Append to
_fd5_audit_log - Recompute content_hash
- Return EditResult with the entry
TDD
- Test edit creates audit entry with correct parent_hash
- Test edit preserves existing log entries
- Test author from identity is recorded
- Test message defaults to "Edit ."
- Test content_hash covers the audit log (tampering detected)
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