Skip to content

feat(p2p-01): add file version epoch proto foundation (#671)#16

Open
jlon wants to merge 4 commits into
mainfrom
p2p-01-file-version-foundation
Open

feat(p2p-01): add file version epoch proto foundation (#671)#16
jlon wants to merge 4 commits into
mainfrom
p2p-01-file-version-foundation

Conversation

@jlon

@jlon jlon commented Mar 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add version_epoch to shared file metadata used by later P2P read identity.
  • Keep legacy FileStatus payloads decodable with a default epoch of 0.

Design

  • Extend the existing FileStatus path instead of introducing a parallel P2P-only message.
  • Seed inode-side version state now so later cache and transfer keys can stay version-safe.

Implementation

  • Update common.proto, FileStatus, proto conversions, and inode view/file mappings.
  • Add proto compatibility coverage for round-trip and legacy decode behavior.

Verification

  • cargo test -p curvine-common file_status_proto_roundtrip_keeps_version_epoch
  • cargo test -p curvine-common file_status_proto_decodes_legacy_payload_without_version_epoch

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

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