RTGWG Z. Han, Ed. Internet-Draft R. Pang, Ed. Intended status: Informational M. Han Expires: 28 May 2027 China Unicom 24 November 2026 Agent Service Function Chain (A-SFC): Architecture and Problem Statement draft-han-a-sfc-architecture-problem-00 Abstract Large Language Model (LLM) agents granted write access to tools are emerging as a new class of network participants. Their integrated nature of autonomous decision-making and execution introduces challenges such as compliance bypass and uncontrolled risks. Existing safeguards are mostly application-layer configurable policies residing in the same trust plane as the agent, and are vulnerable to software defects, unintended invocation paths, and bypass via direct connections. Meanwhile, dynamic branching and cross-domain task interactions are pervasive in multi-agent collaboration scenarios. Traditional networks only support flow- level quality awareness and cannot provide task-level end-to-end traceability, fault localization, and quality assurance. This document defines the A-SFC (Agent Service Function Chain) architecture, which elevates compliance from a "configurable policy" to a "topological fact". Through SRv6 segment routing, mandatory ordered compliance steps are compiled into network forwarding paths; packets that skip compliance gates are dropped directly at the forwarding plane, without relying on cooperation from the agent side. On this basis, this document further introduces a task-level in-situ flow telemetry mechanism. Through three-tier task encoding, it achieves layered quality awareness and fault localization at the link level, agent level, and task level, supporting end-to-end auditability and traceability of multi-agent delegation chains. This document describes the core problems addressed by A-SFC, its overall architecture, key technical components, operating mechanisms, and typical application scenarios. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Han, et al. Expires 28 May 2027 [Page 1] Internet-Draft Agent SFC Architecture and Problem November 2026 Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 28 May 2027. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Introduction and Background {#intro and backg} . . . . . . . 3 2. Conventions Used in This Document . . . . . . . . . . . . . . 4 2.1. Abbreviations . . . . . . . . . . . . . . . . . . . . . . 4 2.2. Requirements Language . . . . . . . . . . . . . . . . . . 4 3. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 4 4. Problem Statement . . . . . . . . . . . . . . . . . . . . . . 5 4.1. LLM Agents as Autonomous Writers . . . . . . . . . . . . 5 4.2. Weaknesses of Application-Layer Policies . . . . . . . . 5 4.3. Path-as-Permission . . . . . . . . . . . . . . . . . . . 6 4.4. Applicability . . . . . . . . . . . . . . . . . . . . . . 6 5. A-SFC Architecture Overview . . . . . . . . . . . . . . . . . 7 5.1. Functional Components . . . . . . . . . . . . . . . . . . 7 5.2. Data Plane Enforcement . . . . . . . . . . . . . . . . . 8 5.3. Path Authorization and Intent Binding . . . . . . . . . . 9 5.4. Path Authorization and Intent Binding . . . . . . . . . . 9 5.5. Runtime Model . . . . . . . . . . . . . . . . . . . . . . 10 6. Security Considerations . . . . . . . . . . . . . . . . . . . 10 7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 10 8. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 11 9. Normative References . . . . . . . . . . . . . . . . . . . . 11 Han, et al. Expires 28 May 2027 [Page 2] Internet-Draft Agent SFC Architecture and Problem November 2026 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 11 1. Introduction and Background {#intro and backg} LLM-based autonomous agents are being granted the ability to invoke tools: read and write databases, send messages, transfer funds, modify configurations, and delete files. This elevates agents from read-only question-answering systems to systems whose actions have real-world, and sometimes irreversible, consequences. In traditional software, reasoning and execution are separated: human engineers write code paths, and the software executes them. In an LLM agent, the same system both makes decisions and executes them, so a reasoning error maps directly to an erroneous action. The primary defenses in use today are policies configured in software: role-based access control, API gateways, service meshes, and agent-tool authorization frameworks. All of these share a fragile core: they are all application-layer, configurable policies, where the decision to “allow or block this call” is made by code running in the same attackable trust plane as the agent, which makes the enforcement point itself bypassable. Meanwhile, multi-agent collaboration is becoming the mainstream business form. Delegation chains among agents commonly exhibit dynamic branching and cross-domain interaction, corresponding to the Agentic Dialog and Delegation Chain models defined by the IETF Agentproto working group. Traditional network O&M systems can only perform single-flow granularity monitoring based on five-tuples, and cannot correlate end-to-end latency, packet loss, and other metrics from a task perspective. This leads to difficult fault localization and a lack of full-process audit traceability, and can hardly adapt to the new business requirements of the agent internet. A-SFC changes the structure rather than optimizing the policy. It turns the mandatory compliance sequence into a property of the network path itself: an agent can reach a tool only through the compliance gates that the path forces it to traverse. At the same time, it introduces task-level in-situ flow telemetry capability, embedding task identifiers into network-layer extension headers to realize quality visibility and traceability throughout the task lifecycle. It builds network-layer support for the agent internet from two dimensions: compliance enforcement and observability. This document defines the problems addressed by A-SFC, the overall architecture components, and typical application scenarios. It does not define specific protocol fields or encoding details. Han, et al. Expires 28 May 2027 [Page 3] Internet-Draft Agent SFC Architecture and Problem November 2026 2. Conventions Used in This Document 2.1. Abbreviations 2.2. Requirements Language The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. 3. Terminology Agent: An LLM-based autonomous system that issues tool calls. Tool: A capability (API, database, service) invocable by an agent. In SRv6 terminology, tools are implemented as Service Functions (SF). Compliance Gate: A mandatory in-path checkpoint that a regulated call MUST traverse in a defined order (e.g., consent, data minimization, authorization, human approval, audit). Service Function (SF): A network-addressable function inserted into the path. Compliance gates are a class of SF. Service Classifier (SC) [RFC7665] [RFC8300]: An element that performs classification, matching traffic against policies locally; upon a match, it applies SFC encapsulation to the data and steers the traffic into the corresponding service path. Segment List / SID: An ordered list of Segment Identifiers that defines a forwarding path, per [RFC8754] and [RFC8986]. SFF (Service Function Forwarder): An SRv6 forwarding element that steers traffic through the SFs in a service chain. In A-SFC, the SFF is the policy enforcement point. Path-as-Permission: An agent's permissions are expressed as the topology it is allowed to traverse, enforced by the infrastructure rather than by a discrete set of API permissions. Path Authorization Token (PAT): A token signed by the orchestrator that proves a given segment list is authorized for a given invocation. Han, et al. Expires 28 May 2027 [Page 4] Internet-Draft Agent SFC Architecture and Problem November 2026 Intent Binding: An orchestrator-signed pair that anchors a compiled chain to a position in the intent tree, enabling cross-invocation attribution. Primary Chain / Sub-chain: The primary chain is the default end-to- end flow for a business intent; a sub-chain is an independently compiled, compliant “branch” generated during the process and attached to the parent intent via intent binding. Agentic Dialog: An interaction process between agents with conversational continuity, driven by natural language, which may include one or more tasks and may have a long or short lifecycle. Delegation Chain: A call chain formed when an agent delegates tasks layer by layer to downstream agents; it may have serial, parallel, or other topological structures. Agent Gateway: An A-SFC edge node deployed at the trust domain boundary, performing core functions such as SFF, classifier, telemetry anchor, and cross-domain interconnection. 4. Problem Statement 4.1. LLM Agents as Autonomous Writers Traditional software invokes tools along fixed code paths pre-written by human engineers, running under explicit transaction and rollback semantics. LLM agents are different: at runtime they autonomously decide which tools to call and in what order. When granted write access, an agent becomes an autonomous writer. In traditional software, reasoning errors are caught before deployment through code review and testing. In an LLM agent, reasoning errors occur at runtime and map directly to erroneous actions. The defining characteristic is that capability (write) and autonomy (runtime decisions) are bound to the same entity. 4.2. Weaknesses of Application-Layer Policies RBAC, API gateways, service meshes, and agent-tool authorization frameworks differ in form but share the same fragile core: each is an application-layer, configurable policy in which the software decides at runtime whether to allow a call. This decision logic runs in the same attackable trust plane as the agent. Three bypass paths follow. 1) Software defects: edge cases not covered by the rules. Han, et al. Expires 28 May 2027 [Page 5] Internet-Draft Agent SFC Architecture and Problem November 2026 2) Unintended paths: the agent constructs an invocation path that the rules never anticipated, so the rules never fire. 3) Direct connection: the agent opens a new TLS connection directly to the tool, bypassing any gateway or policy point; the rules cannot block something that never takes the path. The core contradiction: soft policies cannot guarantee that a request necessarily passes through the enforcement point. 4.3. Path-as-Permission A-SFC changes the structure rather than optimizing the policy. It upgrades configurable soft policies into non-bypassable topological facts. The mandatory compliance sequence is compiled into the network data plane. Agents can only follow the compiled paths; any attempt to skip an in-chain gate is dropped at the forwarding plane. Two complementary defenses are required. 1) Internal enforcement: the forwarding infrastructure (SFF) drops any attempt to bypass in-chain gates within the data plane. 2) External containment: regulated tools only accept connections from enforcement points (e.g., mTLS with SFF certificates). Path enforcement is necessary but not sufficient; it must be combined with containment to close the loop. 4.4. Applicability A-SFC is not a universal solution. It targets invocation scenarios that satisfy the following core conditions. 1) The tool's capabilities, data domains, and required compliance gates can be declaratively specified so that they can be compiled into paths. 2) There are mandatory, ordered compliance requirements (e.g., “minimize before transmission”, “approve before change”), where the order itself is a compliance property. 3) The invocation crosses trust boundaries (organizational, geographic) or touches sensitive data (PII, core assets), requiring path-level audit and attribution. Han, et al. Expires 28 May 2027 [Page 6] Internet-Draft Agent SFC Architecture and Problem November 2026 4) Tool endpoints can be contained, i.e., configured to accept only enforcement-point connections. If tools cannot be contained, A-SFC degrades to post-hoc auditing, and lower-layer defense solutions should be considered. In short, the incremental value of A-SFC lies in scenarios with untrusted transmission (across trust domains) and irreversible consequences (which must be prevented in advance), as well as scenarios where multi-party collaboration requires end-to-end observability. Other scenarios are left to lower-layer or log-only solutions. 5. A-SFC Architecture Overview 5.1. Functional Components A-SFC separates the control plane (compile time) from the data plane (runtime), consistent with the principle that reasoning and execution should be decoupled. * Control Plane: Orchestrator: Binds agents to roles and capabilities to operation templates; according to agent workflows and compliance audit requirements, it generates network-executable segment lists (SID Lists), SRv6 path policies, and PAT passes, and deploys them to the data plane for execution. * Data Plane: 1) Agent Gateway: acts as the edge policy enforcement point of A-SFC. It integrates the capabilities of SFF, classifier, and telemetry anchor, and undertakes core functions including traffic identification and steering, SRv6 encapsulation/decapsulation, PAT verification, telemetry data reporting, and cross-domain service chain stitching. 2) Classifier (SC): embedded within the Agent Gateway. It identifies task identifiers, encapsulates the Segment List, instantiates the context for each invocation, and maps each template step to the corresponding SRv6 SID at invocation time. 3) SFF (Service Function Forwarder): performs stateless hop-by-hop steering along the segment list and validates the PAT at trusted enforcement points. It also acts as a telemetry anchor, generating and reporting telemetry data for the local link segment. Han, et al. Expires 28 May 2027 [Page 7] Internet-Draft Agent SFC Architecture and Problem November 2026 4) Service Function (SF): functions such as compliance gates, operational tools, and telemetry assist functions, implemented as SRv6-locatable functions and deployed sequentially along the service chain path. 5) Tool Endpoint: a regulated tool that is constrained to accept connections only from enforcement points. c Two control-plane checks prevent unauthorized or incorrectly ordered chains. 1) Scenario Whitelist (authorization): the platform side binds what an agent is allowed to do. The orchestrator refuses to generate segment lists containing SFs outside the whitelist. 2) Operation Template (ordering): the whitelist only constrains which SFs are available, not the required order. An agent could still construct an “authorized but wrong” chain (e.g., skip pathology checks and write directly to core systems). Therefore, operation templates enforce the set of SFs and their partial order for sensitive operations, and bind them at compile time, so that agents cannot reorder or omit mandatory gates. Boundaries (whitelists, data domains, gate sets) are fixed at compile time; runtime mutation is not allowed. The compilation phase synchronously completes pre-allocation of telemetry policies and task identifiers, realizing simultaneous activation of compliance paths and telemetry capabilities. 5.2. Data Plane Enforcement Ordered compliance steps are compiled into an SRv6 segment list. Each segment identifier corresponds to a compliance gate or tool. The SFF advances packets hop by hop; traversing a gate means traversing the corresponding SF. Because path-as-permission applies, packets that reach the tool without traversing mandatory gates cannot be formed, since the required segments simply do not exist in any authorized list. This differs from soft policies: gates are forwarding requirements enforced by the infrastructure, not software conditionals that an agent might bypass. Han, et al. Expires 28 May 2027 [Page 8] Internet-Draft Agent SFC Architecture and Problem November 2026 5.3. Path Authorization and Intent Binding SRv6 provides path integrity (the path has not been tampered with in transit). A-SFC adds the explicit Path Authorization Token (PAT) to provide path authorization: it proves that this specific path is indeed authorized by the orchestrator for this specific invocation. The orchestrator signature binds the segment list, the per-invocation association identifier, and the validity window. The PAT is carried in-band with packets (e.g., in an IPv6 Destination Options header), separate from the SID List: the SID List is the path, while the PAT is the authorization proof for that path. Intent binding anchors each chain to a position in the intent tree via an orchestrator-signed pair. Return results from a chain can serve as compilation input for a new chain, forming a compliance closed loop. Because the hash is signed by the orchestrator rather than self-attested by the agent, a malicious agent cannot forge the binding. Intent binding is linked to the parent-child relationship in the three-tier task encoding: the parent_span_id of the child chain corresponds to the span_id of the parent chain. Meanwhile, the orchestrator signature ensures that the association cannot be forged, achieving dual binding of the task topology and the compliance path. Mandatory PAT validation occurs only at trusted enforcement points (SFF or Agent Gateway); untrusted transit nodes are not required to perform per-packet validation. 5.4. Path Authorization and Intent Binding Compliance gates are implemented as SRv6 service functions. Typical types include the following. 1) Data Minimization / Guardrail SF: minimizes data and enforces policy guardrails. 2) Dynamic Authorization SF: runtime allow/deny/pause based on declarative policies. 3) Credential Management SF (Vault): zero-trust token exchange; agents hold short-lived tokens rather than long-term keys. 4) Human-in-the-Loop SF (HITL-SF): pauses before high-risk actions and injects an approval token after human confirmation. 5) Change Control SF: a write-scenario specific combination of HITL gate, blast-radius verification, and rollback readiness. Han, et al. Expires 28 May 2027 [Page 9] Internet-Draft Agent SFC Architecture and Problem November 2026 6) Audit and Evidence SF: persists the full-process operation logs and quality data of tasks to support compliance audit and post-event traceability. 5.5. Runtime Model The A-SFC runtime model adapts to the dynamic characteristics of agent delegation chains, and supports serial, parallel, and other task topologies through a hierarchical compilation mechanism of primary chains and sub-chains. Primary Chain: Corresponds to the core business intent of an agentic dialog. The full path is compiled before task initiation, defining the complete ordered sequence of compliance gates and tool invocations for a given operation, and corresponding to the trunk path of the delegation chain. Sub-chain: When the primary chain encounters conditions that require new tools or agent invocations not present in the original compiled path, a sub-chain is generated. For example, a diagnostic chain may need to additionally fetch business data after detecting an anomaly. Sub-chains are compiled independently, with their own segment lists, PATs, and task encodings, and are attached to the parent intent via intent binding. The parent_span_id of a sub-chain points to the span_id of the parent chain where the branch is triggered, ensuring that dynamic branches remain fully gated and auditable, and that their lineage is traceable after the fact. The orchestrator is the sole authority for authorizing sub-chains. When a sub-chain is needed, the return result of the current chain becomes the compilation input of the new sub-chain, forming a compliance cycle of “execution result, new intent, new chain.” Scope expansion, that is, new tool categories or data domains not covered by the original compilation, triggers a new compilation event, generating a new chain, a new PAT, and a new intent binding. This differs from rerouting, which replaces a failed tool instance with another instance of the same role within the compiled segment list and does not require recompilation. 6. Security Considerations TBD 7. IANA Considerations TBD Han, et al. Expires 28 May 2027 [Page 10] Internet-Draft Agent SFC Architecture and Problem November 2026 8. Acknowledgements The authors thank all participants who provided review comments and promoted the revision of this draft. 9. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . [RFC8754] Filsfils, C., Ed., Dukes, D., Ed., Previdi, S., Leddy, J., Matsushima, S., and D. Voyer, "IPv6 Segment Routing Header (SRH)", RFC 8754, DOI 10.17487/RFC8754, March 2020, . [RFC8986] Filsfils, C., Ed., Camarillo, P., Ed., Leddy, J., Voyer, D., Matsushima, S., and Z. Li, "Segment Routing over IPv6 (SRv6) Network Programming", RFC 8986, DOI 10.17487/RFC8986, February 2021, . Authors' Addresses Zhengxin Han (editor) China Unicom Beijing China Email: hanzx21@chinaunicom.cn Ran Pang (editor) China Unicom Beijing China Email: pangran@chinaunicom.cn Mengyao Han China Unicom Beijing China Email: hanmy12@chinaunicom.cn Han, et al. Expires 28 May 2027 [Page 11]