Skip to content

Capture owned process trees and filesystem effects #59

Done

Description

@morluto

Problem

A root process can spawn workers, re-exec, and mutate files outside what PTY output reveals.

Outcome

Record owned descendant lifecycles and bounded filesystem before/after evidence inside declared roots.

Scope

  • Track root, children, grandchildren, reparenting, exit, and signal events.
  • Normalize PID/PPID while retaining raw values only in protected raw evidence.
  • Snapshot file type, mode, size, content hash, symlink target, and relative path.
  • Classify created, modified, deleted, and unchanged entries.
  • Isolate HOME and working roots.
  • Verify descendant and temporary-root cleanup.

Safety

Never inspect unrelated processes or undeclared filesystem roots. Prevent symlink escape, special-device reads, and unbounded trees. Bound depth, entries, bytes, and hashing.

Acceptance criteria

Fixtures prove child/grandchild/reexec behavior, file mutation/deletion, symlinks, escape rejection, truncation, cancellation, and cleanup. Missing observations remain unknown.

Dependencies

Parent: #48. Requires process scenario contracts, PTY adapter, and ownership.

Non-goals

System-wide syscall tracing, kernel extensions, or root-required observation.

Activity

  1. added
    enhancement
    P0: critical
    area: server
    area: tests
    roadmap
    on Jul 12, 2026
  2. morluto commented on Jul 17, 2026

    @morluto
    OwnerAuthor

    Current main substantially delivers the filesystem side through FilesystemSnapshot, ProcessSampling, ProcessOwnership, capture effects, and tests. The remaining gap is event-complete process-tree lifecycle fidelity: polling can miss short-lived descendants and does not prove complete spawn/exit/re-exec/reparent history. The issue should remain open for that ownership-semantic gap.

  3. morluto commented on Jul 17, 2026

    @morluto
    OwnerAuthor

    Current-main audit: filesystem created/modified/deleted/unchanged effects, sampled child/grandchild trees, cleanup, cancellation, and fixture coverage are delivered. Remaining scope is event-complete process-tree lifecycle fidelity: the current 50 ms procfs sampling can miss short-lived descendants and cannot prove full spawn, exit, re-exec, and reparent history. Keep open for an event-backed platform implementation and proof.

  4. morluto commented on Jul 20, 2026

    @morluto
    OwnerAuthor

    Split into focused child issues:

    These replace the broad remaining scope in this issue. Closing this parent can happen once all children are closed.

  5. added
    area: runtime
    and removed on Nov 23, 2026
  6. morluto commented on Nov 24, 2026

    @morluto
    OwnerAuthor

    Closing parent issue in favor of its sole remaining open child #333 (#332 is already closed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0: criticalarea: runtimearea: serverarea: testsenhancementroadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions