Skip to content

Role eval: a run unloads its HOME's scheduler job - #647

Merged
lydakis merged 2 commits into
mainfrom
claude/project-thread-acrsif
Nov 2, 2026
Merged

lydakis merged 2 commits into
mainfrom
claude/project-thread-acrsif

Conversation

@lydakis

@lydakis lydakis commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Why

Sonny loads one scheduler job per HOME into the person's own launchd or systemd, under me.lydakis.agent.scheduler.<tag>, whatever HOME made it. A role-eval run removed its automations but left that job loaded. Because the run's HOME stays on disk, the job never unloads itself, so the 11-02 burst eval left three jobs loaded on the Mac. Those have been unloaded by hand.

What changes

  • bench/role_eval.py: a new let_go_scheduler(home), called in a run's finally after agent shutdown.
    • On macOS it runs launchctl bootout gui/UID <plist> for each me.lydakis.agent.scheduler.*.plist in the run HOME's Library/LaunchAgents.
    • Elsewhere it runs systemctl --user disable --now for each matching unit in .config/systemd/user.
    • It only looks under the run's own HOME, so the person's own job is never touched. The job's file stays with the rest of the run.
  • tests/test_role_eval.py: test_a_run_lets_go_of_its_homes_scheduler_job_and_only_that covers both platforms and checks that an unrelated plist is left alone.

Daemon fast and light

No daemon or Sonny change. This is the eval bench only.

Tests

python3 -m unittest tests.test_role_eval passes.

Sonny loads one scheduler job per HOME in the person's own launchd or
systemd. A run removed its automations but left the job itself loaded,
so three burst runs left three jobs on the Mac.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGHSmyxToLa26Je2pfo
@lydakis lydakis self-assigned this Nov 2, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T01:19:03.662073Z a2cb61b New commits
🔒 Security Review ✅ Completed 2026-11-02T01:06:30.299797Z 07ea190 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

…-acrsif

# Conflicts:
#	tests/test_role_eval.py
@lydakis
lydakis merged commit 5e3016e into main Nov 2, 2026
9 checks passed
@lydakis
lydakis deleted the claude/project-thread-acrsif branch November 2, 2026 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants