Skip to content

Linux-only mutation coverage gaps

Source: cli-mutation-report.json, src/Forge.Approvals.Cli/LedgerPathGuard.cs. These require a Linux CI job executing the real native filesystem operations. Round 7 adds no Windows simulations of these branches, mutant exclusions, or threshold changes. NoCoverage is distinguished from Survived below.

Lines Mutant IDs Report status Required native coverage
81 50–52 NoCoverage Private directory creation with mkdir, including creation failure and exact exception.
109 76–77 Survived Identity sidecar created with mode 0600 regardless of permissive umask.
148–150 124–133 NoCoverage Real open with O_NOFOLLOW, O_CLOEXEC, and O_DIRECTORY; reject symlink/file-type substitutions and invalid descriptors; verify descriptor ownership/closure.
167–169 148, 150–153 NoCoverage fstat identity, owner and mode extraction; native failure handling and exact IOException.
168 149 Survived Successful native fstat must not throw; failing native fstat must throw.
187–189 172–182 NoCoverage Executor UID required; directory mode exactly 0700, file mode exactly 0600; reject wrong owner, extra permission/special bits and stat failures.
195–196 184–189 NoCoverage Linux x64 acceptance and unsupported OS/architecture rejection with exact IOException.

Run the existing tests plus native filesystem cases and mutation analysis on a Linux x64 runner with disposable local files, no credentials and approvals off. Use real links, descriptors, permissions and captured native results, not mocked OS checks or reflection assertions about constants. Additional isolated ownership fixtures are needed for wrong-UID coverage. An unsupported-architecture runner (for example Linux ARM64) is needed to prove architecture rejection: Linux x64 alone cannot cover that outcome. Unsupported Unix OS rejection likewise needs an appropriate runner. Some individual flag mutations may need a dedicated descriptor-lifetime or child-process fixture to demonstrate an observable effect.

This list is platform-specific, not a claim that all remaining Windows/shared survivors are untestable or that Round 7 reached the mutation threshold.