Operations
Nomatron is in early access. Some advanced workflows may not be covered in the public docs.
An Operation is a recorded unit of deployment workflow in Nomatron.
Operations capture meaningful actions such as planning, applying, destroying live runtime jobs, promoting, rolling back, importing, rendering, or reconciling state. They provide the operational history of what happened, who triggered it, and what state changed as a result.
Operations sit at the center of runtime workflow. They tie together:
- the app or app job being acted on;
- the target app environment or promotion path;
- the approval state, where relevant; and
- the resulting deployment or reconciliation outcome.
Deployment operations require an app environment. If the user does not choose one for a normal deployment, Nomatron uses the first app environment by priority. Speculative plans can target a specific app environment so teams can review the expected change before choosing whether to deploy.
Promotion operations move a release to the next app environment in order. New deployments and redeployments start again from the first environment and supersede incomplete promotion progress.
Operations are important because they turn platform changes into auditable workflow records rather than opaque state transitions.
Operationally, operations matter because they:
- make plans and applies inspectable;
- provide traceability for approvals, promotions, and rollbacks;
- support incident review and release debugging; and
- form the history teams rely on when understanding what changed and why.
Rollback Workflows
Rollback restores a prior healthy release in the same environment.
A rollback creates a normal plan (not a separate worker type) pinned to a prior release’s commit SHA, with a synthetic ref of the form rollback:<environment_id>:<source_release_id>. Instead of re-fetching Git and re-rendering with live variables, Nomatron replays that release’s plan rendered_template artifact so the runtime matches what was deployed at that point in time (including interpolated variables).
Operators can omit source_release_id to use the previous healthy release before the current head, or pass an explicit healthy prior release ID. Unhealthy or unknown releases are rejected; to deploy an unhealthy SHA, use a normal plan or deploy with an explicit --commit-sha.
After apply, Nomatron records a new release, captures a new drift snapshot from Nomad, and runs the usual health checks. Drift compares Nomad against that latest applied snapshot, so rolling back behind the branch tip does not create false drift.
Rollback differs from promote (forward to the next environment) and destroy (stop and purge runtime without deleting Nomatron configuration). Callers need the rollback permission on app job environments; audit logs record rollback.create.
Destroy Workflows
Destroy workflows are runtime workflows, not configuration deletion workflows.
A job-level destroy plan targets one deployed Nomad job for one app job. An app-level destroy plan creates a batch of per-job destroy plans for all deployed jobs in the app. Applying a destroy plan stops and purges the target Nomad job from the runtime, records the runtime state as destroyed, and suppresses drift checks for that target until the job is redeployed.
Nomatron keeps the app, app job, environments, approval policy, releases, and audit history intact. Redeploying the app job records a normal deployed runtime state again and drift checks resume from the new deployment.
Destroy plan creation uses the same approval policy model as deployment planning. Callers need the destroy permission for app jobs, and audit logs include the destroy plan or batch ID, target count, target Nomad job IDs, namespaces, clusters, and apply operation metadata.