fix(reaper): declare and detect the Linux 4.7 waitid capability #49
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 210 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.320
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #49"
general
weight: 0.35
steipete
Fixes #48.
Linux kernels before 4.7 reject the
__WALLwaitid option required to observe non-SIGCHLD children. Report that limitation asunsupported-platform, document it, and exposechildObservationSupported()so callers can check the capability before using strict observation. Reaping retains its existing behavior unless its own wait mask is rejected.The probe observes the actual wait capability without consuming child status or caching per-thread restrictions. Denied waits remain typed
access-deniederrors from operations; the nonthrowing probe returns false. Existing PID validation, libuv child ownership, and full wait semantics remain unchanged. No retry or reduced-semantics fallback is added.Regression proof uses an isolated child with seccomp returning EINVAL or EACCES only for explicit
__WALLwaits, on both the main thread and a Worker. The same harness also checks invalid PIDs. Existing real Node/libuv adoption and reaping proof remains enabled.Local lint, TypeScript, build, focused tests, and independent P2 review pass. Fresh native Linux baseline/candidate proof and the full platform CI matrix are running. Contributor credit is preserved; no release or version bump is included.
Native Linux proof passed at 037512e50854819e47ed8afa5c926f37ead46302: the original implementation reproduces
operation-failedfor the rejected mask; the candidate passesPROC_SAFE_NATIVE=require pnpm check(144 tests, 15 platform/capability skips), Cargo formatting/Clippy/tests, and root-only npm/pnpm native consumer smoke. The final follow-up only adds the probe signature to the API reference. Exact-head cross-platform CI remains the merge gate.