Skip to content

Clarify cleanup reasons for unverified process identities #181

Closed

Description

@ElbertePlinio

Found as a nonblocking source-review note on PR178/#180. In packages/core/src/containment.ts, destroyContainmentScope currently describes every pending survivor as having survived SIGKILL. An identity can instead remain pending because stat or token ownership cannot be reverified, so no SIGKILL is authorized. The false-confirmation safety defect is repaired by #180; this follow-up is about accurate diagnostics, not relaxing ownership checks.

  • Use neutral cleanup-unconfirmed wording or distinguish verified survivors from unverifiable identities. Do not claim that a process was never signalled unless evidence establishes that; a prior SIGTERM may have occurred before identity became unreadable.
  • Preserve structured confirmed/signaled/survivors/refused semantics, deadlines, UID/token/start checks and the existing unreadable-containment-token diagnostic compatibility.
  • Add focused assertions for unsignalled unverified and mixed survivor results without starting unrelated real apps or weakening identity checks.

The bounded regression log/soft assertions and the fixture finally-block failure reporting were also reviewed as optional diagnostic choices, not blocking containment defects. Do not broaden this into a cleanup refactor. Historical #179 remains unexplained.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions