By NHI Mgmt Group Editorial TeamDomain: AI SecuritySource: SonarPublished March 10, 2026

TL;DR: AI conversation systems need governance over both input and output, because trust erodes fast when noise, leakage, or overposting becomes normal, according to Sonar. Its Gitar guardrail layer filters duplicate, irrelevant, and internal messages before they reach developers, using a single decision-maker, async processing, and structured output to keep responses clean.


At a glance

What this is: This is Sonar's explanation of why an AI guardrail layer is needed to filter incoming and outgoing messages so developer-facing output stays relevant, clean, and trustworthy.

Why it matters: It matters because identity and access controls are only part of the governance problem when AI systems can post, reply, and leak internal context into human workflows.

By the numbers:

👉 Read Sonar's analysis of guardrails for AI systems that speak to developers


Context

AI systems that mediate human work need more than model quality. They need governance over what gets in, what gets out, and what should be suppressed before it reaches a person. In developer workflows, that means filtering duplicated findings, irrelevant replies, internal references, and messages that were never meant for the recipient. The primary issue is not hallucination alone, but message hygiene and control over AI-mediated communication.

That challenge sits close to identity security because the moment an AI system can respond on behalf of a team, it starts behaving like a governed non-human participant in the workflow. The control problem then becomes one of scope, audience, and output authority. Sonar's description of its guardrail layer shows a pattern that is still atypical for many organisations: treating AI conversation controls as a first-class operational layer rather than a post-processing convenience.


Key questions

Q: How should security teams govern personal AI assistants that act on behalf of employees?

A: Treat each assistant as a distinct non-human actor with its own identity, policy scope, and audit trail. Human delegation alone is not enough when the assistant can move across email, documents, calendars, and internal systems. Governance should bind the sponsor, the executor, and the target resource so access reviews and investigations can separate request from action.

Q: Why do AI guardrails need to control both incoming prompts and outgoing replies?

A: Because risk appears at both boundaries. Inbound controls block instructions, references, or commands the system should never process, while outbound controls prevent duplicates, internal notes, and irrelevant replies from reaching users. If you only police output, the model can still absorb the wrong context. If you only police input, it can still leak the wrong message.

Q: What breaks when AI agents are reviewed like human users?

A: Human review assumes access is stable long enough to be observed, approved, and recertified. Agentic workflows often complete within one session and can change scope mid-execution, so the review cycle arrives too late to matter. The result is a governance gap where the action has already happened before anyone can certify it.

Q: Should organisations allow AI systems to fail open in developer workflows?

A: Only with clear risk acceptance and monitoring. Fail-open may preserve productivity, but it also means the guardrail is advisory rather than mandatory. That is acceptable for low-risk review noise, but not for contexts where the system could expose internal references, direct comments to the wrong person, or suppress material findings.


Technical breakdown

Why AI guardrails need both input and output filtering

A guardrail layer sits between what an AI system receives and what it is allowed to publish. Input filtering blocks messages, commands, or references that should not be processed, while output filtering removes duplicates, internal notes, low-value replies, and content aimed at the wrong recipient. The technical point is that conversational AI systems fail in two directions: they can accept the wrong instruction and they can emit the wrong message. A single control layer that handles both is more reliable than trying to clean up bad output after the fact.

Practical implication: design separate controls for inbound instructions and outbound publication, then audit both paths independently.

Why a single decision-maker can outperform agent chains

Sonar's article shows a common agentic design mistake. Splitting classification across multiple specialised sub-agents seems modular, but it adds coordination overhead, makes failures harder to trace, and introduces ambiguity about which agent made the final call. A single decision-maker reduces the number of moving parts and clarifies responsibility. For a classification problem, that is usually the right architecture. If the task is deciding whether something should be shown, not exploring options, agentic decomposition often creates more operational risk than value.

Practical implication: prefer one governed decision path for classification tasks instead of chaining multiple agent roles.

How async structured output changes control reliability

The shift from synchronous agent execution to asynchronous structured output is an architecture change, not just a performance tweak. Structured output gives the system a constrained response shape, which makes classification easier to validate and consume downstream. Async handling reduces bottlenecks and allows lifecycle management around the decision process, but the real benefit is determinism: the system either returns an approved structured result or it does not. That is a cleaner control model than free-form agent output that must be interpreted after generation.

Practical implication: use structured outputs wherever the decision is binary or bounded, then attach explicit failure handling and logging.


NHI Mgmt Group analysis

AI conversation systems are becoming non-human workflow participants, not just tools. Once an AI system can comment, reply, suppress, and rewrite messages, it starts operating as a governed actor inside the workstream. That creates an identity and authorisation problem because the real risk is not only what the model knows, but what it is permitted to say, to whom, and in what context. For identity teams, this is a useful reminder that machine identity governance must extend to communication authority, not just API access.

Message hygiene is now a governance control, not a UX nicety. The article's focus on duplicate suppression, internal-reference stripping, and reply relevance shows that trust can erode through low-grade noise as much as through outright leakage. In practice, organisations need clear policy on what AI systems may surface, repeat, or redact before publication. That aligns more closely with access scope and disclosure governance than with traditional chatbot safety alone.

Single-path decisioning is the safer pattern for bounded AI controls. The move away from multiple specialist sub-agents toward one decision-maker reflects a broader control principle: bounded decisions should be deterministic, explainable, and easy to audit. Once an AI layer becomes a gatekeeper for human-facing output, complexity itself becomes a failure mode. The practitioner takeaway is to simplify where the task is classification, not reasoning.

Fail-open design may be acceptable for productivity, but it raises governance expectations. Sonar's preference to let comments pass if the guardrail fails is operationally understandable, but it means the control is advisory rather than mandatory. That trade-off should be explicit in policy and risk acceptance. In identity-heavy programmes, any AI system that can expose internal context should have documented fallback behaviour and accountable ownership.

Developer trust depends on AI systems matching conversational context, not just content quality. The article shows that tone, relevance, and conversational history affect whether an AI-generated message is usable. That is a subtle but important governance point because organisations often evaluate AI output as if all that matters is correctness. The real test is whether the system can stay within its intended communication boundary without becoming noisy or overreaching.

What this signals

Conversation filters will increasingly be judged like access controls. As AI systems move deeper into developer tooling, the governance question shifts from whether they are helpful to whether they are allowed to publish, suppress, or rewrite messages in the first place. That is an identity and control boundary problem as much as a model-quality problem.

Teams that already manage secrets, privileges, and workflow automation should expect the same scrutiny to spread to AI-mediated communication. The useful comparison is not chatbot versus human, but governed output versus uncontrolled output.


For practitioners

  • Define output authority for AI workflow tools Document exactly which AI systems may post, reply, redact, or suppress messages in developer-facing workflows, and make the approval boundary explicit in policy and reviews.
  • Separate inbound filtering from outbound publishing Treat incoming prompts, internal references, duplicate detection, and recipient targeting as distinct control points so each can be logged and tuned independently.
  • Prefer structured decision outputs for bounded tasks Use structured output for yes-no or small-set classification jobs, then route the result into a deterministic post-processing step rather than free-form generation.
  • Test guardrails with real conversation histories Replay multi-turn threads, acknowledgments, and bot-to-bot exchanges at volume to see where the filter drops useful content or lets internal details through.

Key takeaways

  • AI guardrails are becoming a control layer for message authority, not just content cleanup.
  • Single-decision architectures are easier to audit than chained sub-agent designs when the task is bounded classification.
  • Developer-facing AI systems need explicit inbound and outbound policy boundaries or they will erode trust through noise and leakage.

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 address the attack surface, NIST AI RMF and NIST CSF 2.0 set the technical controls, and ISO/IEC 42001:2023 define the regulatory obligations.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10Output filtering and conversation safetyThe article focuses on filtering agent output and blocking unsafe or irrelevant responses.
Recommendation — Apply OWASP agentic controls to constrain what AI systems may emit into human-facing workflows.
NIST AI RMFGOVERN — AI Governance and AccountabilityThe article is fundamentally about governance of what an AI system may say and to whom.
MANAGE — AI Risk ManagementThe fail-open model and audit findings show operational risk management in AI workflows.
Recommendation — Define accountable ownership for AI message controls and assign approval boundaries for publication. Document fail-open behaviour and monitor guardrail exceptions as part of AI risk treatment.
NIST CSF 2.0PR.AC-4 — Access Permissions and AuthorisationsThe guardrail controls who or what is allowed to reach users through the workflow.
Recommendation — Enforce message publication boundaries as access permissions for AI-mediated workflow outputs.
ISO/IEC 42001:2023AI management system — Operational control and oversightThe article concerns systematic oversight of AI behaviour in production workflows.
Recommendation — Embed guardrail review and exception handling into the AI management system's operating procedures.

Key terms

  • Guardrail Layering: Guardrail layering is the practice of combining multiple independent controls so that one failure does not expose the full system. In AI security, that usually means pairing cloud configuration controls, model behaviour checks and identity restrictions across the same workflow.
  • Structured Output: Structured output is a response format that follows a predefined shape, such as a table, checklist, schema, or file tree. It makes machine and human review easier because the answer is predictable, parseable, and less likely to drift into unbounded prose.
  • Fail-Open Design: Fail-open design is a control pattern where the system continues operating when the guardrail fails, rather than blocking output entirely. It preserves availability and productivity, but it also accepts that some unfiltered content may pass through during an error or timeout.
  • Conversational context: Conversational context is the meaning carried by a full interaction, including intent, prior messages, data references, and the action the model is about to take. It matters because security decisions in AI systems often depend on the conversation as a whole, not on a single keyword or request.

What's in the full article

Sonar's full article covers the operational detail this post intentionally leaves for the source:

  • The specific Judge decision flow used to classify comments, replies, and commit messages in production.
  • The production audit findings that showed where DROP and MODIFY rules were misfiring and how those rules were corrected.
  • The move from sub-agents to a single structured output call, including the implementation trade-offs behind that change.
  • How thread history, work log flags, and recent comment context were added to improve decision quality across multi-turn exchanges.

👉 Sonar's full article covers the Judge architecture, audit findings, and the move to structured output.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, agentic AI identity, machine identity security, and secrets management. It helps practitioners translate identity controls into operating rules for AI-enabled workflows.
NHIMG Editorial Note
Published by the NHIMG editorial team on September 11, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org