mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 14:57:54 -05:00
* fix(s3): preserve archived null versions * fix(s3): address null version archive review Preserve locked null versions under new versions and markers while checking protection before suspended cleanup. Avoid locking never-versioned body reads, reject reserved service keys, and recover original null bodies and metadata after failed publication. Remove obsolete marker bodies and retry reads that race marker creation. Refresh promoted null generations so archival and configuration rollback cannot hide a body replacement. * fix(s3): serialize null version metadata updates with promotion Hold the bucket monitor while resolving, validating and persisting retention, legal hold and ACL changes so promotion cannot discard an acknowledged update. Cover the race with a two-thread regression and preserve numbered-version references during demotion. * fix(analysis): protect null history after bucket configuration rollback Apply archived-null protection and cleanup in every non-enabled mutation path so restoring an unversioned bucket configuration cannot erase locks or leave stale history. Cover replacement, deletion and protected annotations in memory and disk modes. * fix(analysis): assert preservation immediately after each denied operation Check current and archived bytes before another request can repair corruption, use a distinct copy source, and compare replacement metadata with the listed null entry. * fix(analysis): compare listed null history with replacement metadata Assert the null listing identifies the latest replacement and its ETag so stale history cannot satisfy the count-only check. * fix(analysis): qualify missing null version documentation Describe keys that have no null version without excluding keys that gain one after versioning is suspended. * fix(s3): retain archived null history until replacement publication succeeds Keep the archived body, metadata and annotations when a non-enabled replacement metadata write throws, including after configuration rollback. Clean history after successful publication under the bucket monitor and cover failures before and after publication in memory and disk modes. * fix(s3): restore the current pointer after archived null publication failures Recover the prior current body and metadata when a non-enabled PUT with archived null history fails publication. Handle numbered versions, promoted null versions and markers with a fresh read generation, and keep archive annotations publicly associated with their original version. All 199 focused tests pass. * test(s3): prove reads retry across failed publication recovery Observe replacement bytes during a publication fault and require latest and explicit-null reads to retry against the restored promoted null version. Both new cases and all 27 archive/read tests pass. * docs(s3): use repository punctuation style Replace existing em dash punctuation in the touched S3 service documentation as required by the repository documentation rules. * fix(analysis): assert canonical cleanup when failed publication restores a marker Check memory payloads and the disk canonical path before retrying, so the marker-before-publication cells detect orphaned replacement bodies as well as metadata restoration. All 27 archive/read cases pass.