Repository navigation
feat: add process identity and Darwin coalition capabilities - #1
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR adds native process identity and ancestry APIs, Darwin coalition queries, platform packages, and release automation. Example: A Windows child exits with code 259 while another process retains its kernel handle.
Review scores
ProductKind: Feature · Worth it: Yes Merge readiness⛔ Blocked before merge - 3 items remain Keep open: current main lacks these useful native capabilities, and this PR contains substantial unique work; the earlier Windows denial blocker is resolved. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherTypeScript capability subpaths lazily load a platform addon that converts kernel observations into process identities, coalition information, or typed errors. flowchart LR
A[Application] --> B[Capability API]
B --> C[Lazy native loader]
C --> D[Platform addon]
D --> E[Kernel observation]
E --> F[Identity or typed error]
Technical reviewBest possible solution: Preserve the native observation APIs and ensure release authorization remains valid when publication and promotion perform their final effects. Do we have a high-confidence way to reproduce the issue? This PR introduces capabilities rather than fixing a current-main bug; real-addon lifecycle and Worker checks exercise the native paths. Is this the best way to solve the issue? Lazy capability subpaths and native-owned observations fit the repository contract, while the privileged release path needs a verified authorization handoff. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 085ebb9701b6. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionProvenance checked
TestingProof path: in-process harness. SecurityNeeds attention: Release-source authority persists across jobs without established revocation behavior at publication and promotion. EvidenceSecurity concerns:
What I checked:
Likely related people:
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (5 earlier review cycles)
Reviewed October 10, 2026, 2:14 AM ET / 06:14 UTC (Revision 6). |
Summary
Add
@openclaw/proc-safewith lazy process identity and Darwin coalition capabilities. Identity reports PID, parent, epoch birth, resolution, and exited state. Linux and FreeBSD also expose boot-relative birth for stable PID-reuse comparisons. Unreaped zombies and retained Windows objects keep their identities; uncertain observations throw typed errors.Missing-record results are policy-aware. Cached FreeBSD visibility settings and the actual Linux
/procmount determine whether absence is proven or must be reported as access-denied with a visibility-policy reason. Imports never initialize the addon, and no shell fallback runs in the package.Validation
All 24 required checks pass at
99deacb740b28084caab846d59fe78ccee6c8468: CI run. The complete branch review has no actionable findings.FreeBSD 14.4 runs under real FreeBSD kernels; ARM64 CPU execution is QEMU-emulated. Cargo builds inside each VM and the shared native suite runs directly with Node. No pnpm executable is needed inside the VMs.
Native and release boundaries
Darwin's SDK-compiled kernel observation supplies zombie identities excluded by libproc. Windows keeps handles through birth/parent/exit observations and disambiguates STILL_ACTIVE from an application exiting with code 259. Ten exact-version optional packages keep imports lean.
The protected-tag release workflow verifies collected tarball bytes, registry signatures, and exact workflow certificate identity. Platform packages verify before root publication. No packages, tags, releases, or repository settings were published or changed.
Ready for maintainer review; this PR has not been merged.