Skip to content

[Yana OS] Add automatic scheduler and cross-platform process supervisor #169

Description

@yanacuti1121

Context

Yana now has durable action intents and native system-health sampling, but it does not yet have an authoritative scheduler or cross-platform process supervisor.

Objective

Run approved automatic work without requiring the user to invoke a command for every cycle, while preserving truthful process lifecycle and resource boundaries.

Scope

  • Add an explicit one-time service installation flow followed by automatic operation.
  • Define scheduler cadence, wake-up, backoff, and single-worker ownership.
  • Define process-tree behavior for macOS, Linux, and Windows.
  • Track PID/process identity without claiming liveness from stale metadata.
  • Forward cancellation and shutdown signals.
  • Recover actions left running after worker crash.
  • Integrate resource-policy preflight before process launch.

Platform contract

  • macOS: launchd-compatible service and process-group semantics.
  • Linux: systemd user service/timer and cgroup-v2 evidence where available.
  • Windows: Task Scheduler/service entry and Job Object semantics.

Acceptance criteria

  • Only one worker claims a given project queue.
  • Restarting the service does not duplicate action execution.
  • SIGTERM/stop requests reach the active process tree.
  • SIGKILL/crash releases locks and produces recoverable state.
  • Orphaned descendants are detected and reported truthfully.
  • Install/status/uninstall paths are documented and tested per platform.
  • No service installation happens silently during package installation.

Dependencies

Attribution

Roadmap owner: Vũ Văn Tâm. Initial issue structure: OpenAI Codex.

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

    area:runtimeyana-rt core runtimearea:yana-osYana OS management and automation planecodexenhancementNew feature or requestplatform:cross-platformmacOS, Linux, and Windows behaviorpriority:p0Blocking or foundational priority

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions