# 介绍 Introduction

## 问题陈述

随着 AI Agent 在金融、医疗、政务、企业 IAM 等高风险领域的部署，**"这个 AI 做了什么、为什么这么做、是否合规、能否解释、能不能事后追责"** 成为监管机构（EU AI Act / NIST AI RMF / 中国生成式 AI 服务管理办法）和企业用户的核心诉求。

传统中心化 AI 服务的问题：

| 问题          | 表现                                 |
| ----------- | ---------------------------------- |
| **不可篡改性缺失** | 模型输出 / 用户输入 / 决策链路可被服务商事后修改        |
| **不可追溯性**   | 决策依赖的模型版本、策略规则、输入 context 不留痕      |
| **不可问责性**   | 出事后无法定位是模型错、策略错、数据错还是操作员错          |
| **不可验证合规性** | 监管机构无法独立验证 AI 系统满足 EU AI Act 高风险条款 |
| **不可解释性**   | XAI 输出与决策本身无强绑定，可事后包装              |

## AxBlade 的回应

AxBlade 用 **ZK Rollup + 5-层链上协议** 把以上五个问题的答案全部上链：

```
┌─────────────────────────────────────────────────────────────┐
│ L4 — 监管锚点 Regulatory Anchor │
│ EU AI Act / NIST RMF / 中国生成式 AI 办法 policy hash 上链 │
├─────────────────────────────────────────────────────────────┤
│ L3 — 解释层 Explanation Layer │
│ SLM + XAI 摘要哈希 → ExplanationRegistry │
├─────────────────────────────────────────────────────────────┤
│ L2 — 策略引擎 Policy Engine │
│ Rego DSL 策略 hash → PolicyRegistry, OPA 评估 │
├─────────────────────────────────────────────────────────────┤
│ L1 — 决策回执 Decision Receipt │
│ PoDRegistry, ECDSA / TEE / zkML 三套验证器 │
├─────────────────────────────────────────────────────────────┤
│ L0 — 行为记录 Behavior Recording │
│ PoBRegistry + Merkle batch + ChallengeManager fraud-proof │
└─────────────────────────────────────────────────────────────┘
         全部基于 zkSync-era fork 的 ZK Rollup chain 391
```

每一层都是**独立可验证、可独立部署、可独立升级**的合约组，由 ChallengeManager 提供 7 天 fraud-proof window 保证 L0 数据不可伪造，由 StakeManager 提供经济安全保证 aggregator 不会无成本作恶。

## 为什么需要新链而不是 Smart Contract on Ethereum

ZK Rollup 选择主要有 4 个原因：

1. **吞吐量**：每个 AI Agent 每天产生上千条 BehaviorEvent；以太坊 L1 单 tx \~$5 完全不可行
2. **隐私**：BehaviorEvent 含敏感 user input；ZK 让"事件存在"可证明而事件内容不必公开
3. **专属系统合约槽位**：OracleHub (0x8016) / DIDRegistry (0x8017) 等需要 zksync-era 的 system contract slot 才能注入到 bootloader
4. **跨链 trust-minimized**：通过 L1OracleReader 把 Chainlink/Pyth 价格 trustless 拉到 L2，不依赖 sequencer

详见 [与 zkSync-era 的关系](/about-axblade/relationship-to-zksync-era.md) + [为什么不直接 deploy 到 Ethereum](/overview/differentiators.md)。

## 目标读者

| 你是                     | 推荐路径                                                                                                                                                                              |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **AI Agent 开发者**       | [Agent 接入](/getting-started/for-agents.md) → [TypeScript SDK](/integration-jie-ru-fang-shi/sdk-typescript.md) → [examples](/integration-jie-ru-fang-shi/examples/submit-batch.md) |
| **Smart Contract 开发者** | [合约 ABI](/integration-jie-ru-fang-shi/contract-abi.md) → [Foundry 工具链](/integration-jie-ru-fang-shi/tooling-foundry-cast.md)                                                      |
| **审计师**                | [审计师上手](/getting-started/for-auditors.md) → [送审包](/consolidated-resources/audit-prep-package.md) → [Threat Model](/security/threat-model-stride.md)                               |
| **监管 / 合规**            | [L4 监管锚点](/protocol-mechanics/regulatory-anchor.md) → [EU AI Act 模板](/legal-and-disclaimers/eu-ai-act-policy-disclaimer.md)                                                       |
| **投资人**                | [主网就绪度评估](/legal-and-disclaimers/not-mainnet-ready.md) → [关键差异化](/overview/differentiators.md)                                                                                    |
| **学术研究**               | 直接读 [白皮书 v0.3](https://github.com/leeleeEcho/babyDriver_Layer2/blob/main/docs/whitepaper/白皮书_中文v0.3.md)                                                                           |

## 链上事实（截至 commit `7c438db`）

| 项                  | 数据                                               |
| ------------------ | ------------------------------------------------ |
| 链                  | chain 391 (chain id `0x187`)                     |
| RPC                | `https://rpc-testnet.axblade.io`                 |
| 部署合约数              | 33                                               |
| Foundry 测试         | 905 passed / 0 failed                            |
| Branch coverage    | 75.75% (核心 audit-scope ≥ 88%)                    |
| 真链 fraud-proof e2e | challenge\_id=1, 0.5 ETH 真 slash, status=Claimed |
| L2 OPA SDK e2e     | 3 case (Compliant / Denied / NonCompliant) 全绿    |
| G3 30-min soak     | 100% uptime, p50=749ms, p99=1007ms, 0 drift      |
| 已修真 bug            | 1 (ChallengeManager CEI, commit `7a1c8b5`)       |
| 已清 dependency CVE  | 11 (Rust 4 + npm 7)                              |

相关：[什么是 AxBlade](/about-axblade/what-is-axblade.md) → 拆开 5 层逐一讲解。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yellowpaper.axblade.io/about-axblade/introduction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
