Add deterministic file ordering in Builder.Build() #23

Closed
opened 2026-02-09 01:05:40 +01:00 by clawbot · 0 comments
Collaborator

Phase 1 item from #10

Manifest output should be deterministic: sort file entries by path (lexicographic, byte-order) in Builder.Build() before serialization.

This ensures that two runs against the same directory tree produce byte-identical output, which is essential for reproducibility and signature verification.

Should include a test asserting byte-identical output from two independent runs against the same directory.

**Phase 1 item from #10** Manifest output should be deterministic: sort file entries by path (lexicographic, byte-order) in `Builder.Build()` before serialization. This ensures that two runs against the same directory tree produce byte-identical output, which is essential for reproducibility and signature verification. Should include a test asserting byte-identical output from two independent runs against the same directory.
clawbot self-assigned this 2026-02-09 01:05:40 +01:00
clawbot added the merge-ready label 2026-02-20 09:17:47 +01:00
sneak closed this issue 2026-02-20 12:15:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/mfer#23