Repository navigation
Run the quality evaluation (grill) on macOS, not only Linux - #145
Merged
plotarmordev merged 7 commits intoNov 21, 2026
Merged
Conversation
plotarmordev
commented
Nov 21, 2026
Owner
- feat(store): support macOS evidence I/O with F_FULLFSYNC flushes
- feat(lifecycle): hold run ownership and admission locks on macOS
- feat(run): latch SIGINT and sync body evidence on macOS
- test: run offline and runner suites on macOS and reject FIFO packs
- docs: state macOS support for quality storage, locks and latch
- refactor(store): rely on std sync_all for the macOS F_FULLFSYNC flush
Open evidence inputs with POSIX O_NOFOLLOW|O_NONBLOCK on every UNIX platform instead of Linux only, and route every file and directory sync through sync_to_disk, which issues F_FULLFSYNC on macOS where fsync only reaches the buffer cache. Widen the libc target dependency to cfg(unix).
flock, O_DIRECTORY and O_NOFOLLOW behave the same on macOS, so the ownership and admission locks now build for every UNIX platform; only other platforms fail closed. The non-Linux fail-closed unit test becomes an exclusivity test that runs on macOS too.
sigaction with SA_RESTART is POSIX, so the interrupt latch builds on every UNIX platform, and the captured body is flushed through the store's platform sync (F_FULLFSYNC on macOS).
The suites were compiled for Linux only because store::read was; they now run on every UNIX platform, proving run/inspect/regrade, SIGINT and pause/resume exclusivity on macOS. Add FIFO pack rejection next to the symlink case.
PROJECT.md's storage paragraph now records the F_FULLFSYNC flushes behind every macOS sync and the flock paragraph drops its Linux-only framing; CONTRIBUTING.md says the quality CLI runs on Apple Silicon macOS with its test suites.
Rust's File::sync_all already issues fcntl(F_FULLFSYNC) with EINTR retry on Apple targets, so the manual helper added an unsafe block and lost the retry for nothing. Restore direct sync_all calls, drop the helper and its test (it could not observe which syscall ran), attribute the macOS flush to std in the docs, and call flock what it is: BSD, not POSIX.
libc moved from cfg(target_os = "linux") to cfg(unix): same crate and version already covered by Cargo.lock and THIRD-PARTY-NOTICES.txt (union over all release targets), so only the manifest_sha256 pin was stale.
plotarmordev
deleted the
feat/4-run-the-quality-evaluation-grill-on-maco
branch
November 21, 2026 07:02
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.