# symbio - Doramagic AI Context Pack

> 定位：安装前体验与判断资产。它帮助宿主 AI 有一个好的开始，但不代表已经安装、执行或验证目标项目。

## 充分原则

- **充分原则，不是压缩原则**：AI Context Pack 应该充分到让宿主 AI 在开工前理解项目价值、能力边界、使用入口、风险和证据来源；它可以分层组织，但不以最短摘要为目标。
- **压缩策略**：只压缩噪声和重复内容，不压缩会影响判断和开工质量的上下文。

## 给宿主 AI 的使用方式

你正在读取 Doramagic 为 symbio 编译的 AI Context Pack。请把它当作开工前上下文：帮助用户理解适合谁、能做什么、如何开始、哪些必须安装后验证、风险在哪里。不要声称你已经安装、运行或执行了目标项目。

## Claim 消费规则

- **事实来源**：Repo Evidence + Claim/Evidence Graph；Human Wiki 只提供显著性、术语和叙事结构。
- **事实最低状态**：`supported`
- `supported`：可以作为项目事实使用，但回答中必须引用 claim_id 和证据路径。
- `weak`：只能作为低置信度线索，必须要求用户继续核实。
- `inferred`：只能用于风险提示或待确认问题，不能包装成项目事实。
- `unverified`：不得作为事实使用，应明确说证据不足。
- `contradicted`：必须展示冲突来源，不得替用户强行选择一个版本。

## 它最适合谁

- **AI 研究者或研究型 Agent 构建者**：README 明确围绕研究、实验或论文工作流展开。 证据：`README.md` Claim：`clm_0002` supported 0.86
- **正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**：README 或插件配置提到多个宿主 AI。 证据：`README.md` Claim：`clm_0003` supported 0.86

## 它能做什么

- **命令行启动或安装流程**（需要安装后验证）：项目文档中存在可执行命令，真实使用需要在本地或宿主环境中运行这些命令。 证据：`README.md` Claim：`clm_0001` supported 0.86

## 怎么开始

- `pip install symbio` 证据：`README.md` Claim：`clm_0004` supported 0.86
- `git clone https://github.com/854875058/Symbio.git` 证据：`README.md` Claim：`clm_0005` supported 0.86
- `pip install -e ".[dev,server,ml,otel]"` 证据：`README.md` Claim：`clm_0006` supported 0.86
- `pip install -e ".[dev]"` 证据：`README.md` Claim：`clm_0006` supported 0.86, `clm_0007` supported 0.86

## 继续前判断卡

- **当前建议**：先做角色匹配试用
- **为什么**：这个项目更像角色库，核心风险是选错角色或把角色文案当执行能力；先用 Prompt Preview 试角色匹配，再决定是否沙盒导入。

### 30 秒判断

- **现在怎么做**：先做角色匹配试用
- **最小安全下一步**：先用 Prompt Preview 试角色匹配；满意后再隔离导入
- **先别相信**：角色质量和任务匹配不能直接相信。
- **继续会触碰**：角色选择偏差、命令执行、本地环境或项目文件

### 现在可以相信

- **适合人群线索：AI 研究者或研究型 Agent 构建者**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`README.md` Claim：`clm_0002` supported 0.86
- **适合人群线索：正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`README.md` Claim：`clm_0003` supported 0.86
- **能力存在：命令行启动或安装流程**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`README.md` Claim：`clm_0001` supported 0.86
- **存在 Quick Start / 安装命令线索**（supported）：可以相信项目文档出现过启动或安装入口；不要因此直接在主力环境运行。 证据：`README.md` Claim：`clm_0004` supported 0.86

### 现在还不能相信

- **角色质量和任务匹配不能直接相信。**（unverified）：角色库证明有很多角色，不证明每个角色都适合你的具体任务，也不证明角色能产生高质量结果。
- **不能把角色文案当成真实执行能力。**（unverified）：安装前只能判断角色描述和任务画像是否匹配，不能证明它能在宿主 AI 里完成任务。
- **真实输出质量不能在安装前相信。**（unverified）：Prompt Preview 只能展示引导方式，不能证明真实项目中的结果质量。
- **宿主 AI 版本兼容性不能在安装前相信。**（unverified）：Claude、Cursor、Codex、Gemini 等宿主加载规则和版本差异必须在真实环境验证。
- **不会污染现有宿主 AI 行为，不能直接相信。**（inferred）：Skill、plugin、AGENTS/CLAUDE/GEMINI 指令可能改变宿主 AI 的默认行为。
- **可安全回滚不能默认相信。**（unverified）：除非项目明确提供卸载和恢复说明，否则必须先在隔离环境验证。
- **真实安装后是否与用户当前宿主 AI 版本兼容？**（unverified）：兼容性只能通过实际宿主环境验证。
- **项目输出质量是否满足用户具体任务？**（unverified）：安装前预览只能展示流程和边界，不能替代真实评测。

### 继续会触碰什么

- **角色选择偏差**：用户对任务应该由哪个专家角色处理的判断。 原因：选错角色会让 AI 从错误专业视角回答，浪费时间或误导决策。
- **命令执行**：包管理器、网络下载、本地插件目录、项目配置或用户主目录。 原因：运行第一条命令就可能产生环境改动；必须先判断是否值得跑。 证据：`README.md`
- **本地环境或项目文件**：安装结果、插件缓存、项目配置或本地依赖目录。 原因：安装前无法证明写入范围和回滚方式，需要隔离验证。 证据：`README.md`
- **宿主 AI 上下文**：AI Context Pack、Prompt Preview、Skill 路由、风险规则和项目事实。 原因：导入上下文会影响宿主 AI 后续判断，必须避免把未验证项包装成事实。

### 最小安全下一步

- **先跑 Prompt Preview**：先用交互式试用验证任务画像和角色匹配，不要先导入整套角色库。（适用：任何项目都适用，尤其是输出质量未知时。）
- **只在隔离目录或测试账号试装**：避免安装命令污染主力宿主 AI、真实项目或用户主目录。（适用：存在命令执行、插件配置或本地写入线索时。）
- **安装后只验证一个最小任务**：先验证加载、兼容、输出质量和回滚，再决定是否深用。（适用：准备从试用进入真实工作流时。）

### 退出方式

- **保留安装前状态**：记录原始宿主配置和项目状态，后续才能判断是否可恢复。
- **保留原始角色选择记录**：如果输出偏题，可以回到任务画像阶段重新选择角色，而不是继续沿着错误角色推进。
- **记录安装命令和写入路径**：没有明确卸载说明时，至少要知道哪些目录或配置需要手动清理。
- **如果没有回滚路径，不进入主力环境**：不可回滚是继续前阻断项，不应靠信任或运气继续。

## 哪些只能预览

- 解释项目适合谁和能做什么
- 基于项目文档演示典型对话流程
- 帮助用户判断是否值得安装或继续研究

## 哪些必须安装后验证

- 真实安装 Skill、插件或 CLI
- 执行脚本、修改本地文件或访问外部服务
- 验证真实输出质量、性能和兼容性

## 边界与风险判断卡

- **把安装前预览误认为真实运行**：用户可能高估项目已经完成的配置、权限和兼容性验证。 处理方式：明确区分 prompt_preview_can_do 与 runtime_required。 Claim：`clm_0008` inferred 0.45
- **命令执行会修改本地环境**：安装命令可能写入用户主目录、宿主插件目录或项目配置。 处理方式：先在隔离环境或测试账号中运行。 证据：`README.md` Claim：`clm_0009` supported 0.86
- **待确认**：真实安装后是否与用户当前宿主 AI 版本兼容？。原因：兼容性只能通过实际宿主环境验证。
- **待确认**：项目输出质量是否满足用户具体任务？。原因：安装前预览只能展示流程和边界，不能替代真实评测。
- **待确认**：安装命令是否需要网络、权限或全局写入？。原因：这影响企业环境和个人环境的安装风险。

## 开工前工作上下文

### 加载顺序

- 先读取 how_to_use.host_ai_instruction，建立安装前判断资产的边界。
- 读取 claim_graph_summary，确认事实来自 Claim/Evidence Graph，而不是 Human Wiki 叙事。
- 再读取 intended_users、capabilities 和 quick_start_candidates，判断用户是否匹配。
- 需要执行具体任务时，优先查 role_skill_index，再查 evidence_index。
- 遇到真实安装、文件修改、网络访问、性能或兼容性问题时，转入 risk_card 和 boundaries.runtime_required。

### 任务路由

- **命令行启动或安装流程**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`README.md` Claim：`clm_0001` supported 0.86

### 上下文规模

- 文件总数：169
- 重要文件覆盖：40/169
- 证据索引条目：55
- 角色 / Skill 条目：22

### 证据不足时的处理

- **missing_evidence**：说明证据不足，要求用户提供目标文件、README 段落或安装后验证记录；不要补全事实。
- **out_of_scope_request**：说明该任务超出当前 AI Context Pack 证据范围，并建议用户先查看 Human Manual 或真实安装后验证。
- **runtime_request**：给出安装前检查清单和命令来源，但不要替用户执行命令或声称已执行。
- **source_conflict**：同时展示冲突来源，标记为待核实，不要强行选择一个版本。

## Prompt Recipes

### 适配判断

- 目标：判断这个项目是否适合用户当前任务。
- 预期输出：适配结论、关键理由、证据引用、安装前可预览内容、必须安装后验证内容、下一步建议。

```text
请基于 symbio 的 AI Context Pack，先问我 3 个必要问题，然后判断它是否适合我的任务。回答必须包含：适合谁、能做什么、不能做什么、是否值得安装、证据来自哪里。所有项目事实必须引用 evidence_refs、source_paths 或 claim_id。
```

### 安装前体验

- 目标：让用户在安装前感受核心工作流，同时避免把预览包装成真实能力或营销承诺。
- 预期输出：一段带边界标签的体验剧本、安装后验证清单和谨慎建议；不含真实运行承诺或强营销表述。

```text
请把 symbio 当作安装前体验资产，而不是已安装工具或真实运行环境。

请严格输出四段：
1. 先问我 3 个必要问题。
2. 给出一段“体验剧本”：用 [安装前可预览]、[必须安装后验证]、[证据不足] 三种标签展示它可能如何引导工作流。
3. 给出安装后验证清单：列出哪些能力只有真实安装、真实宿主加载、真实项目运行后才能确认。
4. 给出谨慎建议：只能说“值得继续研究/试装”“先补充信息后再判断”或“不建议继续”，不得替项目背书。

硬性边界：
- 不要声称已经安装、运行、执行测试、修改文件或产生真实结果。
- 不要写“自动适配”“确保通过”“完美适配”“强烈建议安装”等承诺性表达。
- 如果描述安装后的工作方式，必须使用“如果安装成功且宿主正确加载 Skill，它可能会……”这种条件句。
- 体验剧本只能写成“示例台词/假设流程”：使用“可能会询问/可能会建议/可能会展示”，不要写“已写入、已生成、已通过、正在运行、正在生成”。
- Prompt Preview 不负责给安装命令；如用户准备试装，只能提示先阅读 Quick Start 和 Risk Card，并在隔离环境验证。
- 所有项目事实必须来自 supported claim、evidence_refs 或 source_paths；inferred/unverified 只能作风险或待确认项。

```

### 角色 / Skill 选择

- 目标：从项目里的角色或 Skill 中挑选最匹配的资产。
- 预期输出：候选角色或 Skill 列表，每项包含适用场景、证据路径、风险边界和是否需要安装后验证。

```text
请读取 role_skill_index，根据我的目标任务推荐 3-5 个最相关的角色或 Skill。每个推荐都要说明适用场景、可能输出、风险边界和 evidence_refs。
```

### 风险预检

- 目标：安装或引入前识别环境、权限、规则冲突和质量风险。
- 预期输出：环境、权限、依赖、许可、宿主冲突、质量风险和未知项的检查清单。

```text
请基于 risk_card、boundaries 和 quick_start_candidates，给我一份安装前风险预检清单。不要替我执行命令，只说明我应该检查什么、为什么检查、失败会有什么影响。
```

### 宿主 AI 开工指令

- 目标：把项目上下文转成一次对话开始前的宿主 AI 指令。
- 预期输出：一段边界明确、证据引用明确、适合复制给宿主 AI 的开工前指令。

```text
请基于 symbio 的 AI Context Pack，生成一段我可以粘贴给宿主 AI 的开工前指令。这段指令必须遵守 not_runtime=true，不能声称项目已经安装、运行或产生真实结果。
```

## 角色 / Skill 索引

- 共索引 22 个角色 / Skill / 项目文档条目。

- **SYMBIO**（project_doc）：把 Agent 能力拆成 可观测、可审批、可恢复、可验证 的基础设施模块 —— 调度、记忆、审批、安全、成本、沙箱、外部工具接管和数据飞轮，都在同一个运行时里协作。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`README.md`
- **Symbio 功能实现账本**（project_doc）：对照 README、README zh、模块设计白皮书和公众号文章承诺维护。 x 表示已有可运行实现并有测试或人工验证证据； ~ 表示已有框架但还没形成完整产品闭环； 表示仍待实现。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/feature-checklist.md`
- **Symbio Feature List**（project_doc）：AI Infra 级别的多 Agent 协同框架，聚焦解耦、高可用和可扩展性。 从"多 Agent 调度工具"升维为"具备自我进化能力、能在复杂/隔离环境中稳定运行的 AI 基础设施"。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/features.md`
- **贡献指南**（project_doc）：1. 在 Issues https://github.com/854875058/Symbio/issues 页面创建新 Issue 2. 使用 Bug Report 模板 3. 提供详细的复现步骤、期望行为、实际行为 4. 附上相关日志和截图 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`CONTRIBUTING.md`
- **SYMBIO**（project_doc）：Symbio 不是一个单纯的 LLM 外壳，而是一套面向真实工程任务的 Agent 基础设施：调度、记忆、审批、沙箱、观测、外部工具接管和数据飞轮都在同一个运行时里协作。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`README_zh.md`
- **Agent Workflow Policy**（project_doc）：Symbio adopts several engineering practices from the Superpowers skill set as runtime policy, not just operator advice. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/agent-workflow-policy.md`
- **Symbio 架构设计**（project_doc）：Symbio 采用分层架构，核心思想是"调度中枢 + 多 Agent 协作"。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/architecture.md`
- **External Agent Control**（project_doc）：Status: implemented as of 2026-06-09. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/external-agent-control.md`
- **Symbio 终极模块全景设计白皮书**（project_doc）：方案先行，设计升维。不敲一行代码，把每一个模块的底层设计哲学、超前思维、物理边界和技术壁垒推演到无懈可击。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/module-design-whitepaper.md`
- **Symbio 模块详细规划**（project_doc）：python class Orchestrator: def init self, config: Config : self.router = ModelRouter config self.evaluator = ComplexityEvaluator self.agent registry = AgentRegistry self.task queue = TaskQueue 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/modules.md`
- **PyPI Release Checklist**（project_doc）：This project is packaged with Hatchling and published with Twine. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/pypi-release.md`
- **Symbio 参考项目**（project_doc）：项目 链接 参考点 ------ ------ -------- Claude Code Harness github.com/anthropics/claude-code Agent 调度、工具执行、权限管理 LangGraph github.com/langchain-ai/langgraph 图调度、状态管理 AutoGen github.com/microsoft/autogen 多 Agent 协作模式 CrewAI github.com/joaomdmoura/crewai Agent 角色定义、任务委派 MetaGPT github.com/geekan/MetaGPT 多角色协作、SOP 驱动 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/references.md`
- **Symbio 开发路线图**（project_doc）：1.1 项目初始化 - 目录结构规划与 Pydantic 全局配置管理 - 基于 Loguru 的异步日志系统集成 - Typer CLI 入口框架搭建 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/roadmap.md`
- **Symbio 技术栈选型**（project_doc）：组件 选型 理由 ------ ------ ------ 语言 Python 3.10+ AI 生态成熟，长时运行异步支持完美 异步框架 asyncio + uvloop 替换原生 EventLoop，提供极致的高并发异步 I/O 性能 配置管理 pydantic-settings 类型安全，原生支持 .env 环境变量无缝加载 日志系统 loguru 配置极其简单，天生对异步友好，支持高效的轮转与格式化 CLI 框架 typer / click 生态极其成熟，构建交互式命令行工具的首选 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/tech-stack.md`
- **Symbio UI 设计方案**（project_doc）：方案先行，设计升维。UI 不是附属品，而是 Symbio 与用户交互的唯一窗口。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/ui-design.md`
- **DAG-First Orchestrator Implementation Plan**（project_doc）：DAG-First Orchestrator Implementation Plan 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/superpowers/plans/2026-06-03-dag-first-orchestrator.md`
- **DAG-First Orchestrator Design**（project_doc）：Symbio will move from an Orchestrator-owned execution flow to a DAG-first execution architecture. The existing Orchestrator becomes a thin ingress and control layer. The primary execution kernel becomes a DAG runtime that owns planning, scheduling, node state, retry, HITL suspension, recovery, observation-driven graph mutation, and final result reduction. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/superpowers/specs/2026-06-03-dag-first-orchestrator-design.md`
- **Changelog**（project_doc）：All notable changes to this project will be documented in this file. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`CHANGELOG.md`
- **行为准则**（project_doc）：为了营造一个开放、友好的环境，我们作为贡献者和维护者承诺：无论年龄、体型、残疾、种族、性别认同和表达、经验水平、国籍、外貌、种族、宗教或性取向如何，参与本项目的每个人都不会受到骚扰。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`CODE_OF_CONDUCT.md`
- **🧬 SYMBIO**（project_doc）：The Next-Gen AI Infrastructure for Multi-Agent Orchestration 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`README_en.md`
- **🧬 SYMBIO（共生）**（project_doc）：次世代 AI インフラストラクチャ · マルチエージェント協調フレームワーク 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`README_ja.md`
- **安全策略**（project_doc）：1. GitHub Security Advisory : 使用 GitHub 的私有漏洞报告功能 2. 邮件 : 发送至 security@symbio.dev （示例邮箱） 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`SECURITY.md`

## 证据索引

- 共索引 55 条证据。

- **SYMBIO**（documentation）：把 Agent 能力拆成 可观测、可审批、可恢复、可验证 的基础设施模块 —— 调度、记忆、审批、安全、成本、沙箱、外部工具接管和数据飞轮，都在同一个运行时里协作。 证据：`README.md`
- **Symbio 功能实现账本**（documentation）：对照 README、README zh、模块设计白皮书和公众号文章承诺维护。 x 表示已有可运行实现并有测试或人工验证证据； ~ 表示已有框架但还没形成完整产品闭环； 表示仍待实现。 证据：`docs/feature-checklist.md`
- **Symbio Feature List**（documentation）：AI Infra 级别的多 Agent 协同框架，聚焦解耦、高可用和可扩展性。 从"多 Agent 调度工具"升维为"具备自我进化能力、能在复杂/隔离环境中稳定运行的 AI 基础设施"。 证据：`docs/features.md`
- **贡献指南**（documentation）：1. 在 Issues https://github.com/854875058/Symbio/issues 页面创建新 Issue 2. 使用 Bug Report 模板 3. 提供详细的复现步骤、期望行为、实际行为 4. 附上相关日志和截图 证据：`CONTRIBUTING.md`
- **License**（source_file）：Copyright c 2026 Symbio Contributors 证据：`LICENSE`
- **SYMBIO**（documentation）：Symbio 不是一个单纯的 LLM 外壳，而是一套面向真实工程任务的 Agent 基础设施：调度、记忆、审批、沙箱、观测、外部工具接管和数据飞轮都在同一个运行时里协作。 证据：`README_zh.md`
- **Agent Workflow Policy**（documentation）：Symbio adopts several engineering practices from the Superpowers skill set as runtime policy, not just operator advice. 证据：`docs/agent-workflow-policy.md`
- **Symbio 架构设计**（documentation）：Symbio 采用分层架构，核心思想是"调度中枢 + 多 Agent 协作"。 证据：`docs/architecture.md`
- **External Agent Control**（documentation）：Status: implemented as of 2026-06-09. 证据：`docs/external-agent-control.md`
- **Symbio 终极模块全景设计白皮书**（documentation）：方案先行，设计升维。不敲一行代码，把每一个模块的底层设计哲学、超前思维、物理边界和技术壁垒推演到无懈可击。 证据：`docs/module-design-whitepaper.md`
- **Symbio 模块详细规划**（documentation）：python class Orchestrator: def init self, config: Config : self.router = ModelRouter config self.evaluator = ComplexityEvaluator self.agent registry = AgentRegistry self.task queue = TaskQueue 证据：`docs/modules.md`
- **PyPI Release Checklist**（documentation）：This project is packaged with Hatchling and published with Twine. 证据：`docs/pypi-release.md`
- **Symbio 参考项目**（documentation）：项目 链接 参考点 ------ ------ -------- Claude Code Harness github.com/anthropics/claude-code Agent 调度、工具执行、权限管理 LangGraph github.com/langchain-ai/langgraph 图调度、状态管理 AutoGen github.com/microsoft/autogen 多 Agent 协作模式 CrewAI github.com/joaomdmoura/crewai Agent 角色定义、任务委派 MetaGPT github.com/geekan/MetaGPT 多角色协作、SOP 驱动 证据：`docs/references.md`
- **Symbio 开发路线图**（documentation）：1.1 项目初始化 - 目录结构规划与 Pydantic 全局配置管理 - 基于 Loguru 的异步日志系统集成 - Typer CLI 入口框架搭建 证据：`docs/roadmap.md`
- **Symbio 技术栈选型**（documentation）：组件 选型 理由 ------ ------ ------ 语言 Python 3.10+ AI 生态成熟，长时运行异步支持完美 异步框架 asyncio + uvloop 替换原生 EventLoop，提供极致的高并发异步 I/O 性能 配置管理 pydantic-settings 类型安全，原生支持 .env 环境变量无缝加载 日志系统 loguru 配置极其简单，天生对异步友好，支持高效的轮转与格式化 CLI 框架 typer / click 生态极其成熟，构建交互式命令行工具的首选 证据：`docs/tech-stack.md`
- **Symbio UI 设计方案**（documentation）：方案先行，设计升维。UI 不是附属品，而是 Symbio 与用户交互的唯一窗口。 证据：`docs/ui-design.md`
- **DAG-First Orchestrator Implementation Plan**（documentation）：DAG-First Orchestrator Implementation Plan 证据：`docs/superpowers/plans/2026-06-03-dag-first-orchestrator.md`
- **DAG-First Orchestrator Design**（documentation）：Symbio will move from an Orchestrator-owned execution flow to a DAG-first execution architecture. The existing Orchestrator becomes a thin ingress and control layer. The primary execution kernel becomes a DAG runtime that owns planning, scheduling, node state, retry, HITL suspension, recovery, observation-driven graph mutation, and final result reduction. 证据：`docs/superpowers/specs/2026-06-03-dag-first-orchestrator-design.md`
- **Capabilities**（source_file）：CapabilityStatus = Literal "implemented", "partial", "missing" ⋮---- class CapabilityItem TypedDict ⋮---- id: str module: str claim: str status: CapabilityStatus evidence: list str docs: list str next step: str ⋮---- CAPABILITY ITEMS: tuple CapabilityItem, ... = ⋮---- def get capability report - dict ⋮---- counts = Counter item "status" for item in CAPABILITY ITEMS items = dict item for item in CAPABILITY ITEMS 证据：`src/symbio/capabilities.py`
- **Cli**（source_file）：app = typer.Typer console = Console ⋮---- def run coro ⋮---- async def with db fn ⋮---- db = Database DEFAULT DB PATH ⋮---- def clip value: Any, limit: int = 80 - str ⋮---- text = "" if value is None else str value .replace "\n", " " ⋮---- def now - str ⋮---- async def ensure session db: Database, session id: str, title: str - None ⋮---- def render tasks tasks: list dict - None ⋮---- table = Table title="Tasks" ⋮---- def render memories memories: list dict - None ⋮---- table = Table title="Memories" ⋮---- async def find model db: Database, model ref: str - Optional dict ⋮---- direct = await db.get model model ref ⋮---- project path = Path path ⋮---- config path = project path / "symbio.yaml… 证据：`src/symbio/cli.py`
- **决策关键词**（source_file）：logger = get logger "context pruner" ⋮---- class PruneStrategy str, Enum ⋮---- SEMANTIC = "semantic" KEYPOINT = "keypoint" TOOL OUTPUT = "tool output" DELTA = "delta" FULL = "full" ⋮---- class ImportanceLevel str, Enum ⋮---- CRITICAL = "critical" HIGH = "high" MEDIUM = "medium" LOW = "low" DISCARDABLE = "discardable" ⋮---- class MessageRole str, Enum ⋮---- SYSTEM = "system" USER = "user" ASSISTANT = "assistant" TOOL = "tool" ⋮---- class ContextMessage BaseModel ⋮---- message id: str = Field default factory=lambda: str uuid4 role: MessageRole content: str tool name: Optional str = None tool call id: Optional str = None token count: int = 0 importance: ImportanceLevel = ImportanceLevel.MEDIUM… 证据：`src/symbio/core/context_pruner.py`
- **---------------------------------------------------------------------------**（source_file）：logger = get logger "cost monitor" ⋮---- DEFAULT DB DIR = Path.home / ".symbio" / "data" DEFAULT DB PATH = DEFAULT DB DIR / "cost monitor.db" ⋮---- DOWNGRADE MAP: dict str, str = { ⋮---- TERMINAL MODELS = {"claude-3-5-haiku-20241022", "claude-3-haiku-20240307"} ⋮---- class UsageRecord BaseModel ⋮---- record id: str = "" task id: str agent name: str model: str input tokens: int = 0 output tokens: int = 0 timestamp: str = Field default factory=lambda: datetime.now timezone.utc .isoformat ⋮---- @property def total tokens self - int ⋮---- class AgentCost BaseModel ⋮---- """Agent 维度的成本汇总""" ⋮---- total input tokens: int = 0 total output tokens: int = 0 total tokens: int = 0 request count: int =… 证据：`src/symbio/core/cost_monitor.py`
- **CAS 更新：将节点结果写入全局状态，冲突时重试**（source_file）：logger = get logger "dag engine" ⋮---- NodeCallable = Callable dict str, Any , Coroutine Any, Any, "NodeObservation" ⋮---- class NodeStatus str, Enum ⋮---- PENDING = "pending" RUNNING = "running" SUCCESS = "success" FAILED = "failed" CANCELLED = "cancelled" ⋮---- class TopologyAction str, Enum ⋮---- ADD NODE = "add node" REMOVE NODE = "remove node" ADD EDGE = "add edge" REMOVE EDGE = "remove edge" ⋮---- class NodeObservation BaseModel ⋮---- node id: str output: Any = None expected: bool = True metadata: dict str, Any = Field default factory=dict ⋮---- class DAGNode BaseModel ⋮---- model config = {"arbitrary types allowed": True} ⋮---- node id: str = Field default factory=lambda: str uuid4 n… 证据：`src/symbio/core/dag_engine.py`
- **Dag Orchestrator**（source_file）：class DAGOrchestrator ⋮---- resolved store = store or ExecutionStateStore resolved registry = registry or get registry ⋮---- async def execute self, task: Task - Result ⋮---- plan: ExecutionPlan None = None ⋮---- plan = await self.planner.plan task ⋮---- record = await self.store.get execution plan.execution id ⋮---- nodes = await self.store.list nodes plan.execution id artifacts = await self.store.list artifacts plan.execution id events = await self.store.list events plan.execution id ⋮---- @staticmethod def ensure builtin agents registry: AgentRegistry - None ⋮---- all = "DAGOrchestrator" 证据：`src/symbio/core/dag_orchestrator.py`
- **Dag Runtime**（source_file）：class DAGRuntime ⋮---- async def run self, execution id: str - None ⋮---- failed = False ⋮---- nodes = await self.store.list nodes execution id ready nodes = self. ready nodes nodes ⋮---- failed = True ⋮---- artifacts = await self.store.list artifacts execution id missing verification = self. missing verification nodes nodes, artifacts ⋮---- def ready nodes self, nodes: list ExecutionNode - list ExecutionNode ⋮---- completed = { failed = { ⋮---- async def execute node self, execution id: str, node: ExecutionNode - bool ⋮---- agent = self.registry.get node.executor ⋮---- task = self. node to task execution id, node ⋮---- result = await agent.execute task ⋮---- failure payload = { failure typ… 证据：`src/symbio/core/dag_runtime.py`
- **Execution Planner**（source_file）：class ExecutionPlanner ⋮---- def init self, decomposer: TaskDecomposer None = None - None ⋮---- decomposition = await self.decomposer.decompose task.intent, task.task id ⋮---- rejection reason = self. decomposition rejection reason decomposition ⋮---- workflow policy = self. workflow policy task node id = f"{task.task id}:root" node = ExecutionNode ⋮---- verification required = self. verification required task nodes = root node id = next edges = ⋮---- metadata = { ⋮---- @staticmethod def workflow policy task: Task - dict str, Any ⋮---- workflow policy = task.metadata.get "workflow policy" ⋮---- @staticmethod def verification required task: Task - bool ⋮---- @staticmethod def json value valu… 证据：`src/symbio/core/execution_planner.py`
- **六要素**（source_file）：class RiskLevel str, Enum ⋮---- LOW = "low" MEDIUM = "medium" HIGH = "high" CRITICAL = "critical" ⋮---- class ApprovalStatus str, Enum ⋮---- PENDING = "pending" APPROVED = "approved" REJECTED = "rejected" TIMEOUT = "timeout" AUTO APPROVED = "auto approved" ⋮---- class ApprovalRecord BaseModel ⋮---- approver id: str decision: ApprovalStatus comment: str = "" timestamp: datetime = Field default factory=datetime.now ⋮---- class ApprovalRequest BaseModel ⋮---- """审批请求 - 六要素 六要素: 1. action -- 做什么 2. impact scope -- 影响范围 3. reason -- 为什么 4. alternatives -- 替代方案 5. risk level -- 风险等级 6. timeout seconds -- 超时时间 """ request id: str = Field default factory=lambda: str uuid4 task id: str node id: str… 证据：`src/symbio/core/hitl_gateway.py`
- **英文（兼容 "ignore all previous instructions" 等语序）**（source_file）：logger = get logger "injection guard" ⋮---- class ThreatLevel str, Enum ⋮---- SAFE = "safe" LOW = "low" MEDIUM = "medium" HIGH = "high" CRITICAL = "critical" ⋮---- class DefenseLayer str, Enum ⋮---- INPUT SANITIZATION = "input sanitization" SEMANTIC DETECTION = "semantic detection" INTENT AUDIT = "intent audit" ⋮---- class AttackType str, Enum ⋮---- DIRECT INJECTION = "direct injection" INDIRECT INJECTION = "indirect injection" JAILBREAK = "jailbreak" PROMPT LEAK = "prompt leak" ROLE HIJACK = "role hijack" ENCODING BYPASS = "encoding bypass" CONTEXT OVERFLOW = "context overflow" SOCIAL ENGINEERING = "social engineering" DATA EXFILTRATION = "data exfiltration" NONE = "none" ⋮---- class Sanit… 证据：`src/symbio/core/injection_guard.py`
- **Planner Reviewer**（source_file）：def ensure json ready value: Any, field name: str - Any ⋮---- class PlannerReviewerStatus str, Enum ⋮---- APPROVED = "approved" BLOCKED = "blocked" SKIPPED = "skipped" ADVISORY = "advisory" ⋮---- class ReviewFindingSeverity str, Enum ⋮---- INFO = "info" WARNING = "warning" BLOCKING = "blocking" ⋮---- class PlanStep BaseModel ⋮---- step id: str kind: str title: str description: str required: bool = True evidence keys: list str = Field default factory=list metadata: dict str, Any = Field default factory=dict ⋮---- @field validator "metadata" @classmethod def validate metadata json ready cls, value: dict str, Any - dict str, Any ⋮---- class ReviewFinding BaseModel ⋮---- source: str severity: R… 证据：`src/symbio/core/planner_reviewer.py`
- **失效控制**（source_file）：logger = get logger "semantic cache" ⋮---- class InvalidationStrategy str, Enum ⋮---- TTL = "ttl" VERSION = "version" CONTEXT = "context" MANUAL = "manual" ⋮---- class CacheEntry BaseModel ⋮---- entry id: str = Field default factory=lambda: str uuid4 query text: str response text: str model: str = "" 生成响应的模型 embedding: list float = Field default factory=list 查询文本的向量 ⋮---- 失效控制 version: str = "1.0.0" context hash: str = "" 上下文指纹（系统提示词、工具列表等） ttl seconds: int = 3600 生存时间（秒） created at: datetime = Field default factory=datetime.now expires at: Optional datetime = None 过期时间（由 ttl 计算） ⋮---- Prompt Cache 整合 prompt cache prefix: str = "" 可复用的前缀缓存标识 prompt prefix hash: str = "" 前缀内容的 hash，用于前缀匹配 ca… 证据：`src/symbio/core/semantic_cache.py`
- **Workflow Policy**（source_file）：class WorkflowPolicy BaseModel ⋮---- require plan: bool = False require clarification on ambiguity: bool = True require tdd: bool = False require root cause before fix: bool = False require verification before completion: bool = True require spec review: bool = False allow assumptions: bool = False checklist: list str = Field default factory=list ⋮---- def to prompt self - str ⋮---- lines = ⋮---- def workflow policy for intent intent: Intent - WorkflowPolicy ⋮---- text = f"{intent.raw text} {intent.action}".lower action = intent.action ⋮---- is code work = action in {"write code", "code review", "file operation", "git operation"} is bug work = any keyword in text for keyword in is feature w… 证据：`src/symbio/core/workflow_policy.py`
- **---------------------------------------------------------------------------**（source_file）：logger = get logger "memory.audit" ⋮---- class AuditFlag str, Enum ⋮---- PII DETECTED = "pii detected" INJECTION DETECTED = "injection detected" STALE = "stale" LOW IMPORTANCE = "low importance" DUPLICATE = "duplicate" EXPIRED = "expired" ⋮---- class Severity str, Enum ⋮---- INFO = "info" WARNING = "warning" CRITICAL = "critical" ⋮---- class AuditItem BaseModel ⋮---- item id: str = Field default factory=lambda: str uuid4 flag: AuditFlag severity: Severity message: str details: dict str, Any = Field default factory=dict ⋮---- class AuditResult BaseModel ⋮---- result id: str = Field default factory=lambda: str uuid4 memory id: str content preview: str = "" 内容摘要（前100字符） is clean: bool = True 是… 证据：`src/symbio/memory/audit.py`
- **---------------------------------------------------------------------------**（source_file）：logger = get logger "security.audit" ⋮---- class AuditLevel str, Enum ⋮---- DEBUG = "debug" INFO = "info" WARNING = "warning" ERROR = "error" CRITICAL = "critical" ⋮---- class AuditAction str, Enum ⋮---- CREATE = "create" READ = "read" UPDATE = "update" DELETE = "delete" LOGIN = "login" LOGOUT = "logout" ACCESS = "access" EXPORT = "export" IMPORT = "import" CONFIG CHANGE = "config change" PERMISSION CHANGE = "permission change" CUSTOM = "custom" ⋮---- class AuditOutcome str, Enum ⋮---- SUCCESS = "success" FAILURE = "failure" DENIED = "denied" ⋮---- class AuditEntry BaseModel ⋮---- entry id: str = Field default factory=lambda: str uuid4 timestamp: datetime = Field default factory=datetime.no… 证据：`src/symbio/security/audit.py`
- **1. PII 检测**（source_file）：logger = get logger "security.gateway" ⋮---- class SecurityAction str, Enum ⋮---- ALLOW = "allow" BLOCK = "block" SANITIZE = "sanitize" QUARANTINE = "quarantine" ⋮---- class SecurityCheckResult BaseModel ⋮---- result id: str = Field default factory=lambda: str uuid4 original content: str = "" sanitized content: str = "" is safe: bool = True action: SecurityAction = SecurityAction.ALLOW pii matches: list PIIMatch = Field default factory=list injection threat: ThreatLevel = ThreatLevel.SAFE reasons: list str = Field default factory=list created at: datetime = Field default factory=datetime.now ⋮---- class SecurityStats BaseModel ⋮---- """安全统计""" total checked: int = 0 total allowed: int = 0 t… 证据：`src/symbio/security/gateway.py`
- **Changelog**（documentation）：All notable changes to this project will be documented in this file. 证据：`CHANGELOG.md`
- **行为准则**（documentation）：为了营造一个开放、友好的环境，我们作为贡献者和维护者承诺：无论年龄、体型、残疾、种族、性别认同和表达、经验水平、国籍、外貌、种族、宗教或性取向如何，参与本项目的每个人都不会受到骚扰。 证据：`CODE_OF_CONDUCT.md`
- **🧬 SYMBIO**（documentation）：The Next-Gen AI Infrastructure for Multi-Agent Orchestration 证据：`README_en.md`
- **🧬 SYMBIO（共生）**（documentation）：次世代 AI インフラストラクチャ · マルチエージェント協調フレームワーク 证据：`README_ja.md`
- **安全策略**（documentation）：1. GitHub Security Advisory : 使用 GitHub 的私有漏洞报告功能 2. 邮件 : 发送至 security@symbio.dev （示例邮箱） 证据：`SECURITY.md`
- **Banner**（structured_config）：error code: 524 证据：`assets/banner.json`
- **Logo**（structured_config）：{"error":{"code":"model not found","message":"No available channel for model dall-e-3 under group img特价 distributor request id: 202605281434367494180168268d9d6GJ6mvvLk ","type":"new api error"}} 证据：`assets/logo.json`
- **Symbio**（structured_config）：{ "annotations": { "list": }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "links": , "liveNow": false, "schemaVersion": 39, "tags": "symbio" , "templating": { "list": }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Symbio Overview", "uid": "symbio-overview", "version": 1, "panels": { "id": 1, "type": "stat", "title": "Sessions", "gridPos": { "h": 4, "w": 4, "x": 0, "y": 0 }, "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": { "expr": "symbio sessions total", "refId": "A" } , "fieldConfig": { "defaults": { "color": { "mode": "thresholds" } }, "overrides": } }, { "id": 2, "type": "stat", "title": "Messages", "… 证据：`config/grafana/provisioning/dashboards/symbio.json`
- **Smoke**（structured_config）：{ "name": "Symbio Smoke Suite", "description": "Minimal regression checks for tool planning and response quality.", "version": "1.0.0", "cases": { "case id": "tool-search-docs", "name": "Plans a documentation lookup", "description": "The agent should identify that documentation lookup needs a browser fetch style tool.", "task type": "tool call accuracy", "tags": "smoke", "tools", "docs" , "input text": "Find the latest project documentation and summarize the deployment steps.", "expected tool calls": { "tool name": "browser.fetch", "parameters": {}, "required": true, "min call count": 1 } }, { "case id": "quality-actionable-answer", "name": "Returns an actionable answer", "description": "Th… 证据：`data/eval_suites/smoke.json`
- **Python**（source_file）：Python pycache / .py cod $py.class .so .Python build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ .egg-info/ .installed.cfg .egg 证据：`.gitignore`
- **Activate**（source_file）：@echo off set PYTHONPATH=E:\工作\国信\AI数据集项目\测试文件夹\Symbio\src;%PYTHONPATH% echo Symbio environment activated! echo You can now run: symbio init 证据：`activate.bat`
- **Docker Compose.Observability**（source_file）：version: "3.9" services: otel-collector: image: otel/opentelemetry-collector-contrib:0.97.0 container name: symbio-otel-collector command: "--config=/etc/otelcol/config.yaml" volumes: - ./config/otel/collector.yaml:/etc/otelcol/config.yaml:ro ports: - "4317:4317" - "4318:4318" - "8889:8889" depends on: - jaeger - prometheus restart: unless-stopped networks: symbio-obs jaeger: image: jaegertracing/all-in-one:1.56 container name: symbio-jaeger environment: - COLLECTOR OTLP ENABLED=true - SPAN STORAGE TYPE=badger - BADGER EPHEMERAL=false - BADGER DIRECTORY VALUE=/badger/data - BADGER DIRECTORY KEY=/badger/key volumes: - jaeger-badger:/badger ports: - "16686:16686" - "14250:14250" - "14268:1426… 证据：`docker-compose.observability.yml`
- **Pyproject**（source_file）：build-system requires = "hatchling" build-backend = "hatchling.build" 证据：`pyproject.toml`
- **Capture Screenshots**（source_file）：BASE = sys.argv 1 if len sys.argv 1 else "http://127.0.0.1:9112" OUT = Path sys.argv 2 if len sys.argv 2 else "assets/screenshots" ⋮---- PAGES = ⋮---- def seed wechat qr base: str - None ⋮---- img = qrcode.make "https://login.weixin.qq.com/symbio-demo-bind" buf = io.BytesIO ⋮---- data url = "data:image/png;base64," + base64.b64encode buf.getvalue .decode body = json.dumps {"status": "waiting scan", "qr image": data url} .encode req = urllib.request.Request ⋮---- def main - None ⋮---- browser = p.chromium.launch page = browser.new page viewport={"width": 1440, "height": 900}, device scale factor=2 ⋮---- tab = page.query selector f'.nav-tab data-page="{data page}" ' ⋮---- full = True ⋮---- pa… 证据：`tools/capture_screenshots.py`
- **App**（source_file）：const $ = sel const $$ = sel const escapeSelectorValue = value = ⋮---- // ============ Navigation ============ ⋮---- async function switchPage name ⋮---- // Update topbar title ⋮---- // Lazy load: only load data on first visit per page avoids re-fetching on tab switch ⋮---- // ============ Sidebar Collapse ============ function setSidebarCollapsed collapsed ⋮---- // ============ Sessions ============ function renderSessions ⋮---- function renderMessages ⋮---- function createMessageEl msg ⋮---- function createStreamingEl ⋮---- function updateStreamingEl text ⋮---- function finalizeStreamingEl fullContent, tokenUsage ⋮---- function formatContent text ⋮---- // Code blocks with syntax highlight… 证据：`web/app.js`
- **Index**（source_file）：Symbio — AI Infra Multi-Agent Platform Symbio v… 核心 对话 智能体 任务 审批 工作台 A2A NEW 微信 工具 Skills Sandbox MCP 安全 Computer Use 知识 记忆 本体图谱 分析 仪表盘 能力账本 数据飞轮 配置 模型 主题 收起 对话 已连接 Token: 0 · $ 0.00 新对话 新对话 刚刚 Symbio 准备就绪 多 Agent 协同 AI 助手 · … · 动态 DAG 拓扑 快速排序算法 动态 DAG 代码分析 数据库设计 Ctrl+Enter 发送 · Shift+Enter 换行 模型 默认模型 上下文 记忆检索 暂无相关记忆 工具调用 暂无工具调用 Token 统计 输入 0 输出 0 总计 0 任务监控 全部 运行中 已完成 失败 刷新 暂无运行中的任务 模型配置 测试全部 添加模型 记忆管理 全部类型 短期记忆 长期记忆 记忆库为空 对话中的重要信息会自动存储 本体图谱 全部节点 概念 个体 刷新 滚轮缩放 · 拖背景平移 · 拖节点重排 · 悬停高亮邻居 暂无可展示的本体节点 对话、记忆或工具执行产生结构化实体后会在这里形成图谱 选择一个节点查看详情 节点的概念归属、父概念、属性和连接关系会显示在这里。 仪表盘 刷新 0 总消息数 0 总 Token 消耗 0 活跃会话 0 记忆条数 Token 使用趋势 Observability Tracer offline Spans 0 Metrics 0 Token entries 0 成本中心 24 小时窗口 · 语义缓… 证据：`web/index.html`
- **Qrcode.Min**（source_file）：var QRCode;!function 证据：`web/qrcode.min.js`
- **page-chat { display:none; }**（source_file）：:root { ⋮---- , ::before, ::after { margin:0; padding:0; box-sizing:border-box; } ⋮---- html { ⋮---- body { ⋮---- data-theme="light" { ⋮---- data-theme="light" .ambient-bg { opacity: 0.5; } data-theme="light" .orb-1 { background: e8a87c; } data-theme="light" .orb-2 { background: d97757; } data-theme="light" .orb-3 { background: e6c07a; } data-theme="light" .sidebar { background: var --bg-sidebar ; border-right-color: var --border ; } data-theme="light" .topbar { background: rgba 255,255,255,0.9 ; } data-theme="light" .sessions-sidebar { background: rgba 248,248,254,0.7 ; } data-theme="light" .context-panel { background: rgba 248,248,254,0.7 ; } data-theme="light" .input-area { background: r… 证据：`web/style.css`
- **Xterm Addon Fit.Min**（source_file）：!function e,t 证据：`web/xterm-addon-fit.min.js`
- **Xterm.Min**（source_file）：.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:0}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background: 000;color: fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color: 000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xte… 证据：`web/xterm.min.css`
- **Xterm.Min**（source_file）：!function e,t 证据：`web/xterm.min.js`

## 宿主 AI 必须遵守的规则

- **把本资产当作开工前上下文，而不是运行环境。**：AI Context Pack 只包含证据化项目理解，不包含目标项目的可执行状态。 证据：`README.md`, `docs/feature-checklist.md`, `docs/features.md`
- **回答用户时区分可预览内容与必须安装后才能验证的内容。**：安装前体验的消费者价值来自降低误装和误判，而不是伪装成真实运行。 证据：`README.md`, `docs/feature-checklist.md`, `docs/features.md`

## 用户开工前应该回答的问题

- 你准备在哪个宿主 AI 或本地环境中使用它？
- 你只是想先体验工作流，还是准备真实安装？
- 你最在意的是安装成本、输出质量、还是和现有规则的冲突？

## 验收标准

- 所有能力声明都能回指到 evidence_refs 中的文件路径。
- AI_CONTEXT_PACK.md 没有把预览包装成真实运行。
- 用户能在 3 分钟内看懂适合谁、能做什么、如何开始和风险边界。

---

## Doramagic Context Augmentation

下面内容用于强化 Repomix/AI Context Pack 主体。Human Manual 只提供阅读骨架；踩坑日志会被转成宿主 AI 必须遵守的工作约束。

## Human Manual 骨架

使用规则：这里只是项目阅读路线和显著性信号，不是事实权威。具体事实仍必须回到 repo evidence / Claim Graph。

宿主 AI 硬性规则：
- 不得把页标题、章节顺序、摘要或 importance 当作项目事实证据。
- 解释 Human Manual 骨架时，必须明确说它只是阅读路线/显著性信号。
- 能力、安装、兼容性、运行状态和风险判断必须引用 repo evidence、source path 或 Claim Graph。

- **项目简介、能力账本与快速上手**：importance `high`
  - source_paths: README.md, README_zh.md, src/symbio/capabilities.py, src/symbio/cli.py, docs/feature-checklist.md
- **四层架构与目录模块划分**：importance `high`
  - source_paths: docs/architecture.md, docs/modules.md, docs/module-design-whitepaper.md, src/symbio/core/orchestrator.py, src/symbio/__init__.py
- **DAG 调度编排与执行引擎**：importance `high`
  - source_paths: src/symbio/core/dag_orchestrator.py, src/symbio/core/dag_engine.py, src/symbio/core/dag_runtime.py, src/symbio/core/execution_planner.py, src/symbio/core/planner_reviewer.py
- **基础设施、接入层工具与部署运维**：importance `high`
  - source_paths: src/symbio/security/injection_guard.py, src/symbio/security/gateway.py, src/symbio/security/audit.py, src/symbio/core/semantic_cache.py, src/symbio/core/context_pruner.py

## Repo Inspection Evidence / 源码检查证据

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `d8581f95c2b9a1ff4e0df413be0cad92c18b09da`
- inspected_files: `README.md`, `pyproject.toml`, `docs/agent-workflow-policy.md`, `docs/architecture.md`, `docs/external-agent-control.md`, `docs/feature-checklist.md`, `docs/features.md`, `docs/module-design-whitepaper.md`, `docs/modules.md`, `docs/pypi-release.md`, `docs/references.md`, `docs/roadmap.md`, `docs/superpowers/plans/2026-06-03-dag-first-orchestrator.md`, `docs/superpowers/specs/2026-06-03-dag-first-orchestrator-design.md`, `docs/tech-stack.md`, `docs/ui-design.md`, `src/symbio/__init__.py`, `src/symbio/agents/__init__.py`, `src/symbio/agents/base.py`, `src/symbio/agents/builtin/__init__.py`

宿主 AI 硬性规则：
- 没有 repo_clone_verified=true 时，不得声称已经读过源码。
- 没有 repo_inspection_verified=true 时，不得把 README/docs/package 文件判断写成事实。
- 没有 quick_start_verified=true 时，不得声称 Quick Start 已跑通。

## Doramagic Pitfall Constraints / 踩坑约束

这些规则来自 Doramagic 发现、验证或编译过程中的项目专属坑点。宿主 AI 必须把它们当作工作约束，而不是普通说明文字。

### Constraint 1: 可能修改宿主 AI 配置

- Trigger: 项目面向 Claude/Cursor/Codex/Gemini/OpenCode 等宿主，或安装命令涉及用户配置目录。
- Host AI rule: 列出会写入的配置文件、目录和卸载/回滚步骤。
- Why it matters: 安装可能改变本机 AI 工具行为，用户需要知道写入位置和回滚方法。
- Evidence: capability.host_targets | https://github.com/854875058/Symbio | host_targets=mcp_host, claude, claude_code, codex
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 2: 能力判断依赖假设

- Trigger: README/documentation is current enough for a first validation pass.
- Host AI rule: 将假设转成下游验证清单。
- Why it matters: 假设不成立时，用户拿不到承诺的能力。
- Evidence: capability.assumptions | https://github.com/854875058/Symbio | README/documentation is current enough for a first validation pass.
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 3: 维护活跃度未知

- Trigger: 未记录 last_activity_observed。
- Host AI rule: 补 GitHub 最近 commit、release、issue/PR 响应信号。
- Why it matters: 新项目、停更项目和活跃项目会被混在一起，推荐信任度下降。
- Evidence: evidence.maintainer_signals | https://github.com/854875058/Symbio | last_activity_observed missing
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

- Trigger: no_demo
- Evidence: downstream_validation.risk_items | https://github.com/854875058/Symbio | no_demo; severity=medium
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 5: 存在评分风险

- Trigger: no_demo
- Why it matters: 风险会影响是否适合普通用户安装。
- Evidence: risks.scoring_risks | https://github.com/854875058/Symbio | no_demo; severity=medium
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 6: issue/PR 响应质量未知

- Trigger: issue_or_pr_quality=unknown。
- Host AI rule: 抽样最近 issue/PR，判断是否长期无人处理。
- Why it matters: 用户无法判断遇到问题后是否有人维护。
- Evidence: evidence.maintainer_signals | https://github.com/854875058/Symbio | issue_or_pr_quality=unknown
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 7: 发布节奏不明确

- Trigger: release_recency=unknown。
- Host AI rule: 确认最近 release/tag 和 README 安装命令是否一致。
- Why it matters: 安装命令和文档可能落后于代码，用户踩坑概率升高。
- Evidence: evidence.maintainer_signals | https://github.com/854875058/Symbio | release_recency=unknown
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。
