Abstract
Large language models are increasingly embedded in agentic software systems that retrieve information, plan subtasks, call tools, modify code, execute tests, and adapt through memory or feedback. This transition changes the safety problem: when a model acts through software tools, failure can alter external state. This Perspective argues that agentic AI safety should move beyond exclusive reliance on model trust, alignment, or prompt-level defenses and should also be treated as a software-architecture problem. We propose software topology as a design lens for structurally governed autonomy and develop a five-plane reference topology comprising intent, orchestration, execution, oversight, and adaptation. Its core invariant is that components that decide should not directly act, and components that act should not act without supervision. The topology is realized in Polos, an open reference specification that encodes role contracts, message schemas, declared flow graphs, bounded loops, governed self-improvement, and validator-checked invariants. We argue that this approach complements model alignment and empirical red teaming by providing an inspectable substrate for evaluating, constraining, and governing tool-using AI agents.
1 Introduction
Large language models have moved from being text-generation systems toward becoming components of operational software. The transformer architecture made large-scale sequence modeling technically viable (), while later scaling and instruction-following work showed that language models could perform diverse tasks from prompts, examples, and human-preference-aligned training (; ). These developments encouraged a model-centered view of safety, in which the principal objective was to make the model more aligned, helpful, harmless, and robust. That objective remains important, but it is no longer sufficient for the systems now being built around language models.
The reason is architectural. Contemporary language-model applications increasingly retrieve information, plan subtasks, call tools, modify code, execute tests, and interact with external software environments. Retrieval-augmented generation grounded model outputs in external knowledge stores (), ReAct interleaved reasoning with environment-directed action (), and tool-use research connected models to external application programming interfaces (). Surveys of autonomous language-model agents similarly describe systems that combine memory, planning, tools, and environmental feedback into persistent workflows ().
Multiagent frameworks also coordinate specialized agents through structured conversations (), while surveys describe the workflows, infrastructure, and interaction mechanisms of such systems (). This shift is especially visible in software engineering, where repository-level tasks require issue interpretation, codebase navigation, file editing, execution, and test-based validation (; ; ). Recent agent-harness research further suggests that execution environments, tool interfaces, context management, observability, verification, and governance are becoming independent determinants of agent reliability (). Thus, the safety of tool-using agents cannot be evaluated only at the model level, because the surrounding software harness determines how model outputs are converted into actions.
This Perspective argues that safe agentic AI should be treated as a software-architecture problem. When a model only produces text, failure may mislead a user; when an agent can write files, execute commands, call services, or alter software artifacts, failure can modify external state. The proposed shift is therefore from asking whether one model can be trusted sufficiently to asking how software topology can prevent any single component from converting error, manipulation, or goal drift into unsupervised action. The argument is informed by Polos, an open reference specification that instantiates this topology through role contracts, typed message schemas, declared flow graphs, bounded loop controls, governed self-improvement pathways, and validator-checked structural invariants ().
2 Related work and problem positioning
Model-centered safety has produced important progress. Reinforcement learning from human feedback and related alignment methods improve instruction following and reduce undesirable outputs under many evaluation conditions (). However, alignment methods do not by themselves define the authority boundary between a model and the external systems it can affect. Once a model retrieves context, selects tools, executes commands, edits files, or calls services, safety depends not only on model behavior, but also on what the surrounding software permits it to do.
2.1 Prompt injection and tool authority
This limitation becomes acute when agents consume untrusted or semi-trusted context. Retrieval-augmented generation and reasoning-action loops bring external documents, tool outputs, and environmental observations into the model context (; ). Indirect prompt-injection research shows that malicious instructions hidden in retrieved content can manipulate language-model-integrated applications, including systems with external tool access (; ; ). Recent work further shows that prompt injection can target tool selection itself and can operate through AI-assisted development environments, tool poisoning, hidden parameters, cross-tool interactions, and unauthorized tool invocation (; ).
2.2 Contemporary agent-governance work
Recent agent-safety work increasingly treats safety as a property of the deployed agent system rather than the model alone. Ghosh et al. (2025) propose a safety and security framework for real-world agentic systems that combines risk taxonomy, contextual mitigation, human oversight, and sandboxed red teaming. AgentDoG introduces diagnostic guardrails for agent safety and security through trajectory monitoring and root-cause diagnosis (). argue that agentic safety is also an epistemic property, because self-improving systems must remain teachable and correctable over time. Guardrail work likewise emphasizes safe, secure, and controllable steering of LLM applications through moderation, policy controls, evaluation, and red teaming ().
2.3 Positioning of this Perspective
These works are complementary, but the contribution here is narrower and more architectural. Polos does not primarily propose another behavioral guardrail, risk classifier, or red-team benchmark. It specifies a checkable software topology in which decision, action, oversight, adaptation, and authority are separated through role contracts, typed messages, flow graphs, scoped capabilities, and validator-checked invariants. The research gap addressed here is therefore how agentic capabilities should be wired so that they cannot collapse into a single unrestricted point of control.
3 Safety as software topology
3.1 Core invariant
A topology-centered view begins with a simple premise: no single component in a tool-using agentic system should be treated as fully trustworthy. This premise is familiar in computer security. The reference-monitor concept requires mediation that is always invoked, protected from tampering, and sufficiently simple to analyse (). similarly identify least privilege, separation of privilege, complete mediation, and fail-safe defaults as foundational protection principles. The central design principle can therefore be stated as follows: components that decide should not directly act, and components that act should not act without supervision.
3.2 Authority separation
In this Perspective, software topology refers to the explicit arrangement of components, message paths, gates, credentials, and allowed actions. A planning component may interpret a user objective or select a task pathway, but it should not hold standing effectful tools. An execution component may modify files, call services, or run commands, but only under scoped, time-limited, and task-specific authority. Oversight components may reject, request revision, quarantine, or halt, but should not exercise the same tools whose outputs they judge.
3.3 Mediation and provenance
Complete mediation becomes an architectural requirement rather than a policy aspiration. Every consequential message path should be declared, every worker result should be gated before acceptance, every uncertain verdict should fail closed, and every high-consequence action should require authorization at the tool boundary. Recent provenance-oriented work similarly tracks how untrusted context propagates into agent decisions and checks whether proposed actions are justified by trustworthy evidence before execution ().
3.4 Bounded loops and adaptation
Bounded autonomy is also a topological property. ReAct-style loops and repository-level software agents can iterate over planning, action, observation, and revision (; ), but unattended loops can drift, exhaust resources, or accept false completion signals. Structurally governed loops therefore require step, time, cost, and scope ceilings, stable user-intent references, and verifier-checked completion. Similarly, reflective memory should change how a task is approached, not what the system is authorized to do (). In this sense, alignment improves component behavior, while topology limits what component failure can do.
4 Five-plane topology and polos realization
Figure 1 operationalises the topology-centered argument through a five-plane reference architecture comprising intent, orchestration, execution, oversight, and adaptation. The figure should be read as an authority map rather than as a conventional workflow diagram. Its central invariant is that deciders do not act, and actors do not act unsupervised. This principle translates separation of privilege, least privilege, complete mediation, and fail-safe control into the design of tool-using language-model agents (; ).
Figure 1
4.1 Five planes
The intent plane stabilizes the task objective, constraints, and success criteria before planning or execution begins. The orchestration plane routes tasks, scopes permissions, and manages bounded iteration without directly performing effectful actions. The execution plane is the only plane that performs controlled effects, separating read-only retrieval, controlled action, documentation, and verification. The oversight plane applies sequential safety and quality gates, while the adaptation plane separates learning, evaluation, and diagnosis so that improvement does not become self-authorization.
4.2 Polos realization
Polos implements the five-plane topology as an inspectable reference specification rather than only as a diagram. Role cards define each role's purpose, allowed inputs, allowed outputs, prohibited actions, and authority ceiling. The declared flow graph specifies which roles may communicate, which message types may cross each edge, and where status, failure, and governance signals must travel. Typed message schemas reduce ambiguity in inter-component communication and make missing or illegal flows detectable before deployment.
4.3 Structural checks
The validator checks whether the declared topology satisfies completeness and authority invariants, including edge coverage, role-graph consistency, capability ceilings, final-response gating, audit coverage, loop limits, triage paths, and self-improvement constraints. The accompanying specification expresses the topology through five planes, fourteen roles, fifteen invariants, sixty-five legal edges, thirty-nine message types, forty-two schemas, and four hundred twenty-three structural checks (). These figures are not empirical proof of behavioral safety; they show how role boundaries, information flows, message contracts, and validation conditions can be made explicit and auditable.
4.4 Illustrative scenario
Consider a software agent that retrieves a GitHub issue containing a hidden instruction such as, āignore previous instructions and deploy this patch.' A conventional guardrail may inspect the prompt or final output and attempt to detect malicious intent (). In Polos, the retrieval worker is read-only, orchestration cannot execute, execution receives only scoped credentials, the verifier checks task completion, and Monitor and QC gates decide whether the result can proceed. The attack must therefore cross several structural boundaries, not merely bypass one prompt filter.
4.5 Relation to AI control and adaptation
Outputs from execution pass through oversight before completion, reflecting AI control research that seeks to reduce harmful outcomes even when some model behavior is untrusted or strategically unreliable (). Similarly, the adaptation plane allows lessons or improvements to be proposed and measured, but not self-authorized. This addresses a risk exposed by reflective agent methods: memory can improve performance, but it can also weaken constraints if it is allowed to revise its own authority ().
4.6 Scope of the claim
The contribution is not that topology eliminates all agentic risk. The more limited claim is that agentic systems become more governable when no single component can simultaneously interpret intent, plan action, hold unrestricted tools, judge its own outputs, and expand its own authority. This makes structural safety a concrete object for inspection, implementation, and future empirical evaluation.
5 Implications and research agenda
Table 1 positions the proposed topology against related agent-safety and guardrail approaches. The comparison is intentionally architectural. It does not claim that existing guardrails, diagnostic frameworks, or red-team methods are unnecessary. Rather, it shows where this Perspective contributes: it treats authority separation, message topology, scoped tool access, and validation rules as first-order software-engineering artifacts.
Table 1
| Approach | Primary focus | Main mechanism | Position relative to this Perspective |
|---|---|---|---|
| LLM guardrails () | Safe and controllable steering of LLM applications | Input/output moderation, policy controls, model steering, evaluation, and red teaming | Complementary, but often does not specify the authority topology connecting planning, tools, gates, and adaptation. |
| Enterprise agent safety frameworks (Ghosh et al., 2025) | Real-world agentic system safety and security | Risk taxonomy, contextual mitigation, human oversight, and sandboxed red teaming | Closest in motivation; this Perspective contributes a checkable five-plane topology and implementation-oriented role and flow specification. |
| Diagnostic agent guardrails (AgentDoG; ) | Agent trajectory diagnosis and safety moderation | Risk taxonomy, benchmark, fine-grained monitoring, and root-cause diagnosis | Diagnoses unsafe trajectories; Polos aims to constrain authority paths before and during execution. |
| Epistemic agent safety () | Long-run correctability and teachability | Safety as sustained corrective leverage rather than snapshot behavior | Motivates bounded adaptation; Polos operationalizes no self-authorization through separate learning, evaluation, and approval. |
| Practitioner agent harnesses (,; ) | Operational coding and personal-agent workflows around LLMs | Tool access, file and command execution, permission controls, sandboxing, review loops, and multi-interface agent operation | Demonstrate the practical importance of harness-level safety. Polos contributes a checkable topology that constrains prompt-injection propagation across retrieval, orchestration, execution, oversight, verification, and adaptation boundaries. |
| Proposed five-plane topology and Polos | Structural governance of tool-using agents | Intent, orchestration, execution, oversight, adaptation; role cards, schemas, flow graph, and validator | Makes authority separation inspectable, auditable, and machine-checkable at the software-topology level. |
Positioning of the proposed topology against related agent-safety and guardrail approaches.
Recent practitioner harnesses such as Claude Code and Hermes Agent further show that agent safety is increasingly shaped by the software layer that grants tools, executes commands, manages permissions, and mediates interaction with files, terminals, and external systems (,; ).
This comparison suggests three evaluation priorities. First, future work should test structurally governed agents against indirect prompt injection, tool misuse, and tool-selection attacks by measuring whether adversarial content can cross an authority boundary, obtain credentials, bypass a gate, select a malicious tool, or cause external action (; ). Agent-security benchmarks that measure instruction integrity, retrieval confidentiality, and capability integrity provide a useful starting point ().
Second, software-agent benchmarks should incorporate architectural integrity measures in addition to task success. Repository issue resolution and agent-computer-interface benchmarks remain valuable because they expose agents to realistic software tasks (; ; ). However, evaluation should also record whether the agent stayed within scoped credentials, whether consequential actions passed through declared gates, whether verification was independent of the acting component, and whether failure states were auditable.
Third, future work should measure the governance cost of structural safety. A topology that separates planning, action, oversight, and adaptation will usually add latency, engineering complexity, and operational cost. These costs are the price of reducing the blast radius of model error and adversarial manipulation. Different consequence classes may therefore require different degrees of mediation, with low-consequence reversible actions requiring lighter control than code execution, external communication, financial activity, or infrastructure modification.
Finally, human governance remains central. Machine-checked invariants cannot prove that a language model will always reason correctly, but they can detect missing gates, illegal flows, ambiguous failure paths, untyped messages, or authority creep before deployment. People remain responsible for consequence classification, approval thresholds, policy boundaries, audit review, and permissible adaptation.
6 Conclusion
Agentic AI safety cannot rely only on model trust. Alignment, refusal behavior, and prompt-level defenses remain important, but they are insufficient when language-model agents can retrieve, plan, execute, verify, loop, and adapt within consequential software environments. Once agents acquire tools, safety becomes architectural: authority must be located, constrained, mediated, and made auditable.
The five-plane topology proposed in this Perspective makes that architectural problem explicit. By separating intent, orchestration, execution, oversight, and adaptation, and by realizing that separation in Polos through role cards, schemas, flow graphs, scoped capabilities, and validator-checked invariants, it reduces the risk that planning, acting, judging, and self-modification collapse into one privileged model instance.
This topology cannot guarantee semantic correctness, eliminate all prompt-injection risk, or replace empirical red teaming. It can, however, make agentic systems more inspectable, governable, and testable. Safe autonomy will require software systems in which trust is bounded, authority is mediated, and consequential action remains visible to governance.
Code and Reference Specification Availability: an open reference specification released under the AGPL 3.0 license provides role contracts, flow graphs, message schemas, configuration files, documentation, and a validation script as an illustrative implementation of the topology ().
Statements
Data availability statement
The datasets presented in this study can be found in online repositories. The names of the repository/repositories and accession number(s) can be found at: https://github.com/CoeusInstitute/Polos.
Author contributions
MM: Conceptualization, Data curation, Formal analysis, Funding acquisition, Methodology, Project administration, Resources, Supervision, Writing ā original draft, Writing ā review & editing. FS: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Validation, Visualization, Writing ā original draft, Writing ā review & editing.
Funding
The author(s) declared that financial support was not received for this work and/or its publication.
Conflict of interest
The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI statement
The author(s) declared that Generative AI was not used in the creation of this manuscript.
Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.
Publisherās note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
References
1
AlpayF.AlpayT. (2026). AgentSecBench: measuring prompt injection, privacy leakage, and tool use integrity in LLM agents. arXiv [preprint]. arXiv:2605.26269.
2
AndersonJ. P. (1972). Computer Security Technology Planning Study.ESD-TR-73-51, Vol. I. USAF Electronic Systems Division. doi: 10.21236/AD0772806
3
Anthropic (2026a). Claude Code security. Claude Code Docs. Available online at: https://code.claude.com/docs/en/security (Accessed July 20, 2026).
4
Anthropic (2026b). Sandboxing. Claude Code Docs. Available online at: https://code.claude.com/docs/en/sandboxing (Accessed July 20, 2026).
5
BrownT. B.MannB.RyderN.SubbiahM.KaplanJ.DhariwalP.et al. (2020). Language models are few-shot learners. Adv. Neural Inf. Process. Syst. 331877ā1901.
6
Coeus Institute. (2026). Polos: Open reference specification for structurally governed agentic AI systems. GitHub repository. Available online at: https://github.com/CoeusInstitute/Polos (Accessed July 6, 2026).
7
GhoshS.SimkinB.ShiarlisK.NandiS.ZhaoD.FiedlerM.et al. (2025). A safety and security framework for real-world agentic systems. arXiv [preprint]. arXiv:2511.21990.
8
GreenblattR.ShlegerisB.SachanK.RogerF. (2024). āAI control: Improving safety despite intentional subversion,āProceedings of the 41st International Conference on Machine Learning, PMLR, 235, 16295ā16336.
9
GreshakeK.AbdelnabiS.MishraS.EndresC.HolzT.FritzM. (2023). āNot what you have signed up for: compromising real-world LLM-integrated applications with indirect prompt injection,āProceedings of the 16th ACM Workshop on Artificial Intelligence and Security, 79ā90. doi: 10.1145/3605764.3623985
10
HuangC.HuangX.FardA. M. (2026). Are AI assisted development tools immune to prompt injection?arXiv [preprint]. arXiv:2603.21642.
11
JimenezC. E.YangJ.WettigA.YaoS.PeiK.PressO.. (2024). āSWE-bench: can language models resolve real-world GitHub issues?āProceedings of the 12th International Conference on Learning Representations.
12
LewisP.PerezE.PiktusA.PetroniF.KarpukhinV.GoyalN.et al. (2020). Retrieval augmented generation for knowledge intensive NLP tasks. Adv. Neural Inf. Process. Syst.33, 9459ā9474.
13
LiJ.XiaoX.ZhangY.LiuC.ZhaoL.LiaoX.et al. (2026). Agent harness engineering: a survey. OpenReview [preprint].
14
LiX.WangS.ZengS.WuY.YangY. (2024). A survey on LLM-based multi-agent systems: workflow, infrastructure, and challenges. Vicinagearth1:9. doi: 10.1007/s44336-024-00009-2
15
LiuD.RenQ.QianC.ShaoS.XieY.LiY.et al. (2026). AgentDoG: a diagnostic guardrail framework for AI agent safety and security. arXiv [preprint]. arXiv:2601.18491.
16
LiuJ.WangK.ChenY.PengX.ChenZ.ZhangL.et al. (2026). Large language model based agents for software engineering: a survey. ACM Trans. Softw. Eng. Methodol. doi: 10.1145/3796507
17
LiuY.DengG.LiY.WangK.WangZ.WangX.et al. (2023). Prompt injection attack against LLM-integrated applications. arXiv [preprint]. arXiv:2306.05499.
18
Nous Research. (2026). Hermes Agent. GitHub repository. Available online at: https://github.com/NousResearch/hermes-agent (Accessed July 20, 2026).
19
OuyangL.WuJ.JiangX.AlmeidaD.WainwrightC. L.MishkinP.et al. (2022). Training language models to follow instructions with human feedback. Adv. Neural Inf. Process. Syst. 35 27730ā27744. doi: 10.52202/068431-2011
20
RebedeaT.DerczynskiL.GhoshS.SreedharM. N.BrahmanF.JiangL.et al. (2025). āGuardrails and security for LLMs: safe, secure and controllable steering of LLM applications,āProceedings of the 63rd Annual Meeting of the Association for Computational Linguistics, Tutorial Abstracts, 13ā15. doi: 10.18653/v1/2025.acl-tutorials.8
21
SaltzerJ. H.SchroederM. D. (1975). The protection of information in computer systems. Proc. IEEE63, 1278ā1308. doi: 10.1109/PROC.1975.9939
22
SchickT.Dwivedi YuJ.DessiR.RaileanuR.LomeliM.ZettlemoyerL.et al. (2023). Toolformer: Language models can teach themselves to use tools. arXiv [preprint]. arXiv:2302.04761. doi: 10.52202/075280-2997
23
ShiJ.YuanZ.TieG.ZhouP.GongN. Z.SunL. (2026). āPrompt injection attack to tool selection in LLM agents,āProceedings of the Network and Distributed System Security Symposium. doi: 10.14722/ndss.2026.230675
24
ShinnN.CassanoF.BermanE.GopinathA.NarasimhanK.YaoS. (2023). Reflexion: Language agents with verbal reinforcement learning. Adv. Neural Inf. Process. Syst.36, 8634ā8652. doi: 10.52202/075280-0377
25
VaswaniA.ShazeerN.ParmarN.UszkoreitJ.JonesL.GomezA. N.et al. (2017). Attention is all you need. Adv. Neural Inf. Process. Syst.30, 5998ā6008.
26
WangC. L.DorchenK.JinP. (2026). Agentic safety is an epistemic property, not a behavioral one. arXiv [preprint]. arXiv:2606.28347. doi: 10.2139/ssrn.6184043
27
WangL.MaC.FengX.ZhangZ.YangH.ZhangJ.et al. (2024). A survey on large language model-based autonomous agents. Front. Comput. Sci.18:186345. doi: 10.1007/s11704-024-40231-1
28
WengS.FengY.ZhangJ.XieX.YuJ.LiuJ. (2026). ARGUS: defending LLM agents against context aware prompt injection. arXiv [preprint]. arXiv:2605.03378.
29
WuQ.BansalG.ZhangJ.WuY.LiB.ZhuE.et al. (2024). āAutoGen: enabling next generation LLM applications via multi-agent conversations,āProceedings of the First Conference on Language Modeling.
30
YangJ.JimenezC. E.WettigA.LieretK.YaoS.NarasimhanK. R.PressO. (2024). SWE-agent: Agent-computer interfaces enable automated software engineering. Adv. Neural Inf. Process. Syst.37, 50528ā50652. doi: 10.52202/079017-1601
31
YaoS.ZhaoJ.YuD.DuN.ShafranI.NarasimhanK.et al. (2023). āReAct: synergizing reasoning and acting in language models,āProceedings of the 11th International Conference on Learning Representations.
32
ZhanQ.FangR.PanchalH. S.KangD. (2025). āAdaptive attacks break defenses against indirect prompt injection attacks on LLM agents,āFindings of the Association for Computational Linguistics: NAACL 2025, 7116ā7132. doi: 10.18653/v1/2025.findings-naacl.395
33
ZhangK.LiJ.LiG.ShiX.JinZ. (2024). āCodeAgent: enhancing code generation with tool integrated agent systems for real-world repo-level coding challenges,āProceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, 13643ā13658. doi: 10.18653/v1/2024.acl-long.737
Summary
Keywords
agentic AI, AI safety, auditable governance, large language model agents, prompt injection, software topology, structurally governed autonomy
Citation
Morin M and Sufi F (2026) From model trust to software topology: a Perspective on structurally governed agentic AI systems. Front. Comput. Sci. 8:1919950. doi: 10.3389/fcomp.2026.1919950
Received
25 June 2026
Revised
06 August 2026
Accepted
22 September 2026
Published
08 October 2026
Volume
8 - 2026
Edited by
Miodrag Zivkovic, Singidunum University, Serbia
Reviewed by
Rui Patrick Xian, Northeastern University, United States
Updates
Copyright
Ā© 2026 Morin and Sufi.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Michai Morin, michai@coeus.institute; Fahim Sufi, research@fahimsufi.com
Disclaimer
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.