jackwener/maka-agent

ci(headless): alignment_audit leaks unhandled pty write (EBADF) failures

Aperta

#2296 aperta il 6 ago 2026

 (1 commento) (0 reazioni) (0 assegnatari)TypeScript (0 fork)github user discovery
good first issue

Metriche repository

Star
 (1 stella)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Failure mode (in the alignment_audit lane):

Unhandled pty write error [Error: EBADF: bad file descriptor, write]

surfaced as a lane failure; passed on rerun.

Observed: #2273 alignment_audit; passed on rerun.

Likely cause: pty fd closed while a write is still in flight during headless-session teardown under load.

Suggested fix: track pty lifecycle (abort pending writes before close) and/or treat post-close write errors as benign in the audit harness.

Guida contributor