Skip to content

Run the quality evaluation (grill) on macOS, not only Linux - #145

Merged
plotarmordev merged 7 commits into
mainfrom
feat/4-run-the-quality-evaluation-grill-on-maco
Nov 21, 2026
Merged

plotarmordev merged 7 commits into
mainfrom
feat/4-run-the-quality-evaluation-grill-on-maco

Conversation

@plotarmordev

Copy link
Copy Markdown
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
plotarmordev merged commit 8fb4eef into main Nov 21, 2026
7 checks passed
@plotarmordev
plotarmordev deleted the feat/4-run-the-quality-evaluation-grill-on-maco branch November 21, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant