Repository navigation
Closed
Labels
ready-for-agentFully specified, ready for an AFK agent
Description
Parent
What to build
Make thirdshift's codebase and test suite unconditionally Linux-only and reject non-Linux compilation targets with a clear error message:
- Add a crate-root
#[cfg(not(target_os = "linux"))] compile_error!(...)that fails compilation on non-Linux targets with a message stating thatthirdshiftsupports Linux only and directing macOS users to run it inside an Ubuntu 24.04 Linux VM (such as Lima) and Windows users to use WSL2. - Remove all macOS and non-Linux conditional compilation branches (
#[cfg(target_os = "macos")],#[cfg(not(target_os = "linux"))], redundant#[cfg(target_os = "linux")], and runtimecfg!(target_os = ...)checks) across production modules:- Process start identity and
Stopsignaling use Linux/procandpidfd_open/pidfd_send_signalunconditionally, with the macOSproc_pidinfoandproc_signal_with_audittokenimplementation removed. - Console live process-exit watching uses Linux
pidfd_openunconditionally, with the macOSkqueueimplementation removed. - Console service installation (
thirdshift console install) runs without a runtimecfg!(target_os = "linux")refusal check. - Setup's Security sandbox probe runs the live
bwrapcheck unconditionally, with the non-Linuxunavailable_reportfallback and its unit tests removed. - Embedded Factory skills directory handles use Linux
O_PATH | O_DIRECTORY | O_NOFOLLOWdescriptors unconditionally. - Child Ticket run and Base fix spawning use
/proc/self/exeandprctl(PR_SET_NAME)unconditionally. - Trial and Grader
systemd --userscope creation runs without acfg!(target_os = "linux")guard.
- Process start identity and
- Remove all
#[cfg(target_os = ...)]and#![cfg_attr(not(target_os = "linux"), ...)]attributes andcfg!(target_os = "macos")branches across unit and integration tests, deleting dead non-Linux test stubs so every test in the suite is compiled and run unconditionally on Linux.
Acceptance criteria
- Compiling on a non-Linux target fails immediately at the crate root
compile_error!naming Linux, Lima on macOS, and WSL2 on Windows. - No
target_os = "macos"ornot(target_os = "linux")branches remain insrc/ortests/(aside from the crate-rootcompile_error!). -
cargo clippy --all-targets -- -D warningsand the unit and integration test suites pass on Linux with zero dead-code or unused warnings. -
scripts/affected-tests mainpasses.
Metadata
Metadata
Assignees
Labels
ready-for-agentFully specified, ready for an AFK agent
Activity
JacobStephens2 commentedon Oct 30, 2026
Closed by #1676, merged into issue-1665 by a thirdshift Ticket run with Self-merge.