Skip to content

announce_spawn orphans its process group when the boot time is unreadable #9

Description

@slowernet

spawn.rb:182. announce_spawn's rescue calls Spawn.reap, which returns :unknown_boot without signalling when the host cannot read its own boot time. The group is orphaned and the raise parks behind the child for 30 seconds.

Test already written and red: test_the_group_dies_even_when_the_boot_time_is_unreadable.
Fix already verified: have announce_spawn signal the group it just created — it cannot have crossed a reboot, and CLAUDE.md names it as the one sanctioned exception.

Spawn.reap's boot gate must NOT be loosened: Supervisor#reap feeds it pgids straight out of the database and test_hostile_input pins it at :unknown_boot. The contained fix turns the spawn file green, leaves test_hostile_input passing, and drops the file from 13s to 7.6s.

Context: docs/notes/2026-08-20-plan-3a-review-triage.md, session order 8.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions