An engineering team asks an AI agent to investigate failed order imports and prepare a fix. It can read test logs, inspect a copy of the repository and write a patch. It cannot read customer records or deploy the change.

The model may propose any of those actions. Whether they happen depends on the software around it: the tools it exposes, the credentials it supplies, the permissions it checks and the environment where it runs commands. This software is often called an agent harness.

On September 11, 2026, the Australian Signals Directorate (ASD) published Agentic AI Harnesses: The layer above the model. The guide explains why organizations need to assess this layer alongside the model. We use a hypothetical order-import investigation to show where controls belong, how they can fail and what evidence a team should collect before expanding access.

What is an AI agent harness?

A harness is the software that runs the agent's working loop. It gathers context, sends it to the model, receives a response, checks a proposed tool call and, when permitted, executes it. It can then return the tool's result to the model for the next step. It also manages state, failures and stopping conditions.

The distinction is easiest to see with a file edit. The model produces a proposed change or a request to use an editing tool. Software outside the model interprets that request and writes the file. The operating system and the tool's credentials determine which files that process can change.

ASD uses a broad definition: the harness includes the components around the LLM, from the interface and context manager to connectors, memory and audit records. It may be built internally or supplied through a commercial service. A sandbox, an MCP gateway and an approval screen each cover part of this architecture; none is a complete description of it. Definition and model comparison, printed pages 2–3.

For a purchased service, start by identifying the controls you can configure and the controls the provider operates. A permission you cannot inspect still needs an owner, a documented scope and a way to test its effect.

01 / ArchitectureThe software around the model
LLMUses context to propose a response or action

The harness sends context and receives the model's output.

Instructions and contextWhat the model receives

Prompt and policy layer · Context manager · Model interface

Tools and executionWhat the agent can do

Tool registry · Permission system · Execution environment · Connectors

State and evidenceWhat carries forward

Memory and session store · Audit and observability

People and changesWhat operators control

User interface · Updates and software supply chain

Oktsec's grouping of the eleven components listed by ASD, printed pages 4–5. The groups organize a review; they do not imply that these components are isolated from one another. Source and original diagram.

Define the job before connecting the tools

In our example, success means explaining why a prepared set of order imports fails, producing a patch and passing the agreed tests. The investigation uses synthetic records and a repository snapshot. Production remains outside its scope.

Translate that assignment into specific access: read the relevant test logs, read the copied source, write inside a disposable workspace and run a bounded test command. Use a dedicated identity rather than the engineer's everyday account. The environment should contain neither deployment credentials nor unrelated files from the engineer's computer.

This is where tool names can mislead. A tool named read_logs may accept any service or time range. A shell can call APIs that are absent from the visible tool list. Review parameters, credentials and network access together. Our analysis of task authority and agent access develops this distinction: being able to reach a system does not establish permission to act on it for this assignment.

Check what reaches the model as well. When a harness sends context to an external model service, the data has already left the environment before the next tool call is proposed. Use an approved provider and data-handling configuration, and send only the records needed for the task. An approval before uploading a file cannot undo an earlier disclosure through the model request.

Follow one tool call to the system that executes it

Suppose the agent requests the import logs for the test service. Before execution, the harness should establish which session is making the request, which operation it wants and whether its parameters fit the assignment. The logging service must also enforce the credential's access limits. A permissive backend should not depend entirely on the model choosing the right arguments.

Separate the patch workflow from deployment. The agent can produce a change for review. If an engineer later accepts it, the existing release process can deploy the reviewed revision under a different identity. Approval of one patch should not give the original investigation session general production access.

02 / Request to executionA tool request has two permission checks
  1. 1 · Model proposalRead test import logs

    Names the service, time range and requested operation.

  2. 2 · Harness checkMatch the assignment

    Check the session, tool and arguments before dispatch.

  3. 3 · Service checkEnforce resource access

    The logging service limits what this credential can read.

Allowed path

Return permitted records. Keep the request and outcome linked for review.

A deployment request takes a separate path

The investigation identity cannot deploy. An engineer reviews the patch; the release system independently checks the authorized revision and deployment identity.

Hypothetical design, not a product screenshot or a customer result. This shows two checks on a routed request; workspace isolation, credential protection and network restrictions are additional controls.

Test what happens when a log contains an instruction

Logs may contain text supplied by users or external services. In an authorized test, add a synthetic log entry that asks the agent to upload its workspace to an unapproved diagnostic service. The text looks relevant to the investigation, but it is data from a log, not a new instruction from the person who assigned the task.

ASD identifies this mixing of instructions and external content as a source of prompt injection risk. The guide calls for restrictions in the harness and surrounding infrastructure rather than relying solely on model behavior. The UK NCSC also explains why prompt injection does not have the same clean separation between instructions and data that conventional injection defenses rely on.

Observe two things separately. Did the model follow the injected instruction? And could the resulting action execute? A refusal in one trial tells you about that trial. A denied upload, backed by network and destination records, tells you that a particular path was restricted under the tested configuration.

Include the other paths available in the test environment: a generic HTTP tool, a shell or another connector. If they reach the same destination without the check, the restriction is incomplete. Use a controlled receiver and synthetic files, and verify that the intended investigation still works. The goal is useful work within a tested scope, not an agent that can do nothing.

Our article on prompt injection and authorization explains this control placement in more detail.

Keep written rules separate from enforced restrictions

A persistent rules file can tell the agent where to work, which tests to run and when to request review. ASD recommends keeping organizational instructions available across sessions. That improves consistency, but a model reading “do not deploy” is different from a process lacking permission to deploy.

For each important rule, identify the mechanism that applies it. “Only edit this workspace” needs filesystem isolation or equivalent restrictions. “Only contact approved services” needs control over network routes and credentials. “Deployment requires approval” needs a release system that refuses an unapproved revision.

The harness itself also needs protection. If the agent can change its permission configuration, edit the approval record or disable the component checking its requests, those checks are within its own reach. Keep security configuration and approval authority outside the task identity's write access. Review configuration changes through a separate administrative process.

Review what memory and subagents carry forward

ASD's component map includes memory and session storage because information can persist beyond the response in which it first appeared. A copied instruction can return in a later session as a saved note, stripped of the context that showed it was untrusted.

For our investigation, retain the patch reference, test results and unresolved questions with links to their sources. Avoid copying entire logs or credentials into reusable memory. Keep the original evidence separately under appropriate access and retention rules. A model-written summary is a working aid; it is not a substitute for the records needed to check a conclusion.

The guide discusses both risks spreading across multi-agent systems and the use of narrowly scoped subagents. These points fit together when isolation is real. A subagent with its own limited context and permissions can reduce exposure. A second agent sharing the same broad token, filesystem and writable memory does not automatically create a security boundary.

If a subagent reviews the patch, give it the relevant diff and test output. Its recommendation should not become deployment approval. Test what it can read and change, and how its output is used by the next component.

Control retries, cost and changes to the environment

A working loop needs an end. Set limits on elapsed time, tool calls, output size and model spending, with a clear response when a limit is reached. In the import investigation, repeated failures should produce a useful report for the engineer rather than an unlimited cycle of new attempts.

Retries need special care when an operation changes state. A timeout does not prove that the remote system did nothing. Before repeating a write, check its status or use an operation identifier that the service can recognize to avoid applying it twice. An approval should remain tied to the actual request, resource and revision, including during retries.

Also record the versions of the model, harness, tool definitions and security configuration used in testing. A model replacement can change which tools it selects. A connector update can change an existing tool's behavior without changing its name. Repeat the relevant permission and failure tests after either change. See our agent software supply chain analysis for the dependencies involved.

Distinguish a proposal, an authorization and a completed action

An agent saying “the patch is ready” does not establish which files changed or which tests ran. A gateway recording an allowed request does not establish that the destination completed it. These records answer different questions.

For the proposed patch, collect the change itself, the exact revision tested and the test results. If a later release is approved, link that approval to the deployed revision and the receiving system's result. If a request times out, show the outcome as unresolved until another record establishes what happened.

03 / EvidenceThree records, three different claims
  1. ProposedThe agent requested it

    Session, tool, arguments and the resource involved.

  2. AuthorizedA check permitted it

    Applicable policy, decision and any required approval.

  3. ObservedThe system reports a result

    Changed revision, service receipt or independently checked state.

A missing result stays unresolved

An allowed request with no confirmed outcome must not be displayed as a completed action. Investigate before retrying.

Oktsec review model for the hypothetical workflow. An authorization record can support an investigation without proving the final effect or covering every possible path.

Protect these records from the task identity. Record useful identifiers and decisions without unnecessarily copying secrets or customer data into logs. Where signatures or hash chains are used, state what they cover: integrity of recorded entries does not prove that every action was captured or that the model's explanation is correct.

This is also the connection to our analysis of Anthropic's September threat report. That article follows attackers reusing access across systems. This one asks how an organization can limit and reconstruct the actions of its own agents. Both require looking beyond a single request or tool.

A review your team can repeat

Use a disposable environment with synthetic data and agreed test boundaries. Start with a successful authorized run, then vary one condition at a time. The following checks are our proposed review plan for the order-import example, not tests reported by ASD or results from an Oktsec customer.

Swipe or scroll horizontally to compare all columns.

From the assigned task to a checkable result
TestExpected behaviorEvidence to inspect
Read approved test logs and prepare a patchThe investigation completes within its workspace and budget.Permitted reads, patch revision and test output.
Request another service's recordsThe harness or service denies access; the records are not returned.Decision and logging-service access record.
Follow an upload instruction planted in a test logUnapproved transfer is denied, including through available alternate tools.Tool and network records plus the controlled receiver's observations.
Deploy using the investigation identityThe release system refuses the request.Access denial and unchanged target revision.
Exceed a retry or spending limitThe run stops or requires operator review as configured.Call count, provider usage and the recorded stopping reason.
Lose a response after an authorized test writeThe workflow checks status before risking a duplicate write.Operation identifier and receiving-system state.
Change the model or connector versionThe relevant tests run again before wider access is granted.Versioned configuration and comparison of test results.

A passing result applies to the paths, versions and conditions tested. Document untested routes and missing records. When the workflow needs broader access, review the new permissions and repeat the affected checks rather than extending the old conclusion by assumption.

Where Oktsec fits in a harness review

Oktsec Assessment can help define and test an agreed agent workflow, including tool permissions, untrusted input and possible alternate paths. The work should produce reproducible findings and evidence the engineering team can use to verify a correction.

Oktsec Control evaluates actions routed through its configured enforcement points against policy and records the decisions. Its scope depends on the integration and configuration. It does not replace permissions in the target service, isolate every process or capture requests that bypass it. A review must establish those surrounding controls as well.

Teams using Oktsec Signal can inspect supported agent software for findings that need review before installation or update. That inspection is one part of supply chain review; it does not establish that a complete harness is safe to deploy.

The practical next step is to choose a bounded task and trace one action from the model's proposal to the receiving system. Identify who authorizes it, where that decision is enforced and what record confirms the result. Expand the workflow when those answers are supported by tests and the responsible team accepts the remaining risk.

Sources and scope

The primary source is ASD's Agentic AI Harnesses: The layer above the model, published September 2026; the accompanying web publication is dated September 11. It provides architectural and governance guidance, not a certification or a comparative product test. The guide also references Careful adoption of agentic AI services and the NCSC explanation of prompt injection linked above.

The diagrams, order-import scenario and review plan are Oktsec's explanation and proposed test design. Diagram 1 reorganizes ASD's component list; the guide is licensed under CC BY 4.0, with stated exceptions including the Commonwealth Coat of Arms. No government marks are reproduced and no agency endorsement of Oktsec is implied.