AI Agent MSG Chain 生态快速入口指南
链 ID:
msg-chain-1| 共识: DAR | 虚拟机: CosmWasm (WasmVM)
状态: 规划文档 — 主网裁决为 No-Go,所有数据均为主网预演
Gas: 1,000,000,000 attoMSG/gas
Gas 分配: 40% 验证者 / 30% 开发者 / 20% 燃烧 / 10% 基金会金库
地址格式: SHA3-512(前40位) + SHA-256 校验 | 签名: Dilithium-5 (公钥2592字节 / 私钥4864字节 / 签名4595字节)
AI Agent安全边界: 永不自主创建新合约,永不自主调整 Gas 参数,永不自主铸造/销毁代币
1. MSG Chain 是什么
MSG Chain 是一条兼容 CosmWasm 的 L1 区块链:
- 链 ID:
msg-chain-1 - 地址前缀:
msg(bech32) - 共识: DAR(动态自适应重复)
- 签名: Dilithium-5(后量子签名)
- 智能合约: CosmWasm(Rust 编写)
- 官方域名:
msgchain.org - 白皮书机器层:
https://msgchain.org/whitepaper/agent_entry.json
2. 接入协议(Bootstrap Protocol)
2.1 硬规则
- 始终从
agent_entry.json开始 — 唯一强制入口 - 编码任务立即进入
developer_entry.json - 问答/路由任务进入
retrieval_hints.json modules/*.html是权威叙事层- 不得将
partial/planned/stub声称成生产就绪 - 涉及签名、部署、金库、治理、域名、CI/CD、生产发布、资金操作 → 必须人类审批
module_exports/*.json和module_chunks/*.json是机器友好派生层- 回答必须包含:当前支持内容 → 状态标签 → 边界声明 → 证据引用
2.2 推荐读取顺序
1. agent_entry.json — 发现入口与爬取契约
2. whitepaper_manifest.json — 版本快照
3. developer_entry.json — 开发入口
4. retrieval_hints.json — 主题路由
5. developer_capability_matrix.json — 16 个能力表面
6. api_specs/index.json — API 规格索引
7. recipes/index.json — 配方索引
8. contract_templates/index.json — 合约模板
9. examples/index.json — dApp 示例
10. release_pack/index.json — 发布包
11. e2e_fixtures/index.json — 端到端测试
12. execution_pack/index.json — 执行包
2.3 回答规则
每条回答按以下格式组织:
- 直接答案 — 当前检索内容支持什么
- 状态标签 —
implemented/partial/stub/planned - 边界声明 — 什么还未证明、什么有局限
- 证据引用 — 模块 URL / chunk 引用 / 导出文件
2.4 不得声称
- ❌ 完整主网就绪(full mainnet readiness)
- ❌ 保证零人类启动(guaranteed zero-human launch)
- ❌ 完全自治的金库/治理执行(full autonomous treasury/governance execution)
- ❌ 仅 stub/planned/本地门禁的能力
3. 按任务类型导航
我要开发智能合约
agent_entry.json → developer_entry.json → recipes/contract_minimal.json
→ contract_templates/ → 编写合约 + 测试 → 部署计划 → 回执验证
依赖模块: contract.html, registry.html, rpc.html
我要开发 dApp 前端
agent_entry.json → developer_entry.json → recipes/dapp_minimal.json
→ chain_config/ → examples/ → API specs
优先: 钱包集成、查询/写入适配器、回执追踪、门禁发布审查
我要完整生命周期交付
agent_entry.json → developer_entry.json → product_delivery_entry.json
→ release_pack/ → e2e_fixtures/ → execution_pack/
保持人类审批门禁完整
我要做问答机器人 / 客服
agent_entry.json → retrieval_hints.json → faq_router_prompt_template
→ 匹配 topic_id → 拉取 recommended_chunks → 回答 + 边界
我要接入 Telegram Bot
agent_entry.json → retrieval_hints.json → module_chunks/index.json
→ 5 步爬取流程 → 回答策略 + 边界说明
我要构建 RAG 知识库
agent_entry.json → whitepaper_manifest.json → module_exports/index.json
→ module_chunks/index.json → 6 步批处理摄取
4. 能力表面速查
MSG Chain 白皮书定义了 16 个能力表面。生产支持(production_supported)仅以下 4 个:
| 表面 | 机器就绪度 | 生产支持 |
|---|---|---|
| CosmWasm 合约运行时 | assisted_codegen |
✅ |
| Registry 规范键解析 | production_reference |
✅ |
| RPC/REST/gRPC 网关 | assisted_codegen |
✅ |
| 链配置与钱包注入包 | starter_ready |
✅ |
其余 12 个表面处于 source_backed_reference / guarded_integration / starter_ready / fail_closed_reference 状态,不应声称为生产就绪。
Agent API 端点状态:
- 真实可用: Query, Events, Registry query
- 部分实现: Wallet, NFT, MPC
- Stub(桩端点): DeFi, Oracle, Payment, Bridge
5. 详细中文文档(68 篇)
所有文档位于 04-AI-Agent/ 目录,涵盖以下主题群:
入门与协议
| 文档 | 行数 | 说明 |
|---|---|---|
| 官方引导提示词与接入协议 | 1,582 | 官方 Bootstrap Prompt 完整中文解读 |
| 白皮书机器层使用指南 | 2,197 | agent_entry.json 到全入口的导航 |
| FAQ 路由与问答模板 | 1,027 | FAQ 路由与边界感知回答 |
| 白皮书清单与知识网络指南 | 1,150 | Manifest + 知识网络拓扑 |
生命周期与交付
| 文档 | 行数 | 说明 |
|---|---|---|
| 引导启动流程指南 | 4,854 | 从 DID 到完全启动 |
| 宪章编写与策略引擎指南 | 2,597 | 行为约束与策略 |
| 产品交付入口与全生命周期协议 | 1,973 | 5 阶段 + 4 审批门禁 |
| 执行包与命令注册表指南 | 1,864 | 命令/工作流注册 |
| 发布包与版本交付指南 | 1,222 | 发布/签署/分发 |
| 端到端测试与夹具指南 | 1,784 | E2E 测试工作流 |
开发与集成
| 文档 | 行数 | 说明 |
|---|---|---|
| OpenAPI 能力表面与端点指南 | 2,121 | 基于 developer_capability_matrix.json |
| 正式 API 规格与合约接口消费指南 | 2,092 | formal_contracts + rpc_methods |
| 合约模板与快速代码生成指南 | 2,483 | contract_templates/ + recipes |
| dApp 启动器与前端示例指南 | 3,482 | examples/ + 钱包配置 |
| 网络配置预设与沙箱开发策略 | 2,340 | 三套网络配� |
进阶模式
| 文档 | 行数 | 说明 |
|---|---|---|
| 合约间调用与组合模式指南 | 3,385 | 跨合约/工厂/Registry/CW4626 |
| 链上事件驱动架构与实时响应指南 | 1,849 | WebSocket/触发器/自动化 |
| 多环境部署策略与配置管理指南 | 1,197 | local→testnet→mainnet |
| Gas 优化与合约性能调优实战指南 | 1,363 | 存储/消息/查询优化 |
| 合约安全审计自动化指南 | 2,489 | CI/CD/模糊测试/形式化验证 |
| 合约升级与迁移模式指南 | 2,250 | migrate/数据迁移/代理/CW2 |
| 跨链 IBC 互操作性进阶指南 | 3,464 | ICS-721/ICA/ICQ/Middleware |
| DAO 治理实践指南 | 2,377 | 代币/提案/多签/金库/模块化 |
AI 集成示例
| 文档 | 行数 | 说明 |
|---|---|---|
| Telegram Bot 接入指南 | 1,327 | 基于官方 telegram_bot_crawl_flow.json |
| RAG 知识库摄取指南 | 1,833 | 基于官方 rag_ingest_flow.json |
| 自然语言与 LLM 集成指南 | 3,406 | LangChain/CrewAI 集成 |
| 多语言框架集成 (LangChain-CrewAI) | 5,055 | Agent 框架实战 |
基础设施
| 文档 | 行数 | 说明 |
|---|---|---|
| MPC 多重签名钱包接入 | 2,579 | 多签/密钥分片 |
| AIPAY 支付系统深度接入 | 4,373 | 支付意图/微支付/结算 |
| A2A 通信协议 | 3,461 | Agent-to-Agent 通信 |
| Registry 注册与发现 | 2,596 | Agent 注册/声誉 |
| AI Task L2 执行层接入 | 2,894 | 去中心化任务/证明 |
数据与市场
| 文档 | 行数 | 说明 |
|---|---|---|
| 链上信誉评分 | 3,154 | 评分/指标 |
| 数据市场 | 4,272 | 数据资产交易 |
| 模型推断服务市场 | 5,639 | ML 推理市场 |
| Agent 市场完整 dApp | 3,173 | 市场前端 |
6. 快速链接
| 资源 | 链接 |
|---|---|
| 白皮书机器层入口 | https://msgchain.org/whitepaper/agent_entry.json |
| 开发者入口 | https://msgchain.org/whitepaper/developer_entry.json |
| 能力矩阵 | https://msgchain.org/whitepaper/developer_capability_matrix.json |
| API 表面 | https://msgchain.org/whitepaper/api_specs/openapi/agent_surface.yaml |
| 引导提示词 | https://msgchain.org/whitepaper/integration_examples/external_ai_agent_bootstrap_prompt.md |
| FAQ 模板 | https://msgchain.org/whitepaper/integration_examples/faq_router_prompt_template.md |
| 中文索引首页 | https://github.com/your-org/msgchain-docs/README.md |
| 官方域名 | https://msgchain.org |
| 链浏览器 | https://explorer.msgchain.org |
| RPC 端点 | https://rpc.msgchain.org |
本文档是 MSG Chain 生态的中文入口指南。其他 AI Agent 可将本文档作为系统提示词的一部分,快速了解 MSG Chain 的能力表面、接入协议和服务边界。
所有详细中文文档位于docs/04-AI-Agent/目录,与msgchain.org/whitepaper/官方机器层内容保持对齐。
