Agent Build Tutor
Map / Outline

Operations and deployment

Supervision, scheduling, logs, backups, and recovery, so the system runs when nobody is watching.

What it is and why it exists

What

Operations covers how services start and restart, how background work is scheduled around live traffic, how logs are kept readable, how data is backed up and restored, and how changes are rolled out and rolled back.

Why

An agent that works in a terminal session and dies on reboot is a demo. Most of the reference build's lost time came from operational causes: a stripped service environment, a noisy probe, single-writer stores, backups on the same volume they protected.

How it works

Where it sits in the build order

Needs first

  • Inference engineeringThe engine is the first service to supervise, and its memory limits decide what can run at the same time.Build out of order Stub it with: Start services by hand in terminal tabs.
  • Harness engineeringThe agent server is the main service. Its health endpoint and busy marker are what the supervisor and scheduler read.Build out of order Stub it with: Supervise the engine alone.
  • EvaluationScheduled evals and the daily report are how you learn that a deploy made things worse.Build out of order Stub it with: A manual smoke test after each change.

Unlocks

Nothing depends on this. It is an end point of the map.

In the reference build

PathRole
Install-Autostart.commandInstalls supervised services.
Check-All-LLM-Status.commandOne-screen status of every service and model.
apps/agent-server/nightly/scheduler.pyDuty cycle and preemption.
apps/ops/pg_backup.shDatabase backup, with a restore test beside it.
SOP-LLM-OPERATIONS.mdOperating procedures.

The same idea on other platforms

PlatformHow this module maps
DatabricksServing endpoints, Jobs, and Apps are supervised by the platform. You own versions, permissions, cost alerts, and promotion between workspaces with asset bundles.
IBM watsonxThe platform runs the services. You own environments, deployment spaces, and promotion between them.
CodexOperations here means CI: headless runs, sandbox settings, and secrets handling for the agent.
CursorSame: team rules in the repo, background agent settings, and secrets.
Claude Code / Agent SDKHeadless runs in CI, managed settings, and permission policies. For a service built on the SDK, operate it like any other service.
Another machinesystemd units and timers in place of launchd. The backup and status scripts are shell and Python.

Explain it back

Answer aloud first. Then open the answer and compare.

Which files do you back up, and which do you not?
A strong answerBack up what cannot be reproduced: databases, keys, prompts, skills, eval sets, scripts. Skip model weights and source documents that can be downloaded again.
A service runs fine by hand and fails under the supervisor. What is the usual cause?
A strong answerEnvironment. The supervisor starts with a minimal PATH and no shell profile, so a binary or virtual environment is not found. Use absolute paths in the service definition.

From the live build

Recent changes and files the sync job filed under this module.

Ask the tutor about this module