You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Integrate event-backed process-tree capture into Process Capture v4 #333
I investigated the current main state around #333 (0771d11c7) and wanted to align on scope before starting implementation.
Current Codebase State
The earlier domain scaffolding from feat(process): replace procfs sampling with event-backed process-tree capture #453 (src/domain/process/eventProcessTree.ts) was removed in c93422a89 as unwired scaffolding, so Process Capture v4 (src/domain/process/processCapture.ts) currently only carries periodic process_samples (src/process/capture/ProcessSampling.ts).
PROCESS_CAPTURE_EVENT_COLLECTIONS includes frames, rendered_frames, interaction_events, lifecycle, process_samples, and filesystem_checkpoints, while processComparison.ts currently evaluates one combined "process" dimension.
Questions Before Implementing
Before opening a PR, could maintainers confirm the preferred direction on three design points?
Contract & Comparison Dimension Split: Should event-backed process-tree observations live in a distinct collection (e.g. process_tree_events with spawn / exit / re_exec / reparent + explicit platform unavailability) alongside process_samples, and should processComparison.ts treat sampled (process_samples) vs event-backed (process_tree_events) evidence as separate comparison dimensions (as required by acceptance criterion Release REA as one CLI with MCP mode #2)?
Scoped Rollout by OS: Would an incremental PR sequence work best here — e.g.:
PR 1: Contract + processComparison dimension split + ProcessCaptureLifecycle integration + Windows Job Object (JOBOBJECT_ASSOCIATE_COMPLETION_PORT / creation/exit notifications in native/windows/src/process.cc)
PR 2 / PR 3: Linux (proc connector / cgroup-v2 / eBPF-free netlink or ptrace/fanotify) & macOS (DarwinHelper / ES or kqueueEVFILT_PROC note-track) implementations + typed unavailability on unsupported hosts.
Existing Ownership Alignment: Should event-backed descendant discovery feed directly into ProcessOwnership (ProcessOwnershipProcessTree.ts) during cleanup so short-lived or setproctitle-mutated descendants are also tracked without relying solely on /proc/<pid>/environ?
Happy to start with PR 1 once the contract shape and staged approach are aligned.
Activity
prasad2512 commentedon Nov 26, 2026
I investigated the current
mainstate around #333 (0771d11c7) and wanted to align on scope before starting implementation.Current Codebase State
src/domain/process/eventProcessTree.ts) was removed inc93422a89as unwired scaffolding, so Process Capture v4 (src/domain/process/processCapture.ts) currently only carries periodicprocess_samples(src/process/capture/ProcessSampling.ts).PROCESS_CAPTURE_EVENT_COLLECTIONSincludesframes,rendered_frames,interaction_events,lifecycle,process_samples, andfilesystem_checkpoints, whileprocessComparison.tscurrently evaluates one combined"process"dimension.Questions Before Implementing
Before opening a PR, could maintainers confirm the preferred direction on three design points?
process_tree_eventswithspawn/exit/re_exec/reparent+ explicit platform unavailability) alongsideprocess_samples, and shouldprocessComparison.tstreat sampled (process_samples) vs event-backed (process_tree_events) evidence as separate comparison dimensions (as required by acceptance criterion Release REA as one CLI with MCP mode #2)?processComparisondimension split +ProcessCaptureLifecycleintegration + Windows Job Object (JOBOBJECT_ASSOCIATE_COMPLETION_PORT/ creation/exit notifications innative/windows/src/process.cc)DarwinHelper/ ES orkqueueEVFILT_PROCnote-track) implementations + typed unavailability on unsupported hosts.ProcessOwnership(ProcessOwnershipProcessTree.ts) during cleanup so short-lived orsetproctitle-mutated descendants are also tracked without relying solely on/proc/<pid>/environ?Happy to start with PR 1 once the contract shape and staged approach are aligned.