Epic: Fix server spawning and discovery #32

Open
opened 2026-03-14 23:53:11 +00:00 by freemo · 0 comments
Owner

Background

The ephemeral server spawning polls $manager in the parent process after spawning a child, which never succeeds (the child sets $manager in its own address space). The --attach mode has no actual server discovery mechanism.

Demonstrable Outcome

Server discovery uses DRb over a Unix socket. The running Aethyr server exports $manager via DRb, and experiments connects to it reliably in both attach and spawn modes.

Acceptance Criteria

  • Aethyr server exports $manager via DRb.start_service('drbunix:tmp/aethyr.drb', $manager)
  • Experiments Runner connects via DRbObject.new_with_uri in attach mode
  • Spawn mode forks, waits for DRb socket, then connects
  • bin/aethyr_experiments has execute permission (755)
  • Unit tests verify both connection modes
## Background The ephemeral server spawning polls `$manager` in the parent process after spawning a child, which never succeeds (the child sets `$manager` in its own address space). The `--attach` mode has no actual server discovery mechanism. ## Demonstrable Outcome Server discovery uses DRb over a Unix socket. The running Aethyr server exports `$manager` via DRb, and experiments connects to it reliably in both attach and spawn modes. ## Acceptance Criteria - [ ] Aethyr server exports `$manager` via `DRb.start_service('drbunix:tmp/aethyr.drb', $manager)` - [ ] Experiments Runner connects via `DRbObject.new_with_uri` in attach mode - [ ] Spawn mode forks, waits for DRb socket, then connects - [ ] `bin/aethyr_experiments` has execute permission (755) - [ ] Unit tests verify both connection modes
freemo self-assigned this 2026-03-15 04:25:22 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: aethyr/Aethyr#32
No description provided.