# POSIX services: preserve requirements through advanced agent edits - [Preserve complete POSIX writes when appending an order record](https://frameworkrecipes.dev/posix/complete-write-loop/guide.md): write may accept fewer bytes than requested or be interrupted before writing. A log append helper must keep the remaining slice and retry interruptions. Treat a zero-byte write as an error rather than spin forever. - [partial-writes-advance-by-count rule pack](https://reporules.fyi/posix/complete-write-loop/rule-pack.zip): YAML requirement and agent task. - [Close a POSIX file descriptor even when synchronization fails](https://frameworkrecipes.dev/posix/failure-path-descriptor/guide.md): A failure to sync is precisely the path where cleanup is easy to skip. Attempt close independently of the fsync outcome and preserve the first durability error so the caller does not report successful persistence. - [descriptor-closes-on-sync-error rule pack](https://reporules.fyi/posix/failure-path-descriptor/rule-pack.zip): YAML requirement and agent task. - [Framework rule pack](https://reporules.fyi/posix/rule-pack.zip): All requirements from this framework site.