test(format): tar/cpio/ar/ISO producer corpora and metadata round trips [RM-304]#67
Merged
P4suta merged 2 commits intoJul 23, 2026
Conversation
…ps [RM-304] Lift the RM-301 interoperability harness from content-only evidence to metadata fidelity for the sequential and disc formats. Test/corpus slice only — no src runtime change; tar/cpio/ar/ISO already encode/decode their metadata. Harness extension (tests/common/mod.rs, additive — the content-only EntryShape path is untouched): read_seq_with_arca reads tar/cpio/ar through the non-seek ArchiveReader (the seek reader only indexes ZIP/ISO); MetaShape preserves the REAL entry kind (Symlink/Hardlink no longer fold to File) plus typed mode/uid/gid/mtime/ link-target; read_meta_seq_with_arca / read_meta_seek_with_arca project an archive into path-sorted MetaShapes; assert_producers_agree_seq mirrors the seek variant. Producers/consumers stay bare fn pointers, so no-dyn and forbid(unsafe) hold. - tar: 3 producers (arca, tar@0.4, first-party raw ustar builder) x 2 consumers (arca seq, tar@0.4); mode/uid/gid/mtime + symlink fidelity. - cpio: 3 producers (arca newc, raw newc, raw odc — distinct on-disk framings) x 2 consumers (arca, first-party raw newc parser); mode/uid/gid/mtime + typed hardlink pair. No pure-Rust cpio producer crate exists, so the 3rd producer is a second first-party builder in a different dialect (honest note in PROVENANCE). - ar: 3 producers (arca, ar@0.9, raw !<arch> builder) x 2 consumers (arca, ar@0.9); mode/uid/gid/mtime (ar is flat regular-files-only). - ISO: arca self round trip + external xorriso/genisoimage/mkisofs producer (graceful skip); Rock Ridge PX/TF/SL fidelity (mode/uid/gid/mtime + symlink) via the seek reader. No pure-Rust independent ISO reader exists on all targets. New test-only dev-deps (no effect on the shipped crate's portable/C-free profile): tar = "0.4", ar = "0.9". Per-format tests/fixtures/*/PROVENANCE.md register each producer and the ISO external-tool escape hatch. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
P4suta
enabled auto-merge (squash)
July 23, 2026 03:10
P4suta
deleted the
feature/dev-110-rm-304-tarcpioariso-producer-specific-corpora-and-metadata
branch
July 23, 2026 03:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RM-304 / DEV-110 — tar/cpio/ar/ISO producer-specific corpora and metadata round trips
Lifts the RM-301 interoperability harness from content-only evidence to metadata fidelity for the sequential and disc formats. Test/corpus slice only — no
src/runtime change (tar/cpio/ar/ISO already encode/decode their metadata; this proves it end-to-end against independent producers/consumers).Harness extension (
tests/common/mod.rs, additive)The content-only
EntryShapepath is untouched. Added:read_seq_with_arca(sequentialArchiveReader— the seek reader only indexes ZIP/ISO);MetaShape(preserves the real entry kind — Symlink/Hardlink no longer fold to File — plus typed mode/uid/gid/mtime/link-target);read_meta_seq_with_arca/read_meta_seek_with_arca;assert_producers_agree_seq. Producers/consumers stay barefnpointers, sono-dynandforbid(unsafe)hold.Per-format coverage (honest scope)
tar@0.4, first-party raw ustar builder) × 2 consumers (arca seq,tar@0.4); mode/uid/gid/mtime + symlink fidelity.newc, rawnewc, rawodc— genuinely distinct on-disk framings) × 2 consumers (arca, first-party rawnewcparser); mode/uid/gid/mtime + typed hardlink pair. No pure-Rust cpio producer crate exists, so the 3rd producer is a second first-party builder in a different dialect (documented in PROVENANCE).ar@0.9, raw!<arch>builder) × 2 consumers (arca,ar@0.9); mode/uid/gid/mtime (ar is flat regular-files-only).xorriso/genisoimage/mkisofsproducer (graceful skip); Rock Ridge PX/TF/SL fidelity (mode/uid/gid/mtime + symlink) via the seek reader. No pure-Rust independent ISO reader exists on all targets.Notes
tar = "0.4",ar = "0.9".tests/fixtures/*/PROVENANCE.mdregister each producer and the ISO external-tool escape hatch.just cipassed locally.🤖 Generated with Claude Code