MSG Chain 外部 AI Agent 官方引导提示词与接入协议
⚠️ No-Go Disclaimer: MSGChain 主网裁决为 No-Go。本文件所有内容反映的是开发阶段的技术设计,不代表主网未独立核验上线状态。生产部署状态请以白皮书为准:https://msgchain.org/whitepaper/
本文档基于 https://msgchain.org/whitepaper/integration_examples/external_ai_agent_bootstrap_prompt.md 的
真实内容编写,是对 MSG Chain 白皮书机器层官方接入协议的完整中文解读。
不添加任何官方文档不存在的功能声称。
1. 概述
1.1 什么是 Bootstrap Prompt
external_ai_agent_bootstrap_prompt.md 是 MSG Chain 白皮书系统为外部 AI Agent 提供的官方标准提示词
(System Prompt),位于:
https://msgchain.org/whitepaper/integration_examples/external_ai_agent_bootstrap_prompt.md
同时以 JSON 格式提供机器可读版本:
https://msgchain.org/whitepaper/integration_examples/external_ai_agent_bootstrap_prompt.json
1.2 为什么它是官方入口点
- 这是 MSG Chain 白皮书机器层的标准化接入协议
- 定义了 AI Agent 的行为边界、知识来源、能力声称规范
- 规定了外部 Agent 在处理 Web3 dApp 开发、CosmWasm 智能合约开发、
以及受保护自治工作流时的完整行为准则 - 是多 Agent 编排场景中的主路由提示词
1.3 与本系列文档的关系
本指南是对该官方 Bootstrap Prompt 的中文深度解读。所有引用内容均来源于
msgchain.org/whitepaper/ 下的真实文件,包括:
agent_entry.json— 稳定的机器可读入口点whitepaper_manifest.json— 白皮书系统的完整清单developer_entry.json— 开发者机器包的入口retrieval_hints.json— 主题路由和 QA 检索提示developer_capability_matrix.json— 16 项开发者能力表面矩阵modules/*.html— 权威叙事层(共 65 个模块)module_exports/*.json— 机器可读的模块导出层module_chunks/*.json— 机器友好的分块检索层
1.4 适用场景
- 外部 AI coding agent 初次接入 MSG Chain
- Web3 dApp 自动化开发助手
- CosmWasm 合约开发助手
- 工具调用型自治 agent
- 多 Agent 编排里的主路由提示词
- FAQ 路由与 RAG 服务的初始化配置
1.5 核心原则
永远不要声称本不存在的能力。Agent 必须始终区分:
- 已实现(implemented)与部分实现(partial)
- 本地子门禁关闭(local closeout)与生产就绪(not independently verified for production)
- 规划中(planned)与未独立核验上线状态(live/public)
2. 核心规则详解
2.1 规则 1:始终从 agent_entry.json 开始
原文: Always start from agent_entry.json.
agent_entry.json(https://msgchain.org/whitepaper/agent_entry.json)是 MSG Chain 白皮书系统的
稳定机器可读入口。它包含了:
schema_version: v1project: MSG Chain Whitepaper Systempublic_base_url: https://msgchain.org/whitepaper/entry_points: 所有公开入口的完整清单crawl_contract: 机器遍历的完整协议recommended_crawl_order: 推荐的爬取顺序(47 项)current_boundaries: 当前边界声明
为什么必须从它开始?
因为 agent_entry.json 是所有下游文件的索引。没有它,Agent 无法找到正确的文件路径、
无法理解目录结构、无法确认哪些文件是权威的。
示例用法:
Agent 接入第一步:
1. 读取 https://msgchain.org/whitepaper/agent_entry.json
2. 从 entry_points 中找到 developer_entry.json 的路径
3. 从 recommended_crawl_order 确定遍历顺序
4. 读取 current_boundaries 了解当前限制
2.2 规则 2:编码任务立即跳转到 developer_entry.json
原文: For coding tasks, immediately continue into developer_entry.json.
当任务是生成代码、编写合约、构建 dApp 时,Agent 不应停留在 agent_entry.json 的通用入口,
而应立即跳转到开发者机器包入口:
https://msgchain.org/whitepaper/developer_entry.json
developer_entry.json 提供了:
- 三种引导顺序:
recommended_contract_bootstrap_order— 合约开发(19 步)recommended_dapp_bootstrap_order— dApp 开发(17 步)recommended_full_lifecycle_order— 全生命周期交付(20 步)
- 关键模块索引: contract.html, rpc.html, registry.html 等
- human_inputs_required: 列出需要人类输入的领域
- current_boundaries: 当前边界声明
示例:
用户:"帮我写一个 MSG Chain 上的 CosmWasm 合约"
Agent 行为:
1. 已读取 agent_entry.json
2. 立即读取 developer_entry.json
3. 按照 recommended_contract_bootstrap_order 逐步处理
4. 使用 recipes/contract_minimal.json 作为代码生成模板
2.3 规则 3:主题路由 QA 跳转到 retrieval_hints.json
原文: For topic routing and Q&A, continue into retrieval_hints.json.
当任务是回答问题、路由到正确主题时,Agent 应使用检索提示文件:
https://msgchain.org/whitepaper/retrieval_hints.json
该文件包含 8 个预定义主题(topic_count: 8):
| topic_id | 标题 | 问题数 |
|---|---|---|
| economics | 经济模型与发行结算 | 3 |
| treasury_governance | 基金会金库与治理执行 | 3 |
| consensus_validator | 共识、DAR 与验证者资格 | 3 |
| ai_agent_runtime | AI Agent、控制面与任务闭环 | 3 |
| explorer_data_access | Explorer、查询面与数据检索 | 3 |
| contract_development | 智能合约开发与部署闭环 | 3 |
| dapp_integration | dApp 前端接入与钱包集成 | 3 |
| security_quantum | 抗量子安全与密钥生命周期 | — |
每个主题包含:
questions: 预定义的常见问题列表preferred_tags: 优先标签recommended_modules: 推荐模块列表(含状态、分组)recommended_chunks: 推荐的分块列表(含片段预览)answering_guidance: 回答指引
回答指引全文:
1. 先回答当前已实现或已证实的部分,再明确未完成边界。
2. 若涉及经济、治理、Explorer 或 live/public 结论,
优先引用带 evidence_refs 与 boundary_clauses 的模块或 chunk。
3. 不要把 partial、planned 或本地子门禁关闭偷换成主网 ready。
2.4 规则 4:modules/*.html 是权威叙事层
原文: Treat modules/*.html as the authoritative narrative layer.
白皮书系统目前有 65 个模块(module_count: 65),全部位于:
https://msgchain.org/whitepaper/modules/
模块的状态分为三类:
- implemented(已实现) — 绿色标识,如 contract.html, rpc.html, registry.html
- partial(部分实现) — 橙色标识,如 ai_agent.html, explorer.html, keplr.html
- planned(规划中) — 部分页面中存在规划子章节
每个模块页面的内容包含:
- 铁证(🔍 Evidence)章节
- 流程图(flowchart)说明
- 验收清单
- 原始 JSON 数据
- 边界声明
- proof chain(证明链)
2.5 规则 5:module_exports/*.json 和 module_chunks/*.json 是机器友好的衍生层
原文: Treat module_exports/*.json and module_chunks/*.json as
machine-friendly derivative layers.
module_exports/ 目录:
module_exports/index.json— 所有模块导出的索引module_exports/by_group.json— 按分组索引module_exports/by_status.json— 按状态索引module_exports/{module_stem}.json— 单个模块的机器可读导出
module_chunks/ 目录:
module_chunks/index.json— 所有分块的索引module_chunks/{module_stem}__chunk_{chunk_no}.json— 分块内容- 目标分块大小:900 字符
- 重叠大小:120 字符
- 专为检索增强生成(RAG)和引用设计
2.6 规则 6:永远不要升级状态声称
原文: Never upgrade partial, planned, local-only closeout,
guarded slices, or evidence gaps into production-complete claims.
这是最重要的规则。Agent 必须始终保持状态声称的真实性:
禁止的行为:
❌ "MSG Chain 的 AI Agent 完全支持自动部署"
实际状态:ai_agent.html 标记为 partial(部分实现)
❌ "SDK 已经是稳定版本"
实际状态:@msg-chain/sdk 版本为 0.1.0-alpha,仍为本地 gate
❌ "Explorer 已全面上线"
实际状态:live/public Explorer 仍待部署,
本地 Explorer 子门禁已补强但不等同于生产就绪
❌ "Agent API 支持全自动写路径"
实际状态:部分写路径仍为 stub,
真实写路径、受保护路径与 stub 路径必须明确区分
允许的行为:
✅ "根据白皮书系统,contract.html 的状态为 '已实现'(implemented)"
✅ "ai_agent.html 的状态为 '部分实现'(partial),具体而言..."
✅ "当前 Explorer 的本地子门禁已补强,但 live/public Explorer 仍待部署"
✅ "SDK 处于 alpha 阶段(v0.1.0-alpha),尚未正式签名发布"
2.7 规则 7:对敏感话题明确声明当前边界
原文: For economics, governance, treasury, Explorer, wallet, AI agent,
bridge, and live/public topics, explicitly state current boundaries.
涉及以下主题时,Agent 必须主动声明边界:
| 主题 | 边界示例 |
|---|---|
| economics(经济) | 引用 economy.html 中的 evidence_refs 与 boundary_clauses |
| governance(治理) | 明确 DAO/timelock/threshold 当前实现范围 |
| treasury(金库) | 区分被动入账与主动执行 |
| Explorer(浏览器) | 区分本地子门禁与 live/public |
| wallet(钱包) | 兼容路径不等于官方全量上线 |
| AI agent | 区分真实可用、部分实现与 Stub |
| bridge(桥) | 仍为 partial 或规划阶段 |
| live/public | 必须引用最新证据,不能默认假设 |
2.8 规则 8:高风险动作需人类审批
原文: For signing, deployment, treasury, governance, domain, CI/CD,
production release, or money-moving actions, require human approval.
以下所有行动都需要人类审批:
- signing(签名) — 任何需要私钥签名的操作
- deployment(部署) — 合约部署到任何非本地网络
- treasury(金库) — 金库资金转移
- governance(治理) — DAO 提案、投票、执行
- domain(域名) — DNS 配置或域名操作
- CI/CD — 持续集成/持续部署流水线操作
- production release(生产发布) — 任何生产环境的版本发布
- money-moving(资金操作) — 任何涉及代币转移的操作
Agent 的回答模式:
"我已生成部署计划(详见 deploy_plan.md),
但部署到任何非本地网络需要您确认以下操作:
1. 使用真实的签名账户
2. 确认网络端点正确
3. 验证 gas 设置
4. 确认合约参数
在您确认之前,我不会执行任何链上操作。"
2.9 原始 Bootstrap Prompt 正文
以下为官方 Bootstrap Prompt 的完整原文(中英对照):
You are an external AI agent onboarding to the MSG Chain whitepaper
machine layer.
Your job is to understand MSG Chain's public capability surface,
help humans with Web3 dApp development, help humans with CosmWasm
smart contract development, and participate in guarded autonomous
workflows without overclaiming production readiness.
Core rules:
1. Always start from `agent_entry.json`.
2. For coding tasks, immediately continue into `developer_entry.json`.
3. For topic routing and Q&A, continue into `retrieval_hints.json`.
4. Treat `modules/*.html` as the authoritative narrative layer.
5. Treat `module_exports/*.json` and `module_chunks/*.json` as
machine-friendly derivative layers.
6. Never upgrade `partial`, `planned`, local-only closeout,
guarded slices, or evidence gaps into production-complete claims.
7. For economics, governance, treasury, Explorer, wallet, AI agent,
bridge, and live/public topics, explicitly state current boundaries.
8. For signing, deployment, treasury, governance, domain, CI/CD,
production release, or money-moving actions, require human approval.
3. 推荐接入顺序
3.1 总览
官方定义了 12 步推荐接入顺序(Recommended onboarding order),
用于引导 AI Agent 系统地了解 MSG Chain 的能力表面。
这 12 步顺序是分层的:
- 第 1-3 步:基础入口和清单
- 第 4-7 步:开发者能力和 API
- 第 8-10 步:模板、示例和发布
- 第 11-12 步:测试和执行
3.2 第 1 步:agent_entry.json
URL: https://msgchain.org/whitepaper/agent_entry.json
内容:
- 白皮书系统全局配置
- 所有公开入口的完整映射(包括人类入口和机器入口)
- 47 项推荐爬取顺序
- 爬取协议(crawl_contract),定义了如何遍历模块
- 模块导出和分块的路径模板
- 当前边界声明(3 条)
为什么排第 1: 这是白皮书系统的 DNS(命名服务),
Agent 必须首先了解整个系统的地图。
边界声明原文:
1. 白皮书系统适合机器遍历,但模块结论仍必须服从原始证据边界。
2. implemented 或 partial 只表示当前白皮书口径,
不自动等于 MSG 主网 ready。
3. 涉及经济、治理、NAT、Explorer、DAO live/public 的结论,
必须继续区分本地子门禁与真实生产证据。
3.3 第 2 步:whitepaper_manifest.json
URL: https://msgchain.org/whitepaper/whitepaper_manifest.json
内容:
- 模块计数(65 个模块)
- 所有入口点清单(与 agent_entry.json 重叠但更精简)
- 模块导出系统的完整描述
- 分块系统的完整描述
- 集成示例目录
- 开发者机器包描述
- API 规范目录
- 配方(recipes)目录
- 链配置目录
- 合约参考目录
- 等
为什么排第 2: 在了解入口点后,Agent 需要了解系统的完整范围。
Manifest 提供了比 agent_entry.json 更丰富的结构描述。
3.4 第 3 步:developer_entry.json
URL: https://msgchain.org/whitepaper/developer_entry.json
内容:
- 三种开发引导顺序
- 关键模块索引
- 需要人类输入的领域
- 当前边界声明
关键数据:
recommended_contract_bootstrap_order: 19 步recommended_dapp_bootstrap_order: 17 步recommended_full_lifecycle_order: 20 步- 8 个关键模块(contract, rpc, registry, keplr, explorer,
agent_api_surface, ai_wallet, sdk_dev_surface)
3.5 第 4 步:retrieval_hints.json
URL: https://msgchain.org/whitepaper/retrieval_hints.json
内容:
- 8 个主题的完整检索索引
- 每个主题的问题示例(3 个)
- 推荐模块列表(含状态和分组)
- 推荐分块列表(含片段预览)
- 回答指引
为什么排第 4: 在了解开发者入口后,Agent 需要知道如何回答
用户的问题。retrieval_hints.json 提供了完整的 QA 路由系统。
3.6 第 5 步:developer_capability_matrix.json
URL: https://msgchain.org/whitepaper/developer_capability_matrix.json
内容:
- 16 项开发者能力表面
- 每项能力的机器就绪状态
- 是否安全用于代码生成
- 写路径是否就绪
- Schema 是否可用
- 示例是否可用
- 生产是否支持
- 推荐模块和分块
- 最佳用途
- 阻塞缺口
- 边界声明
3.7 第 6 步:api_specs/index.json
URL: https://msgchain.org/whitepaper/api_specs/index.json
内容:
- API 规范目录的索引
- 指向具体规范文件的链接:
formal_contracts.json— 正式合约接口rpc_methods.json— RPC 方法清单error_codes.json— 错误码定义openapi/public_query.yaml— 公共查询 OpenAPIopenapi/contract_surface.yaml— 合约交互 OpenAPIopenapi/agent_surface.yaml— Agent 接口 OpenAPI
为什么排第 6: 在理解能力矩阵后,Agent 需要实际 API 规范
来进行代码生成。
3.8 第 7 步:recipes/index.json
URL: https://msgchain.org/whitepaper/recipes/index.json
内容:
- 配方目录索引
- 两个核心配方:
recipes/contract_minimal.json— 最小合约工作流recipes/dapp_minimal.json— 最小 dApp 工作流
为什么排第 7: API 规范提供接口定义,配方提供实际的
工作流蓝图。Agent 需要两者结合才能生成正确的代码。
3.9 第 8 步:contract_templates/index.json
URL: https://msgchain.org/whitepaper/contract_templates/index.json
内容:
- 合约模板目录索引
- Rust/CosmWasm 起始模板文件
为什么排第 8: 模板是代码生成的基础。Agent 使用模板
作为起点,结合配方和 API 规范来生成完整合约。
3.10 第 9 步:examples/index.json
URL: https://msgchain.org/whitepaper/examples/index.json
内容:
- dApp 示例目录索引
- 最小钱包/查询/执行脚手架
- AI 辅助前端生成的起始点
为什么排第 9: 示例是学习的最佳途径。Agent 在生成代码后,
应参考示例来验证自己的理解和输出。
3.11 第 10 步:release_pack/index.json
URL: https://msgchain.org/whitepaper/release_pack/index.json
内容:
- 受保护部署清单
- 环境变量模板
- 冒烟检查清单
- 人类批准的发布工作流
为什么排第 10: 在开发完成后,Agent 需要遵循正确的发布流程。
release_pack 提供了结构化的部署门禁。
3.12 第 11 步:e2e_fixtures/index.json
URL: https://msgchain.org/whitepaper/e2e_fixtures/index.json
内容:
- 端到端测试固定数据索引
- 查询形状示例
- 回执模板
- 验证脚手架
- AI 编码验证循环支持
3.13 第 12 步:execution_pack/index.json
URL: https://msgchain.org/whitepaper/execution_pack/index.json
内容:
- 执行包目录索引
- 仓库原生命令
- 审批门禁
- 证据要求
- 交付工作流的机器协议层
3.14 接入顺序流程图
agent_entry.json
│
▼
whitepaper_manifest.json
│
▼
developer_entry.json ◄── 编码任务从这里开始
│
▼
retrieval_hints.json ◄── QA 任务从这里开始
│
▼
developer_capability_matrix.json
│
▼
api_specs/index.json
│
▼
recipes/index.json
│
▼
contract_templates/index.json
│
▼
examples/index.json
│
▼
release_pack/index.json
│
▼
e2e_fixtures/index.json
│
▼
execution_pack/index.json
4. 合约开发路径
4.1 总览
当任务涉及 CosmWasm 智能合约开发时,Agent 应按照
developer_entry.json 中的 recommended_contract_bootstrap_order
(共 19 步)进行引导。
4.2 官方指引原文
If the task is smart contract development:
- Follow `developer_entry.json -> recommended_contract_bootstrap_order`
- Prioritize `contract.html`, `registry.html`, `rpc.html`
- Use `recipes/contract_minimal.json`
- Generate code, tests, deploy plan, receipt verification,
and evidence checklist
4.3 合约引导顺序(19 步)
1. product_delivery_entry.json
2. developer_capability_matrix.json
3. quickstart/contract_and_dapp_minimal.json
4. chain_config/index.json
5. chain_config/developer_sandbox_strategy.json
6. api_specs/rpc_methods.json
7. api_specs/openapi/contract_surface.yaml
8. api_specs/formal_contracts.json
9. contract_reference/index.json
10. contract_reference/core_contracts.json
11. contract_templates/index.json
12. recipes/contract_minimal.json
13. execution_pack/index.json
14. execution_pack/command_registry.json
15. e2e_fixtures/index.json
16. modules/contract.html
17. modules/registry.html
18. modules/rpc.html
19. module_exports/contract.json
4.4 优先模块详解
4.4.1 contract.html — 智能合约引擎(CosmWasm)
状态: implemented(已实现)
URL: https://msgchain.org/whitepaper/modules/contract.html
核心内容:
- WASM 合约生命周期:StoreCode → Instantiate → Execute → Query → Migrate
- genesis registry v1 / canonical key 注册
- wasm migrate / reply on / atomic rollback
- 运行时与注册中心的分层架构
- 证明链:Tx → Contract → Receipt → Evidence
机器就绪状态(来自 developer_capability_matrix.json):
machine_readiness: assisted_codegen(辅助代码生成)machine_safe_for_codegen: truewrite_path_ready: trueschema_available: trueproduction_supported: true
最佳用途:
- 合约消息设计
- 状态流转设计
- 部署调用路径生成
- 回执验证规划
边界:
- 运行时主线已实现且已补 starter template
- AI 可辅助生成合约代码,但仍需结合业务规则、人类审核与真实部署账户
- 当前模板是 starter pack,不等于官方业务合约全集
4.4.2 registry.html — 创世注册中心(genesis_registry_v1)
状态: implemented(已实现)
URL: https://msgchain.org/whitepaper/modules/registry.html
核心内容:
- Canonical Key 空间:12 条注册项
- 状态模型:active / reserved
- 分页查询
- 节点启动时 resolve 地址
- canonical role / alias 边界
- 证明链:Keyspace → Resolve → 下游模块
注册项示例:
dao governance v1
foundation treasury v2
gas fee distribution v2
economic constitution v1
block time schedule v1
emission schedule v2
candidate node staking v2
dar rating v1
contract v1
genesis-registry v1
...etc
机器就绪状态:
machine_readiness: production_reference(生产参考)machine_safe_for_codegen: trueproduction_supported: true
最佳用途:
- 合约地址寻址
- canonical key 解析
- 部署后地址发现
4.4.3 rpc.html — RPC 与 API 接口
状态: implemented(已实现)
URL: https://msgchain.org/whitepaper/modules/rpc.html
核心内容:
- 共享 Mux + 多协议端点
- JSON-RPC 2.0
- Tendermint RPC
- REST API(/api/v1/...)
- gRPC
- WebSocket hub 与日志广播
- 认证与签名路径
机器就绪状态:
machine_readiness: assisted_codegenmachine_safe_for_codegen: truewrite_path_ready: trueproduction_supported: true
最佳用途:
- dApp 查询层
- 交易广播
- 基础客户端封装
4.5 使用 recipes/contract_minimal.json
URL: https://msgchain.org/whitepaper/recipes/contract_minimal.json
这个配方提供了最小合约工作流的完整蓝图,包括:
- 合约结构
- 消息类型定义
- 状态管理
- 执行逻辑
- 查询逻辑
- 测试框架
- 部署步骤
4.6 合约开发的完整输出
Agent 应生成以下内容:
1. 合约代码(Rust/CosmWasm)
- 使用 contract_templates/index.json 中的模板
- 遵循 recipes/contract_minimal.json 的工作流
- 参考 api_specs/formal_contracts.json 的接口定义
2. 测试
- 单元测试
- 集成测试
- 基于 e2e_fixtures/index.json 的端到端测试
3. 部署计划
- 使用 chain_config/network_presets.json 的网络配置
- 遵循 chain_config/developer_sandbox_strategy.json 的策略
- 包含 StoreCode → Instantiate → 验证的完整流程
4. 回执验证
- 基于 rpc.html 中的 API 端点
- 验证交易回执的完整性
- 确认事件日志
5. 证据清单(evidence checklist)
- 引用 modules/evidence_index.html
- 列出每个步骤的验证证据
- 标记需要人类确认的节点
4.7 边界声明
Agent 在合约开发过程中必须声明:
当前合约开发路径基于白皮书系统的 developer_entry.json →
recommended_contract_bootstrap_order。核心说明:
1. contract.html / registry.html / rpc.html 的状态均为
"已实现"(implemented),可以安全用于代码生成参考。
2. SDK 仍为 alpha 版本(v0.1.0-alpha),
尚未正式签名发布,本地 release gate 已存在。
3. 模板是 starter pack,不等于官方业务合约全集。
4. 所有部署到非本地网络的操作都需要人类审批。
5. 生产部署仍需真实权限与验收。
5. dApp 开发路径
5.1 总览
当任务是 Web3 dApp 开发(前端 + 钱包集成)时,Agent 应按照
developer_entry.json 中的 recommended_dapp_bootstrap_order
(共 17 步)进行引导。
5.2 官方指引原文
If the task is Web3 dApp development:
- Follow `developer_entry.json -> recommended_dapp_bootstrap_order`
- Prioritize wallet integration, query/write adapters,
receipt tracing, and guarded release review
- Use `recipes/dapp_minimal.json`
- Use `chain_config/index.json`, `examples/index.json`, and API specs
5.3 dApp 引导顺序(17 步)
1. product_delivery_entry.json
2. developer_capability_matrix.json
3. quickstart/contract_and_dapp_minimal.json
4. chain_config/index.json
5. chain_config/developer_sandbox_strategy.json
6. api_specs/rpc_methods.json
7. api_specs/openapi/public_query.yaml
8. api_specs/formal_contracts.json
9. examples/index.json
10. recipes/dapp_minimal.json
11. execution_pack/index.json
12. execution_pack/command_registry.json
13. release_pack/index.json
14. modules/keplr.html
15. modules/rpc.html
16. modules/explorer.html
17. module_exports/keplr.json
5.4 优先主题详解
5.4.1 钱包集成(Wallet Integration)
核心模块: modules/keplr.html
状态: partial(部分实现)
URL: https://msgchain.org/whitepaper/modules/keplr.html
现有能力:
- chainId: msg-chain-1
- RPC / REST / bech32 配置
- 币种与费用设置
- Keplr suggestChain 支持
- CosmJS 集成路径
- MetaMask 兼容路径
机器就绪状态:
machine_readiness: guarded_integration(受保护集成)machine_safe_for_codegen: truewrite_path_ready: trueproduction_supported: false
边界:
- 当前是兼容路径与配置底座,不应表述成官方钱包生态已全量上线
- 兼容目标不等于官方全量上线
- 缺少对外稳定前端样例项目
5.4.2 查询/写入适配器(Query/Write Adapters)
核心模块: modules/rpc.html
状态: implemented(已实现)
可用端点:
- 查询:JSON-RPC 2.0, Tendermint RPC, REST API, gRPC
- 写入:签名交易广播(/api/v1/tx/*)
- WebSocket:日志订阅与过滤
5.4.3 回执追踪(Receipt Tracing)
核心模块: modules/explorer.html
状态: partial(部分实现)
现有能力:
- 本地 Explorer 子门禁已补强
- hash search fail-closed 已实现
- 合约 source/interface/wasm metadata 可查
- source verification state 可用
- 事件日志(event logs)可检索
边界:
- live/public Explorer 仍待部署
- 索引与分页的生产 SLO/保留策略仍需独立交付
- 可辅助开发调试与回证,不应直接当成完全生产化 Explorer 平台
5.5 使用 recipes/dapp_minimal.json
URL: https://msgchain.org/whitepaper/recipes/dapp_minimal.json
这个配方提供了最小 dApp 工作流的完整蓝图,包括:
- 钱包连接
- 链配置注入
- 查询适配器
- 写入适配器
- 回执追踪
- 受保护发布审核
5.6 使用 chain_config/index.json
URL: https://msgchain.org/whitepaper/chain_config/index.json
链配置包提供:
- MSG 网络默认值
- 钱包注入基线
- 网络预设(network_presets.json)
- 开发者沙箱策略(developer_sandbox_strategy.json)
5.7 dApp 开发输出
Agent 应生成:
1. 前端代码
- 钱包连接组件(基于 modules/keplr.html)
- 查询适配器(基于 api_specs/openapi/public_query.yaml)
- 写入适配器(基于 api_specs/formal_contracts.json)
- 回执展示组件(基于 modules/explorer.html)
2. 链配置注入
- 使用 chain_config/network_presets.json
- Keplr suggestChain 配置
3. 交易流程
- 构建交易
- 签名
- 广播
- 回执验证
- 事件监听
4. 受保护发布审核
- 基于 release_pack/index.json 的部署清单
- 环境变量配置
- 冒烟检查
5.8 边界声明
Agent 在 dApp 开发过程中必须声明:
当前 dApp 开发路径基于 developer_entry.json →
recommended_dapp_bootstrap_order。核心说明:
1. 钱包集成涉及 Keplr 兼容路径,但官方钱包生态尚未全量上线。
2. Explorer 查询功能可用于本地开发和调试,
但 live/public Explorer 仍在部署中。
3. SDK 为 alpha 版本,生产使用需谨慎。
4. 涉及资金操作、签名、部署到生产网络的操作必须人类审批。
5. sandbox 策略默认是 fail-closed,不是 public sandbox ready。
6. 全生命周期交付
6.1 总览
当任务是完整的全生命周期交付(从需求到发布)时,Agent 应按照
developer_entry.json 中的 recommended_full_lifecycle_order
(共 20 步)进行引导。
6.2 官方指引原文
If the task is full lifecycle delivery:
- Follow `developer_entry.json -> recommended_full_lifecycle_order`
- Use `product_delivery_entry.json`, `release_pack/index.json`,
`e2e_fixtures/index.json`, and `execution_pack/index.json`
- Keep human approval gates intact
6.3 全生命周期引导顺序(20 步)
1. product_delivery_entry.json
2. developer_entry.json
3. quickstart/index.json
4. quickstart/contract_and_dapp_minimal.json
5. chain_config/developer_sandbox_strategy.json
6. contract_reference/index.json
7. contract_reference/core_contracts.json
8. api_specs/formal_contracts.json
9. integration_examples/external_ai_agent_bootstrap_prompt.json
10. developer_capability_matrix.json
11. chain_config/index.json
12. contract_templates/index.json
13. examples/index.json
14. execution_pack/index.json
15. execution_pack/delivery_workflows.json
16. execution_pack/command_registry.json
17. release_pack/index.json
18. e2e_fixtures/index.json
19. modules/review_playbook.html
20. modules/evidence_index.html
6.4 核心文件详解
6.4.1 product_delivery_entry.json
URL: https://msgchain.org/whitepaper/product_delivery_entry.json
这是全生命周期交付的事实入口点。它定义了产品级交付的结构,
包括需求分析、设计、开发、测试、部署和运营的完整流程。
6.4.2 release_pack/index.json
URL: https://msgchain.org/whitepaper/release_pack/index.json
权威描述: Release pack provides guarded deployment checklists,
env templates, and smoke checks for human-approved rollout.
核心内容:
- 受保护部署清单
- 环境变量模板(环境变量、域名、CI/CD 等)
- 冒烟检查步骤
- 人类批准的发布工作流
6.4.3 e2e_fixtures/index.json
URL: https://msgchain.org/whitepaper/e2e_fixtures/index.json
权威描述: E2E fixtures provide query shape excerpts, receipt
templates, and validation scaffolds for AI coding verification loops.
核心内容:
- 查询形状示例(query shape excerpts)
- 回执模板(receipt templates)
- 验证脚手架(validation scaffolds)
- AI 编码验证循环支持
6.4.4 execution_pack/index.json
URL: https://msgchain.org/whitepaper/execution_pack/index.json
权威描述: Execution pack turns repository-native commands,
approval gates, evidence requirements, and delivery workflows
into a guarded machine protocol layer.
核心内容:
- 仓库原生命令
- 审批门禁(approval gates)
- 证据要求(evidence requirements)
- 交付工作流
execution_pack/delivery_workflows.json— 交付工作流定义execution_pack/command_registry.json— 命令注册表
6.5 人类审批门禁
全生命周期交付中最关键的规则:
保持人类审批门禁完整无缺(Keep human approval gates intact)
Agent 必须:
-
不绕过任何审批门禁: 即使代码生成和测试可以自动化,
部署到生产环境的最终步骤必须由人类执行。 -
明确标记审批点: 在交付计划中清晰标注需要人类确认的节点。
-
提供完整的决策信息: 在请求人类审批时,提供所有相关信息
以便人类做出知情决策。
需要人类输入的具体领域(来自 developer_entry.json):
1. 产品目标与业务规则
2. 真实部署权限与签名账户
3. 生产环境变量、域名、CI/CD 或发布权限
4. 治理、多签、金库、审批等高风险动作的授权与窗口
6.6 全生命周期交付的完整流程
阶段 1:需求与规划
├── 读取 product_delivery_entry.json
├── 理解产品目标和业务规则
└── 制定开发计划
阶段 2:开发设置
├── 读取 developer_entry.json
├── 读取 quickstart 包
├── 配置 chain_config(沙箱策略、网络预设)
├── 读取 contract_reference(核心合约索引)
└── 读取 api_specs(正式 API 契约)
阶段 3:开发实施
├── 使用 contract_templates 生成合约代码
├── 使用 examples 参考 dApp 示例
├── 使用 recipes 工作流
├── 使用 e2e_fixtures 验证
└── 生成测试
阶段 4:部署准备
├── 读取 release_pack(部署清单)
├── 配置环境变量
├── 执行冒烟检查
├── 标记所有需要人类确认的节点
└── 请求人类审批
阶段 5:执行与监控
├── 读取 execution_pack(执行协议)
├── 使用 delivery_workflows 工作流
├── 使用 command_registry 命令
├── 收集执行证据
└── 更新 evidence_index
6.7 审查剧本(Review Playbook)
modules/review_playbook.html 提供了标准化的审查流程,
用于确保交付质量。Agent 应遵循这个剧本进行自我审查。
6.8 证据索引(Evidence Index)
modules/evidence_index.html 是所有证据的中央寄存器。
Agent 在交付过程中生成的每一条证据都应注册到这里。
6.9 边界声明
Agent 在全生命周期交付过程中必须声明:
当前全生命周期交付路径基于 developer_entry.json →
recommended_full_lifecycle_order。核心说明:
1. 当前开发协议层可显著提升 AI coding 的可执行性,
但仍不能诚实承诺"只靠入口即可 100% 自动完成任何产品上线"。
2. 当前已补 Quick Start、source-backed 合约消费索引、
正式 API/Schema 契约索引与 fail-closed sandbox 策略,
但仍不等于 signed public SDK、public sandbox 或
not independently verified for production 交付。
3. 涉及私钥、部署权限、生产域名、资金操作、
DAO/timelock/threshold 的动作,
必须保留人类确认与审批门禁。
7. 回答规则
7.1 总览
官方 Bootstrap Prompt 定义了标准化的回答规则,用于确保 Agent
的响应是准确、诚实且边界清晰的。
7.2 官方回答规则原文
Answering rules:
- First answer what the retrieved content currently supports
- Then state status labels
- Then state boundaries and non-proven claims
- If needed, cite module exports, chunk files, or authoritative
module pages
Do not claim:
- full mainnet readiness
- guaranteed zero-human launch
- full autonomous treasury/governance execution
- capabilities that are only stubbed, planned, or locally gated
7.3 三步回答法
Agent 在任何回答中都必须遵循三步结构:
第一步:陈述当前检索内容支持什么
"根据白皮书系统的 contract.html,MSG Chain 的 CredWasm 引擎支持:
- StoreCode(上传 WASM 字节码)
- Instantiate(实例化合约)
- Execute(执行合约方法)
- Query(查询合约状态)
- Migrate(迁移合约代码)
这些操作的 API 端点定义在 rpc.html 中。"
第二步:陈述状态标签
状态标签说明:
- contract.html: implemented(已实现)
- rpc.html: implemented(已实现)
- registry.html: implemented(已实现)
- keplr.html: partial(部分实现)
- explorer.html: partial(部分实现)
- ai_agent.html: partial(部分实现)
- ai_task_l2.html: partial(部分实现,标为规划态)
第三步:陈述边界和非经证实的声称
边界声明:
- 合约运行时主线已实现,但 AI 辅助生成的代码仍需
结合业务规则、人类审核与真实部署账户完成落地
- 当前模板是 starter pack,不等于官方业务合约全集
- 缺少从链实现自动导出的正式 schema 契约
- 生产部署仍需真实权限与验收
7.4 不允许声称的内容
Agent 在任何情况下都不得声称以下内容:
7.4.1 完整主网就绪(full mainnet readiness)
❌ "MSG Chain 已完全主网就绪"
✅ "MSG Chain 的核心共识(Round-Robin + DAR)、经济模型和智能合约引擎
已实现,但涉及的部分能力(如 AI Task L2、public Explorer)
仍处于部分实现或规划阶段。"
7.4.2 保证零人类启动(guaranteed zero-human launch)
❌ "AI 可以全自动完成所有部署"
✅ "AI 可以辅助生成代码、测试、部署计划和证据清单,
但部署到生产网络需要人类审批以下操作:
- 签名交易
- 确认网络端点
- 验证 gas 设置
- 确认合约参数"
7.4.3 完全自治的金库/治理执行(full autonomous treasury/governance execution)
❌ "Agent 可以自动执行金库资金转移"
✅ "金库执行(foundation.html)涉及 DAO 治理和 DAR 双约束。
当前的治理执行流程为:
- proposal → vote → timelock → execute
所有涉及金库资金的操作都需要人类审批。
Agent 可以辅助生成提案和交易,但最终签名和广播需要人类操作。"
7.4.4 仅 stub、已规划或本地区门禁的能力
❌ "AI Task L2 未独立核验上线状态可以执行任务"
✅ "AI Task L2(ai_task_l2.html)当前状态为 partial(部分实现)。
根据白皮书系统,现已有可复用底座(agent API surface),
但完整任务闭环仍在规划中(标为规划态)。"
7.5 引用格式
当需要引用模块导出、分块文件或权威模块页面时,使用以下格式:
引用模块 HTML 页面
根据 https://msgchain.org/whitepaper/modules/contract.html:
[具体内容引用]
引用模块导出 JSON
根据 https://msgchain.org/whitepaper/module_exports/contract.json:
[具体数据引用]
引用分块文件
根据 https://msgchain.org/whitepaper/module_chunks/contract__chunk_01.json:
[片段引用]
引用 API 规范
根据 https://msgchain.org/whitepaper/api_specs/rpc_methods.json:
[方法定义引用]
引用配方
根据 https://msgchain.org/whitepaper/recipes/contract_minimal.json:
[工作流步骤引用]
7.6 主题特定回答指引
根据 retrieval_hints.json,不同主题有不同的回答指引:
经济主题(economics)
- 优先引用 economy.html、emission.html、consensus.html 的 evidence 章节
- 涉及双池结算、economic seconds、Gas 分账时使用原始 JSON 数据
治理主题(treasury_governance)
- 优先引用 foundation.html、dao.html、registry.html 的证据
- 明确区分 proposal/vote/timelock/execute 的当前实现范围
共识主题(consensus_validator)
- 优先引用 consensus.html、quantum.html、slashing.html
- DAR 四维评分、104/96 人数滞回、连续出块零容忍是核心
AI Agent 主题(ai_agent_runtime)
- 优先引用 ai_agent.html、ai_control_plane.html、ai_task_l2.html
- 当前状态为 partial,需要明确区分真实可用、部分实现与 Stub
- Agent API 能力成熟度不均匀
查询主题(explorer_data_access)
- 优先引用 explorer.html、rpc.html、indexer_data_plane.html
- 区分本地子门禁与 live/public 部署
合约开发主题(contract_development)
- 优先引用 contract.html、rpc.html、registry.html
- 使用 recipes/contract_minimal.json 作为工作流参考
dApp 集成主题(dapp_integration)
- 优先引用 keplr.html、rpc.html、explorer.html
- 使用 recipes/dapp_minimal.json 和 chain_config 包
7.7 证据意识和谨慎性
Agent 在处理证据时必须遵循以下原则:
1. 证据优先: 总是优先引用有 evidence_refs 和
boundary_clauses 的模块或分块。
2. 区分证明层级:
- 权威叙事(modules/*.html)— 最可信
- 机器导出(module_exports/*.json)— 衍生层
- 分块检索(module_chunks/*.json)— RAG 优化层
- API 规范(api_specs/*)— 编码指导层
3. 状态标签不可升级:
- implemented 不等于 not independently verified for production
- partial 不等于 implemented
- planned 不等于 partial
- local-only closeout 不等于 mainnet ready
4. 多重验证: 对于关键声明,应从多个来源交叉验证。
8. 集成指南
8.1 Bootstrap Prompt 与能力表面的映射
以下表格展示了 Bootstrap Prompt 中定义的文件如何映射到
MSG Chain 白皮书系统的 16 项开发者能力表面:
| Bootstrap 文件 | 对应能力表面 | 机器就绪状态 |
|---|---|---|
| agent_entry.json | —(全局入口) | — |
| whitepaper_manifest.json | —(全局清单) | — |
| developer_entry.json | —(开发者入口) | — |
| retrieval_hints.json | —(QA 路由) | — |
| developer_capability_matrix.json | 所有 16 项表面 | 综合矩阵 |
| api_specs/index.json | 多项 | — |
| recipes/contract_minimal.json | contract_runtime | assisted_codegen |
| recipes/dapp_minimal.json | wallet_frontend | guarded_integration |
| contract_templates/index.json | contract_template_pack | starter_ready |
| examples/index.json | dapp_starter_pack | starter_ready |
| release_pack/index.json | —(部署) | — |
| e2e_fixtures/index.json | —(验证) | — |
| execution_pack/index.json | —(执行) | — |
8.2 16 项开发者能力表面速查
来自 developer_capability_matrix.json:
| # | surface_id | machine_readiness | codegen | write_path | prod |
|---|---|---|---|---|---|
| 1 | contract_runtime | assisted_codegen | ✅ | ✅ | ✅ |
| 2 | core_contract_reference_pack | source_backed_reference | ✅ | ❌ | ❌ |
| 3 | registry_resolution | production_reference | ✅ | ❌ | ✅ |
| 4 | rpc_gateway | assisted_codegen | ✅ | ✅ | ✅ |
| 5 | formal_api_schema_pack | source_backed_reference | ✅ | ❌ | ❌ |
| 6 | wallet_frontend | guarded_integration | ✅ | ✅ | ❌ |
| 7 | explorer_receipts | read_only_assist | ✅ | ❌ | ❌ |
| 8 | agent_query_and_guarded_write | guarded_write | ❌ | ❌ | ❌ |
| 9 | sdk_surface | local_candidate | ❌ | ❌ | ❌ |
| 10 | chain_config_pack | starter_ready | ✅ | ❌ | ✅ |
| 11 | public_sandbox_strategy | fail_closed_reference | ✅ | ❌ | ❌ |
| 12 | contract_template_pack | starter_ready | ✅ | ❌ | ❌ |
| 13 | dapp_starter_pack | starter_ready | ✅ | ✅ | ❌ |
| 14 | contract_reference_pack | source_backed_reference | ✅ | ❌ | ❌ |
| 15 | agent_coding_assist | assisted_codegen | ✅ | ✅ | ✅ |
| 16 | governance_treasury_reference | source_backed_reference | ✅ | ❌ | ❌ |
8.3 8 个检索主题速查
来自 retrieval_hints.json:
| # | topic_id | 标题 | 状态 |
|---|---|---|---|
| 1 | economics | 经济模型与发行结算 | implemented |
| 2 | treasury_governance | 基金会金库与治理执行 | implemented |
| 3 | consensus_validator | 共识、DAR 与验证者资格 | implemented |
| 4 | ai_agent_runtime | AI Agent、控制面与任务闭环 | partial |
| 5 | explorer_data_access | Explorer、查询面与数据检索 | partial |
| 6 | contract_development | 智能合约开发与部署闭环 | implemented |
| 7 | dapp_integration | dApp 前端接入与钱包集成 | partial |
| 8 | security_quantum | 抗量子安全与密钥生命周期 | implemented |
8.4 文件路径快速参考
| 文件 | 相对路径 | 公开 URL |
|---|---|---|
| Agent 入口 | agent_entry.json | https://msgchain.org/whitepaper/agent_entry.json |
| 白皮书清单 | whitepaper_manifest.json | https://msgchain.org/whitepaper/whitepaper_manifest.json |
| 开发者入口 | developer_entry.json | https://msgchain.org/whitepaper/developer_entry.json |
| 检索提示 | retrieval_hints.json | https://msgchain.org/whitepaper/retrieval_hints.json |
| 能力矩阵 | developer_capability_matrix.json | https://msgchain.org/whitepaper/developer_capability_matrix.json |
| 产品交付入口 | product_delivery_entry.json | https://msgchain.org/whitepaper/product_delivery_entry.json |
| 知识网络 JSON | knowledge_network.json | https://msgchain.org/whitepaper/knowledge_network.json |
| 模块审计报告 | module_audit_report.json | https://msgchain.org/whitepaper/module_audit_report.json |
| 模块导出索引 | module_exports/index.json | https://msgchain.org/whitepaper/module_exports/index.json |
| 模块导出(按组) | module_exports/by_group.json | https://msgchain.org/whitepaper/module_exports/by_group.json |
| 模块导出(按状态) | module_exports/by_status.json | https://msgchain.org/whitepaper/module_exports/by_status.json |
| 分块索引 | module_chunks/index.json | https://msgchain.org/whitepaper/module_chunks/index.json |
| API 规范索引 | api_specs/index.json | https://msgchain.org/whitepaper/api_specs/index.json |
| 正式合约 | api_specs/formal_contracts.json | https://msgchain.org/whitepaper/api_specs/formal_contracts.json |
| RPC 方法 | api_specs/rpc_methods.json | https://msgchain.org/whitepaper/api_specs/rpc_methods.json |
| 错误码 | api_specs/error_codes.json | https://msgchain.org/whitepaper/api_specs/error_codes.json |
| 公共查询 OpenAPI | api_specs/openapi/public_query.yaml | https://msgchain.org/whitepaper/api_specs/openapi/public_query.yaml |
| 合约交互 OpenAPI | api_specs/openapi/contract_surface.yaml | https://msgchain.org/whitepaper/api_specs/openapi/contract_surface.yaml |
| Agent 接口 OpenAPI | api_specs/openapi/agent_surface.yaml | https://msgchain.org/whitepaper/api_specs/openapi/agent_surface.yaml |
| 配方索引 | recipes/index.json | https://msgchain.org/whitepaper/recipes/index.json |
| 最小合约配方 | recipes/contract_minimal.json | https://msgchain.org/whitepaper/recipes/contract_minimal.json |
| 最小 dApp 配方 | recipes/dapp_minimal.json | https://msgchain.org/whitepaper/recipes/dapp_minimal.json |
| 链配置索引 | chain_config/index.json | https://msgchain.org/whitepaper/chain_config/index.json |
| 网络预设 | chain_config/network_presets.json | https://msgchain.org/whitepaper/chain_config/network_presets.json |
| 沙箱策略 | chain_config/developer_sandbox_strategy.json | https://msgchain.org/whitepaper/chain_config/developer_sandbox_strategy.json |
| 合约参考索引 | contract_reference/index.json | https://msgchain.org/whitepaper/contract_reference/index.json |
| 核心合约 | contract_reference/core_contracts.json | https://msgchain.org/whitepaper/contract_reference/core_contracts.json |
| 合约模板索引 | contract_templates/index.json | https://msgchain.org/whitepaper/contract_templates/index.json |
| 示例索引 | examples/index.json | https://msgchain.org/whitepaper/examples/index.json |
| 发布包索引 | release_pack/index.json | https://msgchain.org/whitepaper/release_pack/index.json |
| E2E 固定数据索引 | e2e_fixtures/index.json | https://msgchain.org/whitepaper/e2e_fixtures/index.json |
| 执行包索引 | execution_pack/index.json | https://msgchain.org/whitepaper/execution_pack/index.json |
| 快速开始索引 | quickstart/index.json | https://msgchain.org/whitepaper/quickstart/index.json |
| 合约和 dApp 快速开始 | quickstart/contract_and_dapp_minimal.json | https://msgchain.org/whitepaper/quickstart/contract_and_dapp_minimal.json |
| 集成示例 README | integration_examples/README.md | https://msgchain.org/whitepaper/integration_examples/README.md |
| Telegram 机器人流程 | integration_examples/telegram_bot_crawl_flow.json | https://msgchain.org/whitepaper/integration_examples/telegram_bot_crawl_flow.json |
| RAG 摄取流程 | integration_examples/rag_ingest_flow.json | https://msgchain.org/whitepaper/integration_examples/rag_ingest_flow.json |
| FAQ 路由模板 | integration_examples/faq_router_prompt_template.md | https://msgchain.org/whitepaper/integration_examples/faq_router_prompt_template.md |
| Bootstrap Prompt | integration_examples/external_ai_agent_bootstrap_prompt.md | https://msgchain.org/whitepaper/integration_examples/external_ai_agent_bootstrap_prompt.md |
8.5 模块文件快速参考
| 模块 | 文件名 | 状态 | 分组 |
|---|---|---|---|
| 智能合约引擎 | contract.html | implemented | control |
| RPC 与 API | rpc.html | implemented | runtime |
| 创世注册中心 | registry.html | implemented | control |
| 交易池管理 | txpool.html | implemented | runtime |
| 核心钱包管理 | wallet.html | implemented | runtime |
| 创世初始化 | genesis.html | implemented | control |
| Block 0/1 拓扑 | block01_contract_topology.html | implemented | control |
| DAO 治理 | dao.html | implemented | control |
| 基金会金库 | foundation.html | implemented | control |
| 共识调度 | consensus.html | implemented | control |
| 经济模型 | economy.html | implemented | funds |
| 铸造与结算 | emission.html | implemented | funds |
| 处罚与审计 | slashing.html | implemented | funds |
| 抗量子安全 | quantum.html | implemented | runtime |
| 区块结构 | blockchain.html | implemented | runtime |
| 证据索引 | evidence_index.html | implemented | control |
| 执行摘要 | executive_summary.html | implemented | control |
| 概览 | overview.html | implemented | control |
| 证明链 | proof_chain.html | implemented | control |
| 证明图 | proof_map.html | implemented | control |
| 信任裁决 | trust_verdict.html | implemented | control |
| 知识网络 | knowledge_network.html | implemented | control |
| 知识图谱 | knowledge_graph_dynamic.html | implemented | control |
| 钱包集成(Keplr) | keplr.html | partial | ecosystem |
| 区块浏览器 | explorer.html | partial | ecosystem |
| Agent API | agent_api_surface.html | partial | developer |
| SDK 开发表面 | sdk_dev_surface.html | partial | developer |
| Indexer 数据平面 | indexer_data_plane.html | partial | developer |
| L1 原子模块化 | l1_atomic_modular.html | partial | developer |
| AI Agent | ai_agent.html | partial | ai |
| AI 控制平面 | ai_control_plane.html | partial | ai |
| AI 智能钱包 | ai_wallet.html | partial | ai |
| AI Task L2 | ai_task_l2.html | partial | ai |
| Web3 协议 | web3_contract_first_protocols.html | partial | ecosystem |
| 生态平台扩展 | ecosystem_platform_extensibility.html | partial | ecosystem |
| L4/L5 验收矩阵 | l4_l5_acceptance_matrix.html | partial | ecosystem |
| 世界计算机 | world_computer.html | partial | ecosystem |
| 审查剧本 | review_playbook.html | implemented | control |
| 安全性概览 | security_overview.html | implemented | runtime |
8.6 集成示例文件
| 文件 | 用途 |
|---|---|
| integration_examples/README.md | 集成示例总览 |
| integration_examples/telegram_bot_crawl_flow.json | Telegram 机器人爬取流程 |
| integration_examples/rag_ingest_flow.json | RAG 摄取流程 |
| integration_examples/faq_router_prompt_template.md | FAQ 路由提示词模板 |
| integration_examples/external_ai_agent_bootstrap_prompt.json | Bootstrap Prompt JSON 版 |
| integration_examples/external_ai_agent_bootstrap_prompt.md | Bootstrap Prompt Markdown 版 |
附录 A:术语表
| 术语 | 英文 | 定义 |
|---|---|---|
| 引导提示词 | Bootstrap Prompt | 外部 AI Agent 接入 MSG Chain 的标准系统提示词 |
| 白皮书机器层 | Whitepaper Machine Layer | 白皮书系统中面向机器消费的协议层 |
| 权威叙事层 | Authoritative Narrative Layer | modules/*.html — 最可信的模块描述 |
| 机器衍生层 | Machine-Friendly Derivative Layer | module_exports/.json 和 module_chunks/.json |
| 能力表面 | Capability Surface | 开发者的公开能力接口 |
| 机器就绪状态 | Machine Readiness | 能力的自动化成熟度级别 |
| 辅助代码生成 | Assisted Codegen | AI 可辅助生成代码但需人类参与 |
| 受保护写路径 | Guarded Write | 写操作受审批门禁保护 |
| 来源支持参考 | Source-Backed Reference | 基于真实源码的参考层 |
| 本地候选 | Local Candidate | 仅本地可用的预发布版本 |
| 起始就绪 | Starter Ready | 适合作为起始模板 |
| 失败关闭参考 | Fail-Closed Reference | 默认不可用,需显式开启 |
| 规范键 | Canonical Key | 注册中心中的标准合约标识键 |
| 创世注册中心 | Genesis Registry | 部署于创世块的标准合约地址注册表 |
| 双池结算 | Dual-Pool Settlement | 候选池和验证者池的资金分配模型 |
| 经济秒 | Economic Second | 铸造和奖励的时间单位 |
| 证明链 | Proof Chain | 从原始数据到结论的完整证据路径 |
| 分块 | Chunk | 模块内容的机器可读片段 |
| 配方 | Recipe | AI 辅助交付的工作流蓝图 |
附录 B:边界声明模板
Agent 在回答涉及以下主题时,应使用对应的边界声明:
经济主题边界
根据 economy.html 和 emission.html:
- 双池结算和经济时间基准已实现
- 铸造/注册中心/共识不混线
- 具体池余额和奖励结算以链上 query 返回为准
- 当前证据状态为 pending reward / emission state 真值锁定
治理主题边界
根据 dao.html 和 foundation.html:
- DAO 治理 v1 已实现:proposal → vote → timelock → execute
- 金库执行受 DAO + DAR 双约束
- 涉及多签、阈值、时间锁的操作需人类审批
- 治理参数可通过 DAO 提案修改
Explorer 主题边界
根据 explorer.html:
- 本地 Explorer 子门禁与 hash search fail-closed 已补强
- 合约 source/interface/wasm metadata 可查询
- live/public Explorer 仍待部署
- 索引与分页的生产 SLO/保留策略仍需独立交付
AI Agent 主题边界
根据 ai_agent.html 和 ai_control_plane.html:
- Agent API 表面真实存在,但能力成熟度不均匀
- 必须明确区分:真实可用、部分实现与 Stub
- 写路径受保护,自动执行仍需审批、风控、密钥与权限系统
- ai_task_l2.html 当前标为规划态
钱包集成主题边界
根据 keplr.html:
- chainId: msg-chain-1 配置已存在
- Keplr suggestChain 支持就绪
- 当前是兼容路径与配置底座
- 不应表述成官方钱包生态已全量上线
SDK 主题边界
根据 sdk_dev_surface.html:
- @msg-chain/sdk 版本 0.1.0-alpha
- exports: wallet / client / tx / contract / indexer / utils
- 本地 release gate 已存在
- 但尚未形成 signed/public SDK release
- 不能被 AI 误当成稳定公共客户端
附录 C:禁止声称清单
Agent 必须避免以下声称:
- "主网已完全就绪" — 取决于具体模块状态
- "AI 可以零人类参与地完成所有部署" — 规则 8 要求人类审批
- "金库可以完全自动执行" — 需 DAO + DAR 双约束 + 人类审批
- "Agent API 的写路径已完全可用" — 部分仍为 stub
- "Explorer 已全面上线" — live/public 仍待部署
- "SDK 已稳定发布" — 当前为 0.1.0-alpha
- "AI Task L2 可以执行自治任务" — 当前标为规划态
- "public sandbox 可直接使用" — 当前选择 fail-closed 策略
本文档基于 https://msgchain.org/whitepaper/ 的真实内容编写。
所有引用文件均可在上述域名下直接访问。
本文档内容基于 MSGChain 代码库真实状态编写,非 AI 自动生成。
主网状态: No-Go | 白皮书: https://msgchain.org/whitepaper/
