Skip to main content

Governance for AI Workloads

Autonomy is not a property of the model. It is authority granted by the surrounding system, with boundaries, evidence, verification, and a way to stop.

Lovell Felix 10 min read

One of the more useful boundaries in my current agent setup has nothing to do with which model I use.

A worker can create a branch and open a draft pull request. It cannot merge the change.

That split started as a practical safety measure, but it exposed a broader point. The hard part of autonomy is not only whether the model can complete the task. It is deciding what authority the workload should have while doing it.

The same pattern shows up elsewhere in the system. A classifier can identify work without being allowed to execute it. A mail workflow can draft a response without owning destructive actions. A reviewer can inspect a change without receiving the credentials needed to deploy it.

That is where governance enters the placement problem.

From Model Routing to Workload Placement separated task execution from inference placement. Placement Profiles described what a workload needs. Admission Control for AI Workloads covered whether an eligible target can accept the work. Observability for Placement Decisions made those decisions explainable.

The remaining question is what the workload is allowed to do once it starts.

Autonomy is not a property of the model. It is authority granted by the surrounding system.

Start with the workload's authority

AI systems are usually described in terms of model capability. Can it plan? Can it browse? Can it write code, call tools, review a patch, or recover from an error?

Those questions matter, but they do not tell me what a particular workload should be allowed to do.

A smaller model running inside a privileged worker can carry more operational risk than a stronger model in a read-only session. A coding agent that can open a draft pull request is different from one that can merge to the default branch. A scheduled mail task that can delete messages is different from one that can only classify them.

So the authority decision has to come before model choice.

For each workload I need to know what data it may read, which tools it may call, which credentials it receives, what environments it can change, what artifacts it may create, and which transitions still require someone else to approve them.

That is an extension of the placement argument, not a separate concern. Placement decides where the work may run. Governance decides what authority follows it there.

Do not give one worker every role

The easiest way to make this concrete is to separate stages that have different responsibilities.

classify or propose
        ↓
decide whether work is eligible
        ↓
execute inside a bounded environment
        ↓
verify the result
        ↓
approve or publish

Those stages can use the same underlying software, but they should not automatically share the same permissions.

In my issue workflow, classification is advisory. A separate gate decides whether work can be enqueued. The implementation worker can create a branch and draft pull request. Review happens on another path. Merge is still a human decision.

The value is not only security. It also makes a failure easier to locate.

If a bad change reaches the default branch, I do not want the only explanation to be that the model made a mistake. I want to know which boundary failed to contain it: classification, policy, execution, verification, or approval.

Autonomy depends on the kind of work

I do not find the manual-versus-autonomous distinction very useful anymore.

The same agent can have very different authority depending on the workload.

A repository review may be read-only. An implementation task may be allowed to create a branch and draft pull request. A generated change may be allowed to update an isolated test environment. A production or destructive action may still require an explicit gate.

What changes across those cases is not necessarily the model. It is the permission envelope around the task.

That also means autonomy can grow gradually.

I am comfortable allowing more automation where the artifact is easy to inspect or discard. A draft can be edited. A branch can be deleted. A failed analysis can be ignored. Those are very different from merging to the default branch, publishing externally, changing production policy, deleting data, or widening access.

The closer an action gets to being difficult to reverse, the more evidence I want before the transition happens.

Prompts are not an enforcement boundary

I still use prompts to tell agents what they should and should not do.

I just do not want a sentence in a prompt to be the only thing preventing a privileged action.

If a workload must stay private, the allowed inference targets should enforce that. If a reviewer should not push code, it should not receive a push token. If a task should not modify a protected path, the workspace or tool boundary should make that difficult or impossible.

The surrounding policy needs to carry the durable rules.

In practice that includes locality, approved execution and inference targets, tool and command allowlists, credentials, filesystem boundaries, network access, budgets, retries, required checks, approval points, and where artifacts may be written.

I want those rules named and versioned for the same reason I want a versioned placement profile. When behavior changes, I need to know which policy allowed the previous decision and what would happen under the new one.

The enforcement itself can remain distributed. Repository permissions, sandbox controls, service configuration, cloud IAM, and network policy can each enforce the part they already own. The useful contract is the part that tells me what authority the workload was supposed to have.

Give the worker only what the workload needs

This has changed how I think about credentials in the homelab.

A general-purpose worker is convenient, but letting it inherit every credential available on the host creates an authority problem that no prompt can really fix.

A repository review may need read access and nothing else. An implementation worker may need branch and pull-request permissions without merge authority. A mail classifier may need read and label access while a different path owns deletion. A health check may need metrics without administrative access.

The same idea applies to mounted files, environment variables, API scopes, network routes, and exposed tools.

The workload should receive the capability it needs for that run, not everything the machine happens to have.

That also gives prompt injection a much smaller blast radius. The safest response to an unexpected instruction is not only for the model to refuse. It is for the requested capability to be missing.

Untrusted input cannot change the boundary

Most of these workloads consume text that can influence what the model does.

Issue bodies, pull-request descriptions, web pages, emails, logs, and repository content can all contain instructions. Some are legitimate context. Some are not.

I treat that material as input to the task, not as a source of authority.

A pull-request description can tell a reviewer what changed. It should not grant permission to expose a secret or modify another repository. An email can request an action. It should not decide which credentials the mail worker receives.

Fencing and classification help, but the stronger boundary is external to the model. Untrusted input should not be able to widen the workload's permissions.

Execution success is not verification

This is another boundary I have become stricter about as more work gets automated.

A process returning zero only tells me that the process finished successfully. It does not tell me that the result is correct.

The implementation worker also should not be the only thing deciding whether its own output is good enough.

Sometimes verification is simple: tests, a linter, schema validation, or a diff constraint. Other changes need an independent review, runtime checks, a canary, or a human decision. The method should match the risk of the change rather than the sophistication of the model.

I want execution and verification recorded separately.

The execution result says what the worker did. The verification result says whether the output met the controls required for that workload.

That separation matters more as the system begins doing work that used to be entirely interactive.

Put human review where it changes the outcome

I do not want a person approving every low-risk step. That turns automation into a slower version of the manual process.

I also do not want a model deciding every consequential transition simply because it completed the preceding steps correctly.

The useful boundary is where a mistake becomes expensive or difficult to reverse.

By the time work reaches that point, the system should already have produced enough evidence to make the decision useful: what was placed where, which policy applied, what changed, which checks passed, what review found, and how the action can be rolled back.

That is a much better use of human review than asking someone to replay the entire task from the beginning.

What exists in my system today

The current setup already has several pieces of this behavior.

The issue pipeline separates classification, enqueue, implementation, review, and merge. The mail pipeline separates classification and drafting from destructive promotion. Workers use constrained tool and environment allowlists. Untrusted issue and pull-request content is fenced before it reaches implementation or review prompts. Exposed services fail closed when authentication is missing. Run and audit records go to a shared ledger with secrets redacted.

It is not one governance system.

Some controls still live in individual scripts, workers, service configuration, and repository permissions. I am not trying to hide that behind a cleaner architecture than I actually have.

What I keep finding, though, is the same set of boundaries underneath those implementations: workload-specific authority, constrained environments, independent verification, reviewable artifacts, and stronger gates as an action becomes harder to reverse.

Those are the parts worth turning into a common contract.

The workload also needs a stop path

A workload with authority to act also needs a defined way to stop.

Queued work should be cancellable. Active execution should be interruptible. Credentials should be revocable. A target should be removable from eligibility. A policy version or scheduled trigger should be disableable. Generated changes should have a rollback path.

Stopping the process is not always enough.

A worker may have claimed an item, created a workspace, written part of an artifact, or started an external action. After cancellation I still need to know what state is left behind and whether someone needs to reconcile it.

That is one reason the workload identity and decision records from the earlier articles matter here. They give me a way to find the attempts affected by a policy or target change and work out what remains after the stop.

The common layer should stay small

There is an obvious failure mode in this design: building another large control plane that tries to own every queue, scheduler, credential, runtime, model, and tool.

I do not think that is necessary.

The useful common layer is the contract between them.

workload profile
placement-target capabilities
policy decision
admission outcome
decision record
execution result
verification result
approval state

The scheduler can still own timing. Kubernetes, systemd, a sandbox, or a local process can own execution. A proxy can own inference routing. OpenTelemetry or a local ledger can carry events. GitHub can own review and merge authority.

The point is not to replace those systems. It is to keep workload intent, placement, capacity, authority, execution, and evidence consistent while the work moves between them.

Where this leaves the project

This series started because model routing stopped being enough for what I was running in the homelab.

Once workloads could move between my laptop, local inference, private workers, queues, and approved cloud APIs, I needed answers that a model router could not provide.

Where should the task run? Where should inference happen? Is the target qualified? Can it take the work now? Why did the system choose that path? What is the workload allowed to do once it gets there?

The implementation I have today is still a prototype spread across several components. The direction I want to take next is to pull the durable pieces out of that setup: a workload manifest, placement profiles, target capabilities, admission adapters, decision records, execution adapters, and separate verification and approval state.

Not because I want another agent platform.

I want the decisions around the agent to be explicit enough that the model, runtime, worker, or scheduler can change without losing the operational boundaries around the work.

That was the original problem underneath this series.

Routing picks a model. Placement decides where the work may run. Admission protects shared capacity. Observability preserves the evidence. Governance defines the authority around the workload.

The model will change. The operational boundaries still have to hold.

About the author

Lovell Felix

Infrastructure and reliability engineer working on Linux platforms, configuration delivery, and deployment safety at fleet scale.

More notes