Independent analysis by NHI Mgmt GroupSource article: 1Password, “Braintrust's Ankur Goyal: Code review doesn't cover prompts” (June 30, 2026)

TL;DR: Prompt updates can silently change what AI agents do, what data they surface, and which tools or credentials they use, because many teams update prompts outside code review and security scanning, according to 1Password. That makes prompt governance an identity control problem, not just a product quality issue.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on 1Password's blog post: Prompt changes are behavior-changing production artifacts for AI agents, because they can alter tool use, data exposure, and credential usage without a code change.

Why it matters: IAM and security teams need to treat prompt management as part of identity governance for AI agents, or they will miss access drift that never shows up in code review.


Context

Prompt changes are not just content edits when an AI agent uses them to decide what to do next. In practice, a prompt can reshape tool selection, data retrieval, and credential use without any corresponding change in application code.

That creates a governance gap for AI agent identity programmes because the control point is no longer only code review. The real question is whether execution context changes are reviewed with the same discipline as access and privilege changes.

The source article focuses on behaviour-shaping prompt updates in production systems, which is a typical problem for teams moving quickly from experimentation to agent operations.


Key questions

Q: How should security teams govern prompt changes in AI agent systems?

A: Treat prompt updates as production changes that can alter access, not just behaviour. Put them through approval, logging, testing, and rollback controls, especially when prompts influence retrieval, tool use, or data exposure. The right question is whether the change can expand what the agent can do with existing identities, tokens, or secrets.

Q: Why can an AI agent’s risk change without any code change?

A: Because the agent’s effective behaviour is shaped by prompts, retrieval sources, model parameters, and tool permissions as well as code. A prompt update can shift what the agent does with the same credentials, which means the security boundary has moved even though the application looks unchanged.

Q: What breaks when prompt changes are not reviewed like access changes?

A: Accountability and scope control break down. The agent may surface new data, call different tools, or use existing credentials in ways that were never approved, and the organisation has no reliable record of who authorised the behavioural change.

Q: What should teams do when a prompt can change an AI agent's behaviour?

A: Teams should treat the prompt as an input to a privileged runtime, not as harmless text. If a prompt can alter tool choice, task scope, or execution timing, then it needs the same kind of control thinking applied to secrets, access paths, and approval gates. That is the point where AI security becomes identity governance.


Technical breakdown

Why prompt text changes agent behaviour

An AI agent’s prompt is part of its execution context, not just its instructions. When the prompt changes, the agent may reinterpret goals, select different tools, retrieve different data, or apply credentials in a new way even though the underlying application code remains unchanged. That matters because the security boundary is often expressed in code review and approved deployments, while the behaviour change happens in a separate operational layer. In agentic systems, the effective control surface includes prompt templates, retrieval sources, model parameters, and tool permissions. If those elements are not governed together, the agent can drift from intended scope without triggering the normal change-management signals that security teams expect.

Practical implication: Treat prompt updates as security-relevant changes to agent execution context, not as low-risk content edits.

Why access policy can stay the same while risk changes

Prompt changes can alter how an agent uses the access it already has. A customer support agent, for example, may keep the same credentials and formal permissions while being instructed in a way that expands what it surfaces, which workflow it enters, or how aggressively it calls tools. That is why access policy alone is not enough to explain runtime risk. The agent’s observable behaviour can move outside intended boundaries without a corresponding identity change in the IAM system. For governance, this creates a blind spot: the access grant looks stable, but the use of that access is not. Security review therefore has to cover both entitlement and instruction state.

Practical implication: Review agent instructions and entitlements together so behaviour drift is visible before it becomes a production issue.

Why observability and evals do not replace security review

Observability and evals can show whether an agent’s output looks useful, consistent, or safe against defined criteria. They do not, by themselves, answer the identity question of whether the agent should have had access to the data, credential, or system it used. That distinction matters because a prompt change can improve a score while still expanding access behaviour in unacceptable ways. Security teams need a control that catches scope changes at the point of change, not only after output is measured. In other words, quality signals tell you how the agent performed, but governance tells you whether the performance stayed within authorised bounds.

Practical implication: Use evals as a quality signal, but keep an explicit access review step for any prompt change that can alter behaviour.


  • Okta support system breach 2023: A support service account credential saved in a personal Google profile let attackers take HAR files and hijack five Okta customers' sessions.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Prompt governance is now identity governance for AI agents: when a prompt change can alter tool use, retrieved data, and credential behaviour, it functions like an access change even if no permission object was edited. The security model that only watches code diffs is already incomplete for agentic systems. The practical conclusion is that AI agent programmes need change control that treats instructions as part of the identity surface.

Execution context drift is the real control gap: prompts, retrieval configuration, model version, and tool wiring together define how an agent behaves at runtime. If any one of those changes outside governed release processes, the organisation can no longer assume that the agent is still operating within its approved scope. That breaks the idea that identity posture is stable between access reviews.

Behavioural trust cannot be inferred from a compliant-looking credential set: an agent may retain the same service account or shared secret while doing materially different work after a prompt update. The governance problem is not only who can authenticate, but what the authenticated system has become allowed to do through changed instructions. Practitioners should stop treating prompt text as non-security metadata.

Prompt changes create comprehension debt: repeated unreviewed updates make it harder to explain why an agent did what it did, who approved it, and whether the access pattern was intended. That debt will surface as audit friction, incident confusion, and weak accountability unless teams make prompt state reviewable and attributable. In practice, the control objective is traceable change, not just reliable output.

Agent governance needs a named concept for this failure mode: prompt-to-access coupling describes the point where instruction changes become effective privilege changes. Once that coupling exists, security teams must assume that behaviour, not code alone, defines the security boundary. The implication is that AI agent governance must be built around runtime identity effects, not static software change management.

From our research library:

What this signals

Prompt-to-access coupling: once a prompt can redirect data retrieval or tool use, instruction changes become effective privilege changes and must be governed that way. Teams that separate prompt management from identity governance will miss the point where runtime behaviour crosses an authorised boundary.

Agent observability helps explain what happened, but it does not prove the agent should have had access in the first place. For AI agent programmes, the control that matters is traceable change at the point of instruction, retrieval, and credential use.

7% of security leaders admit they do not know how often their AI systems are making autonomous changes to infrastructure, according to the 2026 Infrastructure Identity Survey. That uncertainty is exactly why prompt governance needs to sit inside identity governance.


For practitioners

  • Review prompts as governed production artifacts Put prompt templates, system prompts, and retrieval instructions under the same change-control discipline you use for other security-relevant production changes. Require traceable ownership, approval, and rollback for every update that can change agent behaviour.
  • Link prompt changes to access review Require a security review whenever a prompt change can affect what data the agent sees, what tools it calls, or how it uses credentials. Do not rely on code review alone to catch changes in effective privilege.
  • Separate quality signals from authorisation decisions Use evals and observability to measure output quality, but keep a separate decision point for whether the agent should be authorised to perform the changed behaviour. A good score does not prove the access was appropriate.
  • Inventory non-human identities behind agents Map the service accounts, shared secrets, and delegated credentials that each AI agent can use, then tie those identities to specific prompts and tool paths so scope drift is visible when instructions change.
  • Define release gates for prompt and model changes Set a minimum release gate that includes representative human review for high-risk prompt changes, then tighten or relax that gate based on the criticality of the agent and the data it can reach.

Key takeaways

  • Prompt changes can alter AI agent behaviour in ways that look like access changes, even when credentials and code stay the same.
  • The core risk is not only output quality. It is whether an agent stays within the authorised scope created by its prompts, tools, and credentials.
  • Security teams need traceable review for prompt updates because runtime behaviour, not just source code, defines the effective identity boundary.

Standards & Framework Alignment

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

OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbusePrompt changes can alter an agent's effective privileges and tool use without code changes.
ASI02 — Tool MisuseThe article shows prompts can redirect which tools an agent calls and how.
Recommendation — Treat prompt updates as privilege-affecting changes and re-review agent scopes before release. Constrain tool access per agent state and validate tool use after prompt changes.
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationAgents rely on non-human identities and shared secrets that can be misused when prompts shift behaviour.
Recommendation — Bind AI agent authentication to governed identities and reassess credential use when instructions change.
NIST AI RMFGOVERN — AI Governance and AccountabilityThe central issue is governance of AI system changes that affect runtime behaviour.
Recommendation — Define accountability, approval, and traceability for prompt changes inside the AI governance programme.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsPrompt updates can change effective authorisation even when the formal entitlements stay stable.
Recommendation — Revalidate authorisations whenever prompt or retrieval changes alter an AI agent's effective scope.

Key terms

  • Prompt-to-Access Coupling: Prompt-to-access coupling is the point where a change in instructions changes what an AI agent can effectively do. In agentic systems, that coupling matters because prompts can alter tool use, data retrieval, and credential behaviour without any obvious change to code or formal entitlements.
  • Execution Context: Execution context is the live operating state of an application, including which libraries run, which syscalls execute, and which network paths are used. In security practice, it helps separate theoretical exposure from code that is truly reachable and therefore more urgent to remediate.
  • Comprehension debt: Comprehension debt is the accumulated inability to explain why an automated or AI-assisted system behaves the way it does after many unreviewed changes. It becomes an identity problem when no one can confidently account for which prompt, tool, or access path caused the outcome.
  • Behavioural Scope: The real-world range of actions an identity can perform once it starts operating, including tool chaining, output creation, and destination selection. It is broader than static permission scope because it captures what the identity can do in practice, not only what it was allowed to do on paper.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on July 1, 2026.
Updated on October 11, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org