Skip to content

More#1

Merged
Keats merged 4 commits intomainfrom
more
Jan 28, 2026
Merged

More#1
Keats merged 4 commits intomainfrom
more

Conversation

@Keats
Copy link
Collaborator

@Keats Keats commented Jan 27, 2026

No description provided.

@Keats Keats force-pushed the more branch 2 times, most recently from ba4d2e6 to f97ca39 Compare January 27, 2026 18:59
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request refactors hash handling and introduces audit logging functionality to the DVS (Data Version System). The changes move from using string-based hash identifiers to a structured Hashes type that contains both MD5 and Blake3 hashes, and adds operation tracking through UUIDs and audit logs.

Changes:

  • Introduced a new audit module with AuditEntry and AuditFile types for tracking file operations
  • Created a hashes module to encapsulate hash algorithms (Blake3, MD5) in a structured Hashes type
  • Refactored the Backend trait to use &Hashes instead of &str parameters across all methods
  • Added UUID-based operation tracking to link related file operations
  • Implemented audit log writing in LocalBackend that appends JSON entries to audit.log.jsonl

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
dvs/src/audit.rs New module defining audit log structures with timestamps, user info, and file hashes
dvs/src/hashes.rs New module defining HashAlg enum and Hashes struct with hash computation and retrieval methods
dvs/src/lib.rs Updated module structure and public exports to include audit and hashes modules
dvs/src/file.rs Refactored to use Hashes type, added UUID parameter to save method, integrated audit logging on successful saves
dvs/src/backends/mod.rs Updated Backend trait signatures to accept &Hashes instead of &str, added log_audit method
dvs/src/backends/local.rs Implemented hash algorithm selection (hardcoded to Blake3), refactored all methods to use Hashes, implemented log_audit with JSONL append
dvs/src/paths.rs Updated test to include UUID parameter in save call
dvs/README.md Simplified documentation, removed detailed usage instructions
Cargo.toml / Cargo.lock Added uuid dependency with v4 feature

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Keats Keats merged commit 9ded4ad into main Jan 28, 2026
6 of 24 checks passed
@Keats Keats deleted the more branch January 28, 2026 11:15
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.

2 participants