← Back to News

Compiled Agent Intranet Deployment: A Technical Whitepaper from Architecture to Implementation

With the rapid evolution of compiled agents in the field of public security intelligence, intranet-deployed AI has become a core infrastructure choice for high-security scenarios. Traditional cloud-based large models face data outbound risks and compliance barriers in scenarios such as classified units, public security intranets and government private networks, whereas compiled agents compile model inference capabilities into a self-contained runtime, enabling a fully offline, auditable and traceable path to intelligent upgrades. This article systematically examines the technical roadmap and engineering implementation methodology for intranet deployment of compiled agents across four dimensions: architecture design, deployment models, security compliance and industry practice.

Industry Background: The Intelligentization Dilemma in High-Security Scenarios

Demand for AI in high-security domains such as public security, government affairs and national defense is experiencing explosive growth. According to public data from the Science and Technology Information Bureau of the Ministry of Public Security, as of the first half of 2026, more than 67% of municipal-level public security organs nationwide had launched intelligentization upgrade projects, yet fewer than 15% of them had truly achieved closed-loop intranet operation of AI capabilities. Behind this gap lie three structural contradictions:

  • Data security vs. model capability: general-purpose large models rely on cloud inference, exposing data transmission to interception risks, while anonymizing data before uploading severely degrades information density;
  • Xinchuang environment vs. computing ecosystem: the driver stacks for domestic CPUs (Phytium, Kunpeng) and domestic GPUs (Ascend, Cambricon) are incomplete, and adapting mainstream AI frameworks carries high costs;
  • Real-time requirements vs. inference latency: scenarios such as 110 emergency call handling and intelligence analysis require sub-second inference responses, which the traditional API calling model cannot satisfy.
ScenarioTraditional cloud AI solutionCompiled agent intranet solution
Data transmissionRequests go out via the public internet or VPNModels and data remain fully local in a closed loop
Compliance auditingRelies on cloud vendor audit reportsFull local end-to-end logs are auditable
Inference latency300ms-2s (network + inference)50-150ms (local inference)
Xinchuang adaptationHeavy CUDA dependency, high porting costsMulti-architecture cross-compilation at build time
Elastic scalingElastic scaling in the cloudLocal cluster orchestration + load balancing
Source: CAICT, "2026 White Paper on Intranet Deployment of Government Large Models," published in March 2026.

Compiled Agent Architecture: From Interpreted Execution to Compiled Delivery

The core philosophy of the compiled agent differs from that of the traditional API-calling agent. In traditional solutions, the agent is a continuously running service process that relies on external APIs for inference, tool invocation and memory management; a compiled agent, by contrast, pre-compiles the complete agent workflow — including prompt orchestration, toolchain binding, memory compression strategies and security guardrails — into an independent executable artifact at the build stage.

Its technical architecture is divided into four key layers:

  1. Policy compilation layer: Compiles reasoning paradigms such as ReAct/Tree-of-Thought into deterministic execution graphs (DAGs), eliminating the unpredictability of runtime LLM decision-making. For the pipeline commonly used in public security scenarios — "intelligence element extraction → correlation analysis → risk level determination" — policy compilation can solidify it into a directed acyclic graph, ensuring that every execution path is consistent and reproducible.

  2. Model quantization and packaging layer: Adopts 4-bit AWQ/GPTQ quantization schemes to compress large models with 7B-14B parameters down to 4-8GB and embed them into the compiled artifact. Combined with llama.cpp's GGUF format or vLLM's AWQ inference engine, it enables high-performance inference on domestic GPUs. For the Ascend 910B chip, model conversion is completed through the CANN operator adaptation layer, achieving inference throughput of up to 800 tokens/s.

  3. Toolchain static binding layer: All external tools that the agent needs at runtime — including database queries, API calls, and file system operations — undergo interface contract validation and permission sandbox encapsulation at the compilation stage, and only predefined restricted interfaces are exposed at runtime. This design narrows the attack surface from "arbitrary tool invocation" to "pre-authorized interface invocation."

  4. Update and hot-fix layer: The compiled agent supports incremental compilation updates. When the model version or policy rules change, only the differential compiled modules need to be replaced (typically <500MB), without redeploying the full image. Through the incremental distribution protocol of the Santi Network T3N7 intelligent scheduling engine, minute-level hot updates can be achieved across thousands of nodes on the public security intranet.

Source: CCF (China Computer Federation), "A Survey of Compilation Optimization Techniques for Large Models," Issue 12, 2025.

Intranet deployment models: A comparison of three practical approaches

Depending on the network isolation level and computing power conditions of the target environment, intranet deployment of compiled agents can be summarized into three models. The following provides a side-by-side comparison across three dimensions: architectural characteristics, applicable scenarios, and resource requirements:

Deployment modelArchitectural characteristicsApplicable scenariosMinimum computing powerTypical latency
Standalone edge deploymentFull model + compiled agent packaged as a Docker image, running on a single nodePolice station intelligence analysis, mobile law enforcement terminalsAscend 310 / GTX 3060 12GB80-200ms
Cluster microservices deploymentModel inference, tool execution, and memory management split into independent microservices, orchestrated by K8sMunicipal-level integrated intelligence platform4×Ascend 910B / 8×A10050-120ms
Federated hierarchical deploymentThree-tier linkage across province, city, and county: grassroots inference + upper-level aggregation + cross-domain federated learningProvincial-level smart policing brainHybrid heterogeneous cluster80-300ms (including cross-domain synchronization)

Among the three models above, cluster microservices deployment is currently the most mature approach in practice. Taking the live deployment of a certain provincial public security department as an example, it uses Kubernetes to orchestrate 12 compiled agent instances, and leverages the Santi Network T3N7 intelligent scheduling engine for request routing and load balancing. Under a load of 200,000 intelligence queries per day, P99 latency remains stable within 150ms, and system availability reaches 99.97%.

The following three engineering points require particular attention during deployment:

  • Image security scanning: Before release, the Docker images of compiled artifacts must pass Trivy/Grype vulnerability scanning; only after high-risk vulnerabilities are cleared may they enter the intranet image registry;
  • Key management: The signing keys for model weights and compiled artifacts must be managed via a hardware security module (HSM) or a domestic cryptographic machine; hard-coding is prohibited;
  • Network policy: Apart from the necessary gRPC ports exposed by the scheduling engine, all compiled agent instances should be placed under a Deny-All default policy via K8s NetworkPolicy, with only whitelisted ports opened.

Industry practice: dual-track validation in public security intelligence and government digitalization

Public security intelligence: the 110 police incident intelligent analysis system

A municipal public security bureau in a provincial capital launched a 110 police incident intelligent analysis system based on compiled agents in Q4 2025. After a dispatcher enters the incident text, the compiled agent automatically completes the following pipeline:

  • Entity extraction: Extract key entities such as persons, locations, times, and case types from incident descriptions, with an accuracy of 93.7%;
  • Correlation analysis: Semantically match the current incident against the historical incident database to identify linked-case leads, discovering an average of 120 correlated leads per day;
  • Risk rating: Combine case type, regional public-order conditions, and time-period characteristics to output a three-tier high/medium/low risk assessment, providing a decision basis for police dispatch priority.

The system runs entirely within the public security information network, with all inference and data processing completed locally, completely eliminating the risk of data leaving the country. Over the six months since launch, the average response time for major incidents has been shortened from 4.2 minutes to 2.1 minutes, and intelligence analysis accuracy has improved by 28 percentage points.

Government digitalization: the smart service guidance system for government service halls

An administrative approval bureau of a prefecture-level city deployed a compiled agent-driven smart service guidance system for its government service hall in Q1 2026. The system compiles the service guides, material checklists, and FAQs of more than 600 administrative approval items into an agent knowledge base. Citizens initiate natural-language inquiries through self-service terminals in the hall or the government service APP, and the agent completes intent recognition and answer generation locally, with no need for network connectivity.

Key results: - Average daily inquiries handled: 2,300, reducing the consultation pressure on hall counters by 41%; - First-time answer accuracy: 89.5%, an improvement of 22 percentage points over the traditional FAQ system; - The system is fully adapted to the domestic xinchuang environment (Phytium CPU + UnionTech UOS + Ascend inference card) and has passed the Level 3 classified protection evaluation.

Source: Application Case Compendium of Government Large Models 2026, State Information Center.

Security and compliance: a complete closed loop from Level 3 classified protection to cryptographic evaluation

The security and compliance system for intranet deployment of compiled agents needs to cover three dimensions: classified protection, cryptographic application security assessment (cryptographic evaluation), and xinchuang adaptation. The following are the corresponding implementation plans for key compliance requirements:

  • Level 3 classified protection — secure computing environment: The runtime containers of compiled artifacts mandatorily enable SELinux/AppArmor mandatory access control; model weight files are stored with dm-crypt full-disk encryption; intermediate tensors during inference are never written to disk;
  • Cryptographic evaluation — commercial cryptography application: Communication between agents uses mTLS mutual authentication with SM2 certificates compliant with the Chinese national cryptography standard; inference logs and audit records are written to the time-series database after SM4 symmetric encryption, ensuring logs cannot be tampered with;
  • Xinchuang adaptation: The compilation toolchain natively supports the Phytium ARM64 and Kunpeng AArch64 instruction sets; the inference backend is adapted to the Ascend CANN and Cambricon MLU operator libraries; operating systems preferentially use UnionTech UOS / Kylin server editions.

During implementation, it is recommended to form an adaptation working group jointly composed of security vendors, xinchuang (domestic IT innovation) vendors and AI vendors, and to establish a phased compliance verification plan: Phase 1 (1-2 months) completes the MLPS gap assessment and remediation of the baseline environment; Phase 2 (2-3 months) completes the cryptographic application security assessment (MiPing) adaptation and cryptographic application transformation of the compiled agent; Phase 3 (1 month) completes full-chain penetration testing and compliance auditing.

Trend Outlook: The Next Stop for Compiled Agents

Looking ahead to the second half of 2026 through 2027, compiled agent technology will continue to evolve in the following directions:

  • Unified compilation for heterogeneous chips: Through the MLIR (Multi-Level Intermediate Representation) compiler framework, achieve write-once, compile-and-deploy-anywhere across multiple chips, eliminating the fragmentation challenges of domestic chip adaptation;
  • Federated compilation: While ensuring data localization at each node, support cross-node incremental model compilation and knowledge sharing, enabling a distributed evolution of "data stays in domain, intelligence can collaborate";
  • Formal verification: Compile the security attributes of compilation outputs (such as privacy protection and fairness constraints) into formally verifiable assertions, and automatically verify compliance through SMT solvers.

For users in the public security and government affairs sectors, the core priorities at the current stage are recommended as follows: first complete POC verification of single-machine deployment (1-2 months) → evolve to cluster deployment (3-6 months) → scale up and establish operations SOPs (6-12 months). Throughout the entire process, maintaining close alignment with the xinchuang ecosystem and regulatory requirements is the key to success.

Frequently Asked Questions

Q1: What is the most fundamental difference between a compiled agent and a traditional API-call-based agent?

In a traditional API-call-based agent, every runtime decision — including tool selection, reasoning paths, and output formats — relies on real-time inference by the large model, which means the model must stay online continuously and requests must go out to the network. A compiled agent, by contrast, pre-compiles the complete agent workflow into a deterministic execution artifact at build time: reasoning strategies are compiled into a directed acyclic graph (DAG), tool calls are compiled into pre-authorized sandbox interfaces, and model weights are quantized and packaged into the artifact. No network requests are needed at runtime, and all logic is closed-loop locally. This difference is decisive in high-security scenarios — compiled agents are inherently capable of offline operation, full-chain auditing, and a controllable attack surface, whereas API-call-based agents cannot fundamentally eliminate the risk of data leaving the network.

Q2: Does intranet AI deployment require high-end GPUs? Can domestic chips handle it?

Not necessarily high-end GPUs — it depends on the model size and the latency requirements of the application scenario. For scenarios such as intelligence analysis and text analysis, a 4-bit quantized 7B-parameter model on an Ascend 310 inference card can achieve inference latency within 200ms; for scenarios with higher concurrency or larger models (14B and above), cluster deployment with Ascend 910B or Cambricon MLU370 is recommended. Domestic AI chips are now largely mature for inference scenarios — the INT8 inference performance of the Ascend 910B is roughly 70%–80% of an A100, and with targeted operator optimization it can fully meet the practical needs of public security and government scenarios. When selecting hardware, it is advisable to prioritize chip models that have already been adapted to the compilation toolchain, to avoid project delays caused by driver compatibility issues.

Q3: How are compiled agents version-updated? Does the entire image need to be redeployed?

Compiled agents support an incremental compilation update mechanism. When model weights are fine-tuned, policy rules are adjusted, or tool interfaces change, the compilation toolchain generates a differential compilation module (typically 200–500MB), which is pushed to intranet nodes via an incremental distribution protocol. After receiving the incremental module, the agent runtime on the node performs a hot update through atomic swap, without affecting inference requests being processed throughout the process. Actual production data shows that from the release of an incremental module to the completion of a full-cluster update, a rolling update of thousands of nodes typically takes only 3–5 minutes. This mechanism effectively solves the operational pain point of "small change, full reinstall" in traditional large model deployment.

Q4: For compiled agents used in government scenarios, how can they pass the Level 3 classified protection evaluation?

The path to Level 3 classified protection compliance for compiled agents can be divided into technical and management dimensions. On the technical side, it is necessary to ensure: ① the runtime environment of compilation artifacts enforces mandatory access control (SELinux/AppArmor); ② model weights and compilation artifacts are stored encrypted using national cryptographic algorithms; ③ inference logs and audit records are written to the audit log system with SM4 encryption and in a tamper-proof manner; ④ inter-agent communication uses mTLS mutual authentication with national cryptographic SM2 certificates. On the management side, it is necessary to establish: ① a supply chain security management system for compilation artifacts (including code auditing, dependency scanning, and signature verification); ② a regular security assessment and penetration testing mechanism; ③ access control and operation auditing systems for operations personnel. It is recommended to invite an institution qualified for classified protection evaluation to conduct a gap assessment before deployment, and to advance compliance construction under the guidance of the evaluation institution, rather than passively remediating after going live.


Data in this article is current as of 2026-07-27. Through deep integration with the Santi Network T3N7 intelligent scheduling engine, compiled agent technology has validated the feasibility and high availability of intranet deployment in public security intelligence and government digitalization scenarios.