Cotal TypeScript packages
    Preparing search index...

    Function reapSeat

    • Reap one custodied seat: a crashed manager's orphan, a lingering custodian, or a cleanly exited seat whose custodian unlinked its on-disk record.

      When the record exists on disk, it is verified against the live kernel state. When the on-disk record is absent, opts.pinnedRecord allows the launching/adopting runtime to supply its authoritative pinned start identities to execute the same kernel identity and group checks. An unknown reference with neither on-disk file nor pinned record returns absent (failing closed as RuntimeReapUnproven).

      Signals the custodian and the child only while their current start identity matches the record. The child's descendants are not in the record, so its process group is signalled by pgid and then swept by membership alone, and the record's contents are trusted as written; docs/security-boundaries.mdx lists both as accepted residuals. Verifies the custodian, the child and the child's whole process group gone, then removes the custody record directory.

      Parameters

      • root: string
      • id: string
      • opts: { graceMs?: number; pinnedRecord?: SeatRecord } = {}

      Returns Promise<SeatReapEvidence>