Skip to content

[Feature / Docs]: Production Headless Server Supervision & Bundled orca-server Skill #62

Open

Description

@LesleyMurfin

[Feature / Docs]: Headless Server Onboarding, Production Supervision & Bundled orca-server Skill

What is this?
Official systemd supervision patterns and a bundled orca-server skill for keeping headless Orca servers reliable and debuggable by agents.

Why do I care?

Problem How This Solves It
Terminals Die on Restart Documents systemd-run --user --scope so PTYs/agents survive systemctl restart.
Crash-Looping on Faults Unit pins RestartPreventExitStatus=3 78 and KillMode=mixed to fail loudly instead of thrashing.
Lost Headless Docs Restores and hardens setup docs removed in PR stablyai#26328.
Agent Blindspots New orca-server skill lets agents triage their own host rather than failing blindly.
Zero-Jargon Onboarding prompt.md asset allows operators to hand an AI agent one URL for a full, secure server install.

Blast Radius

  • Zero Binary Changes: No new dependencies, no core app modifications.
  • Pure Additive: Only updates docs/remote-servers.mdx, adds static prompt.md, and bundles the orca-server skill docs.

Testing

  • vitest: 39/39 passed (contracts: remote-servers-doc-contract.test.mjs, generate-bundled-skill-guides.test.mjs, skill-description-length.test.mjs)
  • node --test: 16/16 passed (docs/site/tests/*.test.mjs)
  • Scripts: generate-bundled-skill-guides.mjs --check cleanly exits.
  • Functional: Live Docker container pairing verified over bridge network.

Related Issues and Upstream Context

Architecture & Implementation Details
  • Hardened systemd Unit: Copy-paste /etc/systemd/system/orca-serve.service preventing PTY SIGKILLs via KillMode=mixed.
  • Terminal Survival: loginctl enable-linger + daemon scoping.
  • Bundled Skill: Shipped via existing generator (skill-guides/orca-server.md, references/systemd-supervision.md).
  • Agent Fetch Prompt: /docs/agent-setup/prompt.md allows zero-click setup via Claude/OMP.
[systemctl restart orca-serve.service]
                 │
                 ▼  (KillMode=mixed sends SIGTERM only to main process)
      [orca serve daemon] ─── shuts down cleanly
                 │
                 ▼  (PTY daemon runs in sibling user scope)
      [orca-daemon.scope] ─── SURVIVES! Terminals remain alive!

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