Re-enable directives cram test with robust synchronization
- Restore comprehensive directives test (850+ lines) that was temporarily disabled
- Update expected outputs for current environment (OCaml 5.4.0)
Test infrastructure improvements:
- Socket path configurable via JS_TOP_WORKER_SOCK environment variable
- Worker forks: parent blocks until child is ready, then prints child PID and exits
- Child redirects stdout/stderr to /dev/null so shell $() capture completes
- No polling, no sleeps - deterministic pipe-based synchronization
- Each test uses unique socket path for parallel test isolation
Usage:
WORKER_PID=$(unix_worker) # Blocks until ready, returns child PID
unix_client init ... # Guaranteed to connect immediately
kill $WORKER_PID # Clean shutdown
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>