8000 vivarium: lifetime-chain gaps: UML bridge children, MCP-started runs, an OOM-killed agent · Issue #1479 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

< 10BC8 bdi class="markdown-title issueTitle__zprx8E" data-testid="issue-title">vivarium: lifetime-chain gaps: UML bridge children, MCP-started runs, an OOM-killed agent #1479

Closed

Description

@Lillecarl

Review findings R7, R8 and the agent nit in R10 on #1444.

  • R7: uml-passt-bridge forks passt and the kernel, and neither child sets a parent-death signal. _reap's SIGKILL step kills the group only.
  • R8: a run that vivarium-mcp started has no parent-death signal and pauses with no time bound. stop_all stops the runs one at a time, 70 s each.
  • R10: the agent unit has no OOMScoreAdjust, so the OOM killer picks it first. That is the "looks like a hang" trap.

Fix:

  • prctl(PR_SET_PDEATHSIG) in both bridge children, and kill the guest pid in _reap.
  • MCP children die with the server, and the server stops runs concurrently.
  • OOMScoreAdjust = -1000 on the agent.

Trap for #949: with a launch in to_thread, die_with_parent fires when the worker thread retires.


Assisted-By: Claude Opus 5.5

Activity

  1. added
    source: vivarium
    on Nov 17, 2026
  2. added theissue type on Nov 17, 2026
  3. Lillecarl commented on Nov 17, 2026

    @Lillecarl
    ContributorAuthor

    Landed (main "Lock the sources at nixidae d2f28d4"): R7, the bridge children's death signal and _reap on the guest pid; R8, MCP runs end with the server, and stop_all is concurrent. checks.cleanup also matched neither uml-passt-bridg nor passt.avx2 before; it does now.

    Open, needs a decision, the agent's OOM score (R10). OOMScoreAdjust = -1000 passes to every command the agent runs, so a test's workload becomes unkillable and the OOM killer takes something else. Options:

    1. Recommended: the agent sets -1000 on itself at start (a container guest may refuse; it then runs on at 0), and runs each command under choom -n 0 -- (util-linux in the agent's closure). One place for systemd, dinit and image guests.
    2. OOMScoreAdjust per unit, and a reset in preexec_fn. The agent is threaded, and Python calls preexec_fn unsafe with threads. dinit and image guests need their own setting.
    3. Leave it. The CLAUDE.md trap stays true.

    Assisted-By: Claude Opus 5.5

  4. added
    needs decision
    on Nov 17, 2026
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

    needs decisionsource: vivarium

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0