In the past months, I was working on tracking down a bug caused by the dependency PTY package that the Buildkite agent depends on. The symptom is the BK job randomly failed with following error message:
Fork/exec ... operation not permitted
The Buildkite support is really useful to help me pin down the issue. Just sharing the finding in my post here. Hope it will be useful to you as well.