[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-86150-en":3,"doc-seo-86150-105":29,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":11,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":13,"seo_description":14,"update_tm":27,"read_time":28},86150,962075114101,"Seraphina","https://ap-avatar.wpscdn.com/avatar/e000253a75eb197efd?x-image-process=image/resize,m_fixed,w_180,h_180&k=1780044092746381165",8,"Research & Report","A Formal Hierarchical Architecture for Agentic Orchestration with Stack-Based Execution and Lazy Discovery","Large Language Model (LLM) agents face an architectural bottleneck when tool access is provided as a flat, monolithic registry: the model must score hundreds or thousands of options at once, causing decision-space explosion, context-window saturation, and degraded routing accuracy. The paper introduces a hierarchical, skill-based orchestration architecture that routes via a rooted tree, executes deterministic leaf tasks, and enforces a single-step LIFO stack loop with nested execution memory semantics. Capability discovery uses manifest-driven lazy loading to scale costs with the explored path. Isolation and auditability are ensured by localized stack frames, motivated by production deployment in UPI Help, and supported by formal state modeling, algorithmic analysis, and controlled benchmarks.","arXiv :2607 . 1 1 138v 1 [ cs .AI] 13 Jul 2026  \nA Formal Hierarchical Architecture for Agentic Orchestration with Stack-Based Execution and  \nLazy Discovery  \nPrashant Devadiga, Abhishek, Adithya Mishra, Alok Singh, Amisha Sinha, Asit Desai, Gaurang Dahad, Harshit Bhushan, Mandati Pramod Reddy, Prakhar Gupta, Rupesh Patil, and Siddhi Behere  \nAbstract—The rapid expansion of capabilities in Large Language Model (LLM) agents has exposed a critical architectural bottleneck: when agents are given access to a flat, monolithic registry of tools, the model must evaluate hundreds or thousands of options simultaneously. This leads to decision-space explosion, context window saturation, and degraded routing accuracy. To address these limitations, this paper presents a hierarchical, skill-based architecture for agentic orchestration. Capabilities are organized as a rooted tree where internal nodes make routing decisions and leaf nodes execute deterministic tasks. The runtime enforces a single-step execution loop governed by a Last-In-First-Out (LIFO) stack, giving the agent a form of memory akinto a Pushdown Automaton, therefore enabling it to track nested execution contexts and resume deterministically from any depth. Capability discovery follows a manifest-driven, lazy-loading protocol: only the immediate children of the active node are loaded, so memory and prompt costs scale with the explored path rather than the global registry. By replacing global memory with localized stack frames, the architecture prevents outputs from one execution branch from leaking into another, establishing the isolation guarantees required for deployment in regulated enterprise environments. We also discuss UPI Help, an AI-powered digital payments support product, as a motivating production deployment context. We provide a mathematical formalization of the orchestration state, detailed algorithmic analysis of the execution loop, and controlled benchmarks comparing flat and hierarchical routing under increasing tool catalogs, multi-step workflow pressure, and visible schema-token exposure per LLM call.  \n~~ ~~ ✦ ~~ ~~  \n1 INTRODUCTION  \nThe integration of Large Language Models (LLMs) with external, deterministic capabilities (such as Application Programming Interfaces (APIs), database queries, and scripts) has enabled autonomous, goal-directed agents [2] . While early paradigms showed that interleaving reasoning with tool execution improves grounding and task completion, scaling these systems to enterprise-grade workflows exposes foundational architectural limitations [3] .  \nThe primary limitation of contemporary LLM agents is the assumption of a flat capability space. Conventional agents initialize with a registry containing all accessible tools [4] . At a scale encompassing hundreds or thousands of distinct capabilities, this induces decision-space explosion: the model must parse and choose among a large set of mostly irrelevant tools, increasing latency and degrading semantic routing accuracy [5] . Benchmarks confirm that large, nonhierarchical API arrays containing overlapping syntactic  \n• Leadership: Prashant Devadiga.  \n• Agentic Architecture: Abhishek, Alok Singh, Asit Desai, Gaurang Dahad, Harshit Bhushan, Prakhar Gupta.  \n• Engineering: Adithya Mishra, Amisha Sinha, Mandati Pramod Reddy, Rupesh Patil, Siddhi Behere.  \n• Evaluation: Abhishek, Gaurang Dahad, Harshit Bhushan.  \nconventions increase reasoning failures and hallucinated tool invocations [6] .  \nTo distribute cognitive load, many systems adopt multiagent orchestration frameworks [7] . By deploying multiple specialized LLM agents that communicate via natural language, systems can theoretically tackle highly complex objectives [8] . However, these often rely on unstructured conversational message-passing for orchestration, which obscures execution state and makes routing and recovery difficult at scale, leading to unpredictable agent loops and network-wide context saturation [9] .  \nIn ad","cbCaiux4AAXGUgmM","https://ap.wps.com/l/cbCaiux4AAXGUgmM","pdf",310098,1,11,"English","en",105,"# Introduction\n## Limitation of flat capability spaces\n## Multiagent orchestration challenges\n## Need for deterministic execution control\n## Proposed hierarchical skill-based architecture","[{\"question\":\"What problem does the paper identify with current LLM agent tool registries?\",\"answer\":\"It identifies decision-space explosion and increased latency when agents must choose among large flat registries of mostly irrelevant tools, which also degrades semantic routing accuracy and increases failures.\"},{\"question\":\"How does the proposed architecture structure agent capabilities?\",\"answer\":\"Capabilities are organized as a rooted tree of skills: internal nodes perform routing and delegation, while leaf nodes execute deterministic tasks.\"},{\"question\":\"How does stack-based execution and lazy discovery improve reliability and efficiency?\",\"answer\":\"A single-step loop governed by a LIFO stack supports nested execution contexts and deterministic returns, while manifest-driven lazy loading loads only immediate children, reducing memory and prompt costs and preventing cross-branch output leakage.\"}]",1784208928,28,{"code":4,"msg":30,"data":31},"ok",{"site_id":24,"language":23,"slug":32,"title":13,"keywords":33,"description":14,"schema_data":34,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":27},"a-formal-hierarchical-architecture-for-agentic-orchestration-with-stack-based-execution-and-lazy-discovery","",{"@graph":35,"@context":85},[36,53,68],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,47,50],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":46},"https://docshare.wps.com/document/","Document",2,{"item":48,"name":12,"@type":42,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":42,"position":52},"https://docshare.wps.com/document/a-formal-hierarchical-architecture-for-agentic-orchestration-with-stack-based-execution-and-lazy-discovery/86150/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":62,"encodingFormat":60,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":40,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-24","2026-07-16",true,{"@type":65,"interactionType":66,"userInteractionCount":11},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"What problem does the paper identify with current LLM agent tool registries?","Question",{"text":75,"@type":76},"It identifies decision-space explosion and increased latency when agents must choose among large flat registries of mostly irrelevant tools, which also degrades semantic routing accuracy and increases failures.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"How does the proposed architecture structure agent capabilities?",{"text":80,"@type":76},"Capabilities are organized as a rooted tree of skills: internal nodes perform routing and delegation, while leaf nodes execute deterministic tasks.",{"name":82,"@type":73,"acceptedAnswer":83},"How does stack-based execution and lazy discovery improve reliability and efficiency?",{"text":84,"@type":76},"A single-step loop governed by a LIFO stack supports nested execution contexts and deterministic returns, while manifest-driven lazy loading loads only immediate children, reducing memory and prompt costs and preventing cross-branch output leakage.","https://schema.org",{"og:url":51,"og:type":87,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":89,"canonical":51},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,120,123,128,131,135],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":46,"doc_module":4,"doc_module_name":45,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":45,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":45,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":45,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":45,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":121,"slug":122},30,"research-report",{"id":124,"doc_module":4,"doc_module_name":45,"category_name":125,"show_sort_weight":126,"slug":127},9,"Religion & Spirituality",20,"religion-spirituality",{"id":126,"doc_module":4,"doc_module_name":45,"category_name":129,"show_sort_weight":126,"slug":130},"World Cup","world-cup",{"id":132,"doc_module":4,"doc_module_name":45,"category_name":133,"show_sort_weight":132,"slug":134},10,"Lifestyle","lifestyle",{"id":136,"doc_module":4,"doc_module_name":45,"category_name":137,"show_sort_weight":106,"slug":138},19,"General","general"]