Join our Newsletter — 33% off our NHI Course

What should organisations do when AI agents run as Jobs or CronJobs?

For scheduled agents, the CronJob should carry the baseline because it is the stable object across repeated runs. Each Job is new, so a pod or Job keyed baseline loses history by design. Treat changes to the job template as the release boundary, and use a consistent agent label for one off Jobs launched by pipelines so attribution does not reset every run.

Why the CronJob is the right baseline for scheduled AI agents

For scheduled agents, the CronJob is the durable control object because it represents the repeatable schedule and the job template that defines each execution. A Job is intentionally ephemeral, so using the Job or Pod as the baseline will hide drift between runs and make comparisons noisy. The release boundary is the template change, not each execution.

That distinction matters operationally: the thing you review, baseline and monitor is the stable specification that produces runs, not the transient run itself. When a scheduled agent behaves differently, you want to know whether the schedule, image, environment, arguments or permissions changed since the last known-good template.

How one-off Jobs should preserve attribution and change history

One-off Jobs launched by pipelines should use a consistent agent label so the operational identity of the work does not reset on every execution. That label gives teams a way to preserve attribution, compare behaviour across runs and attach alerts or audit records to the same logical workload even when the underlying Job object is new each time.

This is especially useful when the same pipeline can launch many short-lived Jobs. Without a stable label, history fragments across ephemeral objects, and the team loses the ability to tell whether a failure, permission change or unexpected action belongs to the same agent pattern or to a different execution context.

What to baseline, and what to treat as a release event

Baseline the CronJob spec, the job template, the image reference, the command and arguments, the environment, and any permissions or secret references the agent depends on. Those fields define the agent’s repeatable operating posture and are the right place to look for drift.

Use template changes as the release boundary. If the schedule stays the same but the template changes, treat that as a new version of the agent workload and reset approval, review and comparison from that point forward. If the template stays the same, then variation in runtime outcomes is much more likely to be a run-time issue, a dependency problem or an external input problem rather than an intended release.

Risk and Threat Considerations

Ephemeral Jobs can make drift, privilege creep and unauthorised changes harder to see because each run creates a fresh object with its own metadata. If teams baseline the wrong object, they may miss a template change that quietly expands access, swaps an image, or alters the agent’s execution behaviour.

Failure mechanism: The baseline is attached to the transient Job or Pod instead of the CronJob template, so history resets on every run and review becomes detached from the real release boundary.

Impact: Security and operations teams can lose change detection, misattribute actions, and fail to spot repeated abuse or accidental privilege expansion across scheduled runs.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 sets the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

Framework Control / Reference Relevance
NIST SP 800-53 Rev 5 CM-2 — Baseline Configuration CronJob templates need a controlled baseline for repeatable runs and drift detection.
CM-3 — Configuration Change Control Template changes define the release boundary for scheduled agent behaviour.
AU-2 — Audit Events Stable labels and template-linked records support attribution across ephemeral Jobs.
Recommendation — Baseline the CronJob template and review any template change as a controlled release. Treat CronJob template edits as controlled changes requiring review and approval. Log scheduled-agent runs against the stable workload identity and label.
ISO/IEC 27001:2022 A.8.32 — Change management CronJob template updates are the meaningful release point for recurring agent execution.
A.8.15 — Logging Stable attribution across short-lived Jobs depends on durable operational logging.
Recommendation — Manage CronJob template changes as controlled production releases. Log each run with a persistent label that ties back to the same agent.

Practitioner Guidance

What to verify: Confirm that your monitoring, audit and approval flow keys scheduled agents to the CronJob template, not to each Job instance. For one-off pipeline Jobs, verify that the label is stable enough to support search, alerting and incident reconstruction across executions.

Decision rule: If a field change alters what the agent can access or do, treat it as a release event and rebaseline it. If the field is only a run-specific artifact, keep it out of the baseline so the control signal stays clean.

Practitioner takeaway: The stable object is the one that should carry governance, because that is where meaningful drift can be detected and reviewed without losing the continuity of the agent’s history.