# fortress - Doramagic AI Context Pack

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

## 充分原则

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

## 给宿主 AI 的使用方式

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

## Claim 消费规则

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

## 它最适合谁

- **正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**：README 或插件配置提到多个宿主 AI。 证据：`README.md` Claim：`clm_0003` supported 0.86
- **希望把专业流程带进宿主 AI 的用户**：仓库包含 Skill 文档。 证据：`mcp/skill/SKILL.md` Claim：`clm_0004` supported 0.86

## 它能做什么

- **AI Skill / Agent 指令资产库**（可做安装前预览）：项目包含可被宿主 AI 读取的 Skill 或 Agent 指令文件，可用于把专业流程带入 Claude、Codex、Cursor 等宿主。 证据：`mcp/skill/SKILL.md` Claim：`clm_0001` supported 0.86
- **命令行启动或安装流程**（需要安装后验证）：项目文档中存在可执行命令，真实使用需要在本地或宿主环境中运行这些命令。 证据：`AGENTS.md`, `README.md` Claim：`clm_0002` supported 0.86

## 怎么开始

- `pip install -U tilion-fortress       # or:  docker run --rm -p 9222:9222 tilion/fortress:latest` 证据：`README.md` Claim：`clm_0005` supported 0.86
- `pip install tilion-fortress` 证据：`README.md` Claim：`clm_0006` supported 0.86
- `pip install "tilion[mcp]"      # command:  tilion-mcp` 证据：`README.md` Claim：`clm_0007` supported 0.86
- `npx -y tilion-mcp              # auto-runs the server via uv (no global install)` 证据：`README.md` Claim：`clm_0008` supported 0.86
- `claude mcp add fortress -- tilion-mcp          # or:  claude mcp add fortress -- npx -y tilion-mcp` 证据：`README.md` Claim：`clm_0009` supported 0.86
- `curl -LO $BASE/tilion-fortress-linux-x64.tar.gz` 证据：`README.md` Claim：`clm_0010` supported 0.86
- `curl -Ls $BASE/SHA256SUMS | sha256sum -c --ignore-missing     # -> OK` 证据：`README.md` Claim：`clm_0011` supported 0.86
- `npm install tilion-fortress` 证据：`AGENTS.md` Claim：`clm_0012` supported 0.86

## 继续前判断卡

- **当前建议**：先做权限沙盒试用
- **为什么**：项目存在安装命令、宿主配置或本地写入线索，不建议直接进入主力环境，应先在隔离环境试装。

### 30 秒判断

- **现在怎么做**：先做权限沙盒试用
- **最小安全下一步**：先跑 Prompt Preview；若仍要安装，只在隔离环境试装
- **先别相信**：工具权限边界不能在安装前相信。
- **继续会触碰**：命令执行、宿主 AI 配置、本地环境或项目文件

### 现在可以相信

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

### 现在还不能相信

- **工具权限边界不能在安装前相信。**（unverified）：MCP/tool 类项目通常会触碰文件、网络、浏览器或外部 API，必须真实检查权限和日志。
- **真实输出质量不能在安装前相信。**（unverified）：Prompt Preview 只能展示引导方式，不能证明真实项目中的结果质量。
- **宿主 AI 版本兼容性不能在安装前相信。**（unverified）：Claude、Cursor、Codex、Gemini 等宿主加载规则和版本差异必须在真实环境验证。
- **不会污染现有宿主 AI 行为，不能直接相信。**（inferred）：Skill、plugin、AGENTS/CLAUDE/GEMINI 指令可能改变宿主 AI 的默认行为。 证据：`AGENTS.md`, `mcp/skill/SKILL.md`
- **可安全回滚不能默认相信。**（unverified）：除非项目明确提供卸载和恢复说明，否则必须先在隔离环境验证。
- **真实安装后是否与用户当前宿主 AI 版本兼容？**（unverified）：兼容性只能通过实际宿主环境验证。
- **项目输出质量是否满足用户具体任务？**（unverified）：安装前预览只能展示流程和边界，不能替代真实评测。
- **安装命令是否需要网络、权限或全局写入？**（unverified）：这影响企业环境和个人环境的安装风险。 证据：`README.md`

### 继续会触碰什么

- **命令执行**：包管理器、网络下载、本地插件目录、项目配置或用户主目录。 原因：运行第一条命令就可能产生环境改动；必须先判断是否值得跑。 证据：`AGENTS.md`, `README.md`
- **宿主 AI 配置**：Claude/Codex/Cursor/Gemini/OpenCode 等宿主的 plugin、Skill 或规则加载配置。 原因：宿主配置会改变 AI 后续工作方式，可能和用户已有规则冲突。 证据：`AGENTS.md`, `mcp/skill/SKILL.md`
- **本地环境或项目文件**：安装结果、插件缓存、项目配置或本地依赖目录。 原因：安装前无法证明写入范围和回滚方式，需要隔离验证。 证据：`AGENTS.md`, `README.md`
- **宿主 AI 上下文**：AI Context Pack、Prompt Preview、Skill 路由、风险规则和项目事实。 原因：导入上下文会影响宿主 AI 后续判断，必须避免把未验证项包装成事实。

### 最小安全下一步

- **先跑 Prompt Preview**：用安装前交互式试用判断工作方式是否匹配，不需要授权或改环境。（适用：任何项目都适用，尤其是输出质量未知时。）
- **只在隔离目录或测试账号试装**：避免安装命令污染主力宿主 AI、真实项目或用户主目录。（适用：存在命令执行、插件配置或本地写入线索时。）
- **先备份宿主 AI 配置**：Skill、plugin、规则文件可能改变 Claude/Cursor/Codex 的默认行为。（适用：存在插件 manifest、Skill 或宿主规则入口时。）
- **安装后只验证一个最小任务**：先验证加载、兼容、输出质量和回滚，再决定是否深用。（适用：准备从试用进入真实工作流时。）

### 退出方式

- **保留安装前状态**：记录原始宿主配置和项目状态，后续才能判断是否可恢复。
- **准备移除宿主 plugin / Skill / 规则入口**：如果试装后行为异常，可以把宿主 AI 恢复到试装前状态。
- **记录安装命令和写入路径**：没有明确卸载说明时，至少要知道哪些目录或配置需要手动清理。
- **如果没有回滚路径，不进入主力环境**：不可回滚是继续前阻断项，不应靠信任或运气继续。

## 哪些只能预览

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

## 哪些必须安装后验证

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

## 边界与风险判断卡

- **把安装前预览误认为真实运行**：用户可能高估项目已经完成的配置、权限和兼容性验证。 处理方式：明确区分 prompt_preview_can_do 与 runtime_required。 Claim：`clm_0013` inferred 0.45
- **命令执行会修改本地环境**：安装命令可能写入用户主目录、宿主插件目录或项目配置。 处理方式：先在隔离环境或测试账号中运行。 证据：`AGENTS.md`, `README.md` Claim：`clm_0014` 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。

### 任务路由

- **AI Skill / Agent 指令资产库**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`mcp/skill/SKILL.md` Claim：`clm_0001` supported 0.86
- **命令行启动或安装流程**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`AGENTS.md`, `README.md` Claim：`clm_0002` supported 0.86

### 上下文规模

- 文件总数：95
- 重要文件覆盖：40/95
- 证据索引条目：78
- 角色 / Skill 条目：1

### 证据不足时的处理

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

## Prompt Recipes

### 适配判断

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

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

### 安装前体验

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

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

请严格输出四段：
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
请基于 fortress 的 AI Context Pack，生成一段我可以粘贴给宿主 AI 的开工前指令。这段指令必须遵守 not_runtime=true，不能声称项目已经安装、运行或产生真实结果。
```

## 角色 / Skill 索引

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

- **fortress-stealth-browser**（skill）：- 激活提示：当用户任务与“fortress-stealth-browser”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`mcp/skill/SKILL.md`

## 证据索引

- 共索引 78 条证据。

- **Fortress — agent setup guide**（documentation）：Paste this whole file into your AI agent Claude, ChatGPT, Gemini, Cursor, Copilot, … and it has everything it needs to set Fortress up and drive it. 证据：`AGENTS.md`
- **One browser engine to rule them all**（documentation）：One browser engine to rule them all 证据：`README.md`
- **Fortress examples**（documentation）：Runnable examples that drive the Fortress stealth engine over CDP. 证据：`examples/README.md`
- **Fortress MCP — a stealth browser for AI agents**（documentation）：Fortress MCP — a stealth browser for AI agents 证据：`mcp/README.md`
- **Patches — the open surface layer**（documentation）：These are Fortress's surface-coherence patches : the in-tree Chromium/Blink modifications that read a per-launch persona and present it consistently across the JS-observable fingerprint surfaces user-agent, platform, WebGL, timezone, languages, screen, keyboard, media, and so on , including inside worker and iframe realms. 证据：`patches/README.md`
- **tilion-mcp**（documentation）：A stealth-browser MCP for AI agents. When a fetch gets blocked — Cloudflare, DataDome, PerimeterX, a 403, or a CAPTCHA — your agent calls these tools and gets the page, driving a real, recompiled Chromium Fortress locally. 证据：`mcp/npm/README.md`
- **Install**（documentation）：Drive the Fortress stealth Chromium engine with one line — no build, no Chromium source. 证据：`sdk/node/README.md`
- **Install**（documentation）：Drive the Fortress stealth Chromium engine with one line — no build, no Chromium source. 证据：`sdk/python/README.md`
- **Building Fortress natively on Windows & macOS**（documentation）：Building Fortress natively on Windows & macOS 证据：`docs/BUILD_NATIVE.md`
- **Detection gauntlet — results**（documentation）：Run on the official Fortress binary Chromium 151.0.7908.0, is official build , non-component, stripped with the full default persona + bundled fonts + --uxr-webrtc-policy=disable non proxied udp . 证据：`docs/GAUNTLET_RESULTS.md`
- **Fortress Persona Engine**（documentation）：Every Fortress launch presents a unique, coherent, real-looking device — a fresh fingerprint that looks like an ordinary person's machine, generated inside the browser engine before any page script runs. 证据：`docs/PERSONA_ENGINE.md`
- **Contributing to Fortress**（documentation）：Fortress is open source and open to contributions. Bug fixes, new features, performance work, docs, and tests are all welcome. 证据：`CONTRIBUTING.md`
- **Package**（package_manifest）：{ "name": "tilion-mcp", "version": "0.1.0", "description": "Stealth-browser MCP for AI agents — fetch pages behind Cloudflare / DataDome / PerimeterX / 403 / CAPTCHA, extract clean markdown & JSON, crawl sites, reverse-engineer private APIs, and drive a real undetected Chromium Fortress . Local, no account, no key.", "bin": { "tilion-mcp": "cli.js" }, "files": "cli.js", "README.md" , "keywords": "mcp", "model-context-protocol", "modelcontextprotocol", "stealth-browser", "undetected", "anti-bot", "bot-detection", "cloudflare", "datadome", "perimeterx", "captcha", "web-scraping", "browser-automation", "playwright", "fortress", "tilion", "agent", "claude", "cursor" , "repository": { "type": "g… 证据：`mcp/npm/package.json`
- **Package**（package_manifest）：{ "name": "tilion-fortress", "version": "151.0.7910", "description": "Install and drive the Fortress stealth Chromium engine. Prebuilt binary, no source.", "type": "module", "main": "index.js", "bin": { "tilion-fortress": "cli.js" }, "files": "index.js", "cli.js", "README.md" , "engines": { "node": " =18" }, "keywords": "chromium", "stealth", "browser", "automation", "anti-bot", "fortress", "tilion" , "author": "arham766", "license": "BSD-3-Clause", "repository": { "type": "git", "url": "https://github.com/tiliondev/fortress.git" }, "homepage": "https://github.com/tiliondev/fortress" } 证据：`sdk/node/package.json`
- **Fortress stealth-browser skill**（skill_instruction）：When to use this Reach for the fortress MCP tools the moment a normal fetch fails or returns junk: - HTTP 403 / 429 / 503 , a Cloudflare "Just a moment", DataDome/PerimeterX walls, "Access to this page has been denied", "Press & Hold to confirm you are human". - The page is a JavaScript SPA and the plain HTML is an empty shell. - You need structured data markdown, tables, or a schema-shaped record , a whole-site crawl , or the site's private JSON API . - You have Playwright/Puppeteer/browser-use code that keeps getting detected — get a stealth CDP endpoint and point your code at it. 证据：`mcp/skill/SKILL.md`
- **License**（source_file）：Copyright c 2026, arham766 Tilion / Fortress engine patches and tooling All rights reserved. 证据：`LICENSE`
- **Fortress — Benchmark**（documentation）：Measured on a datacenter Linux x86-64 host no GPU , driving each chrome binary over CDP at 1280×800. Captured 2026-06-24. No mock-ups — every number is a live read. 证据：`docs/BENCHMARK.md`
- **Gauntlet Sample**（structured_config）：{ "surfaces": { "webdriver": false, "platform": "Win32", "uaWindows": true, "mp4": "probably", "emoji": true, "webglRenderer": "ANGLE NVIDIA, NVIDIA GeForce RTX 3060 Direct3D11 vs 5 0 ps 5 0, D3D11 ", "hardwareConcurrency": 16, "deviceMemory": 8, "languages": "en-US", "en" , "timezone": "America/New York", "canvasNoisePixels": 37, "webgpuAdapter": true, "webgpuVendor": "nvidia", "plugins": 5 }, "invariants": { "webdriver is false": true, "platform is Win32": true, "UA is Windows": true, "mp4 codec works": true, "emoji font present": true, "WebGL renderer spoofed": true, "hardwareConcurrency plausible": true, "deviceMemory present": true, "languages well-formed": true, "timezone is an IANA z… 证据：`docs/gauntlet-sample.json`
- **Init**（source_file）：all = "main", "mcp" 证据：`mcp/__init__.py`
- **0001 Base Build Gn**（source_file）：diff --git a/base/BUILD.gn b/base/BUILD.gn index 539782c068..e831553518 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn @@ -1000,6 +1000,8 @@ component "base" { "types/zip.h", "unguessable token.cc", "unguessable token.h", + "uxr config.cc", + "uxr config.h", "uuid.cc", "uuid.h", "value iterators.cc", 证据：`patches/0001-base-BUILD-gn.patch`
- **include "third party/blink/renderer/core/execution context/navigator base.h"**（source_file）：diff --git a/third party/blink/renderer/core/execution context/navigator base.cc b/third party/blink/renderer/core/execution context/navigator base.cc index cccfafe8f9..9fe22fe44c 100644 --- a/third party/blink/renderer/core/execution context/navigator base.cc +++ b/third party/blink/renderer/core/execution context/navigator base.cc @@ -4,6 +4,8 @@ 证据：`patches/0011-third_party-blink-renderer-core-execution_context-navigator_base-cc.patch`
- **include "third party/blink/renderer/modules/canvas/canvas2d/base rendering context 2d.h"**（source_file）：diff --git a/third party/blink/renderer/modules/canvas/canvas2d/base rendering context 2d.cc b/third party/blink/renderer/modules/canvas/canvas2d/base rendering context 2d.cc index d14c4a8f27..deea61d3ce 100644 --- a/third party/blink/renderer/modules/canvas/canvas2d/base rendering context 2d.cc +++ b/third party/blink/renderer/modules/canvas/canvas2d/base rendering context 2d.cc @@ -2,8 +2,17 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. 证据：`patches/0020-third_party-blink-renderer-modules-canvas-canvas2d-base_rendering_context_2d-cc.patch`
- **include "third party/blink/renderer/modules/keyboard/keyboard layout.h"**（source_file）：diff --git a/third party/blink/renderer/modules/keyboard/keyboard layout.cc b/third party/blink/renderer/modules/keyboard/keyboard layout.cc index e2b697b768..98161f2604 100644 --- a/third party/blink/renderer/modules/keyboard/keyboard layout.cc +++ b/third party/blink/renderer/modules/keyboard/keyboard layout.cc @@ -3,6 +3,7 @@ // found in the LICENSE file. 证据：`patches/0021-third_party-blink-renderer-modules-keyboard-keyboard_layout-cc.patch`
- **Series**（source_file）：patches/0001-base-BUILD-gn.patch patches/0002-base-uxr config-cc.patch patches/0003-base-uxr config-h.patch patches/0004-components-embedder support-user agent utils-cc.patch patches/0005-content-browser-renderer host-render process host impl-cc.patch patches/0006-content-common-renderer-mojom.patch patches/0007-content-renderer-render thread impl-cc.patch patches/0008-content-renderer-render thread impl-h.patch patches/0009-content-renderer-renderer main-cc.patch patches/0010-third party-blink-renderer-core-dom-element-cc.patch patches/0011-third party-blink-renderer-core-execution context-navigator base-cc.patch patches/0012-third party-blink-renderer-core-frame-local dom window-cc.patch… 证据：`patches/series`
- **Command-line switch lookups a patch may add.**（source_file）：REPO = Path file .resolve .parent.parent PATCHES = REPO / "patches" SERIES = PATCHES / "series" ⋮---- BRAND RE = re.compile r'" ^"\n tilion tillion fortress phoron swarm ^"\n "', re.IGNORECASE Command-line switch lookups a patch may add. SWITCH RE = re.compile r' ?:HasSwitch GetSwitchValueASCII GetSwitchValueNative \ \s " ^" + "' PATCH NAME RE = re.compile r"^ \d{4} -. \.patch$" ⋮---- class Report ⋮---- def init self - None ⋮---- def check self, name: str, ok: bool, detail: str = "" - None ⋮---- mark = "PASS" if ok else "FAIL" line = f" {mark} {name}" ⋮---- def patch files patches dir: Path - list Path ⋮---- def strip comment added: str - str ⋮---- i = added.find "//" ⋮---- def check series… 证据：`tools/check_patches.py`
- **Isolated, OS-appropriate temp dirs not a hardcoded /tmp, which doesn't exist on Windows .**（source_file）：def ws eval port, expr, timeout=20 ⋮---- c = http.client.HTTPConnection "127.0.0.1", port, timeout=timeout ⋮---- pages = t for t in json.loads c.getresponse .read if t.get "type" == "page" ⋮---- path = pages 0 "webSocketDebuggerUrl" .split str port , 1 1 s = socket.create connection "127.0.0.1", port , timeout=timeout key = base64.b64encode os.urandom 16 .decode ⋮---- buf = b"" ⋮---- msg = json.dumps {"id": 1, "method": "Runtime.evaluate", mask = os.urandom 4 frame = bytearray 0x81, 0x80 126 + struct.pack " H", len msg & 0xFFFF + mask ⋮---- def recv frame ⋮---- h = s.recv 2 ln = h 1 & 0x7F ⋮---- ln = struct.unpack " H", s.recv 2 0 ⋮---- ln = struct.unpack " Q", s.recv 8 0 data = b"" ⋮---- j… 证据：`tools/gauntlet.py`
- **--------------------------------------------------------------------------- parsing helpers**（source_file）：REPO = "tiliondev/fortress" API = "https://api.github.com" ⋮---- REQUIRED = {"linux-x64"} REPO ROOT = Path file .resolve .parent.parent ⋮---- class Report ⋮---- def init self - None ⋮---- def check self, name: str, ok: bool, detail: str = "" - None ⋮---- def skip self, name: str, detail: str = "" - None ⋮---- def note self, name: str, detail: str = "" - None ⋮---- @staticmethod def emit mark: str, name: str, detail: str - None ⋮---- line = f" {mark} {name}" ⋮---- --------------------------------------------------------------------------- parsing helpers def parse sha256sums text: str - dict str, str ⋮---- """Parse lines tolerating the name binary marker into {name: hash}.""" out: dict str,… 证据：`tools/verify_release.py`
- **Cli**（source_file）：function has cmd 证据：`mcp/npm/cli.js`
- **Index**（source_file）：const hostFor = tag = process.env.FORTRESS DOWNLOAD HOST https://github.com/$ ⋮---- export function resolvePlatform ⋮---- export function personaArgs persona ⋮---- export async function sha256 path ⋮---- export async function expectedSha asset, host ⋮---- } catch { / none / } ⋮---- async function ensureNative plat, host, tag ⋮---- const root = join CACHE, tag, plat ; // cache per release tag so channels don't collide ⋮---- async function assetExists plat, host ⋮---- async function waitCdp port, timeoutMs = 90000 ⋮---- export class Fortress ⋮---- static async launch opts ⋮---- async start ⋮---- async startNative plat ⋮---- startDocker ⋮---- async close 证据：`sdk/node/index.js`
- **Pyproject**（source_file）：build-system requires = "setuptools =61" build-backend = "setuptools.build meta" 证据：`sdk/python/pyproject.toml`
- **platform key - release asset, archive kind, launcher relative path**（source_file）：version = "151.0.7908.0.post4" all = "Fortress", "resolve platform" ⋮---- REPO = "tiliondev/fortress" ⋮---- CHANNELS = { DEFAULT CHANNEL = os.environ.get "FORTRESS CHANNEL", "stable" CACHE = Path os.environ.get "FORTRESS BROWSERS PATH", ⋮---- def host tag: str - str ⋮---- platform key - release asset, archive kind, launcher relative path ASSETS = { ⋮---- def resolve platform - str None ⋮---- def sha256 path: Path - str ⋮---- h = hashlib.sha256 ⋮---- def expected sha asset: str, host: str - str None ⋮---- """Fetch SHA256SUMS from the release and return the hash for asset .""" ⋮---- parts = line.split ⋮---- def download plat: str, host: str, tag: str - Path ⋮---- root = CACHE / tag / plat lau… 证据：`sdk/python/tilion_fortress/__init__.py`
- **Main**（source_file）：def main ⋮---- ap = argparse.ArgumentParser prog="tilion-fortress", ⋮---- args = ap.parse args ⋮---- f = Fortress port=args.port, headless=not args.no headless .start 证据：`sdk/python/tilion_fortress/__main__.py`
- **Security Policy**（documentation）：Fortress is a stealth Chromium engine, so please route two very different things to two different places: 证据：`SECURITY.md`
- **Test Sdk**（source_file）：def test resolve platform monkeypatch, sysname, machine, expected ⋮---- def test every resolvable platform has an asset ⋮---- resolvable = {"linux-x64", "win-x64", "mac-arm64", "mac-x64"} ⋮---- def test persona args empty ⋮---- def test persona args known keys map to uxr flags ⋮---- args = tf. persona args {"timezone": "America/New York", "hw concurrency": 16} ⋮---- def test persona args unknown key falls back to uxr prefix ⋮---- args = tf. persona args {"some new surface": "v"} ⋮---- def test persona args are all uxr prefixed ⋮---- persona = {"platform": "Win32", "timezone": "UTC", "webgl renderer": "ANGLE", ⋮---- def test sha256 matches hashlib tmp path ⋮---- f = tmp path / "blob.bin" dat… 证据：`sdk/python/tests/test_sdk.py`
- **Test Check Patches**（source_file）：lines = f"diff --git a/{path} b/{path}", "index 1234567..89abcde 100644" ⋮---- def write set root: Path, patches: dict str, str , series: list str None = None - Path ⋮---- series = sorted patches ⋮---- def clean patches - dict str, str ⋮---- def test clean set passes every check tmp path ⋮---- rep = cp.run checks write set tmp path, clean patches ⋮---- def test series sync missing entry tmp path ⋮---- def test series sync missing file tmp path ⋮---- def test series sync duplicate entry tmp path ⋮---- def test series sync wrong order tmp path ⋮---- def test numbering gap tmp path ⋮---- patches = {"0001-alpha.patch": make patch "core/alpha.cc" , ⋮---- def test numbering duplicate number tmp p… 证据：`tools/tests/test_check_patches.py`
- **--------------------------------------------------------------------------- --full re-hashing**（source_file）：SDK ASSETS = { NODE NAMES = set SDK ASSETS.values ⋮---- LINUX = SDK ASSETS "linux-x64" WIN = SDK ASSETS "win-x64" H LINUX = "f4e0e83a38b08ec62ec07cb7f0c54d8eae5e7260798a91e7d703e547de53207c" H WIN = "a538de3341d9e7bf1c87f81b0c6e91ec9c2bde3f80872a8f626dd074d1161a45" ⋮---- def asset name, digest=None, size=100, state="uploaded" ⋮---- a = {"name": name, "size": size, "state": state, "url": f"https://api/{name}"} ⋮---- def release assets ⋮---- def sums pairs ⋮---- def evaluate rel, sums text, kw ⋮---- def test consistent release passes ⋮---- rel = release rep = evaluate rel, sums H LINUX, LINUX , H WIN, WIN ⋮---- def test linux only release passes ⋮---- rel = release asset "SHA256SUMS" , asset… 证据：`tools/tests/test_verify_release.py`
- **Server**（structured_config）：{ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", "name": "io.github.tiliondev/fortress", "description": "Stealth browser for AI agents: fetch pages behind Cloudflare/DataDome/CAPTCHA, extract clean data.", "version": "0.1.3", "repository": { "url": "https://github.com/tiliondev/fortress", "source": "github" }, "websiteUrl": "https://tilion.dev", "packages": { "registryType": "pypi", "registryBaseUrl": "https://pypi.org", "identifier": "tilion", "version": "0.1.3", "runtimeHint": "uvx", "transport": { "type": "stdio" }, "packageArguments": { "type": "positional", "value": "tilion-mcp", "valueHint": "console-script" } , "environmentVariables": { "na… 证据：`mcp/server.json`
- **https://editorconfig.org — consistent formatting across editors.**（source_file）：https://editorconfig.org — consistent formatting across editors. root = true 证据：`.editorconfig`
- **Normalize line endings so a Windows checkout can't corrupt the patch set.**（source_file）：Normalize line endings so a Windows checkout can't corrupt the patch set. git apply on patches/ .patch is whitespace-sensitive; CRLF creep silently breaks it. 证据：`.gitattributes`
- **Chromium build output — never committed lives in Releases / built locally**（source_file）：Chromium build output — never committed lives in Releases / built locally out/ src/ depot tools/ .tar.gz .deb .AppImage 证据：`.gitignore`
- **Hosts lychee should not check. One regex per line, matched against the whole URL.**（source_file）：Hosts lychee should not check. One regex per line, matched against the whole URL. Keep this list to genuinely-flaky or non-fetchable endpoints — real content links github.com, raw.githubusercontent.com, npm, pypi, detector sites stay checked so a moved file or renamed asset is caught. 证据：`.lycheeignore`
- **.Pre Commit Config**（source_file）：minimum pre commit version: "3.0.0" repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: - id: trailing-whitespace exclude: ^patches/ - id: end-of-file-fixer exclude: ^patches/ - id: check-yaml - id: check-json - id: check-merge-conflict - id: mixed-line-ending args: --fix=lf exclude: '\. cmd ps1 $' - repo: local hooks: - id: check-patches name: patch-set integrity linter entry: python tools/check patches.py language: system pass filenames: false files: ^patches/ 证据：`.pre-commit-config.yaml`
- **Chromium Version**（source_file）：151.0.7908.0 证据：`CHROMIUM_VERSION`
- **Fortress developer tasks. These wrap the scripts that already live in the repo;**（source_file）：Fortress developer tasks. These wrap the scripts that already live in the repo; nothing here compiles Chromium see docs/BUILD NATIVE.md for that . .DEFAULT GOAL := help PYTHON ?= python3 BUNDLE ?= dist/tilion-fortress 证据：`Makefile`
- **Notice**（source_file）：Fortress — third-party notices =============================== 证据：`NOTICE`
- **Scrape Demos**（source_file）：OUT = Path file .resolve .parent VIEWPORT = {"width": 1180, "height": 820} FPS = 9 ⋮---- FX SETUP = r""" ⋮---- class Cap ⋮---- def init self, pg, frames dir ⋮---- def fx self ⋮---- def frame self, state, reps=1 ⋮---- def pops self, base, box, reps= 0.34, 0.7, 1.0 ⋮---- b = dict box ; b "active" = True; b "pop" = pv ⋮---- def d paginated pg, cap ⋮---- total = 0 ⋮---- cnt = pg.evaluate " = document.querySelectorAll 'div.quote' .length" data = pg.evaluate """ = ...document.querySelectorAll 'div.quote' .slice 0,3 .map q= ⋮---- base = {"title": "paginated scrape", "status": f"page {page}/3 · {total+i+1} quotes", ⋮---- def d structured pg, cap ⋮---- books = pg.evaluate """ = ...document.querySele… 证据：`examples/scrape_demos.py`
- **Fortress**（source_file）：Fortress is an open-source stealth Chromium engine. It corrects the browser fingerprint canvas, WebGL, audio, fonts, navigator, and ~30 more surfaces in Chromium's C++ and exposes raw CDP on http://localhost:9222, so scrapers and browser agents pass bot detection. It is a drop-in for Playwright and Puppeteer: keep your automation code, point it at Fortress over CDP. 证据：`llms.txt`
- **Per-tool wall-clock cap: a hung nav/crawl must NOT wedge the shared browser it**（source_file）：READ = ToolAnnotations readOnlyHint=True, openWorldHint=True LOCAL = ToolAnnotations readOnlyHint=True, openWorldHint=False WRITE = ToolAnnotations readOnlyHint=False, openWorldHint=True DESTRUCTIVE = ToolAnnotations readOnlyHint=False, destructiveHint=True, openWorldHint=True ⋮---- def env name: str, default: str None = None - str None ⋮---- Per-tool wall-clock cap: a hung nav/crawl must NOT wedge the shared browser it holds a per-origin lock . On timeout the coroutine is cancelled unwinding the lock and a structured error is returned. Tune via env. TOOL TIMEOUT = float env "MCP TOOL TIMEOUT", "120" ⋮---- def safe fn ⋮---- @functools.wraps fn async def wrap args, kwargs ⋮---- except Except… 证据：`mcp/server.py`
- **Smithery**（source_file）：startCommand: type: stdio configSchema: type: object properties: prewarm: type: boolean default: true description: Boot the stealth browser at startup so the first tool call is instant. headless: type: boolean default: true description: Run the browser headless false shows a window . allowPrivateEgress: type: boolean default: false description: Allow tools to reach localhost / private IPs turns off the SSRF guard . required: commandFunction: config = { command: "tilion-mcp", args: , env: { TILION MCP PREWARM: config.prewarm === false ? "0" : "1", TILION MCP HEADLESS: config.headless === false ? "0" : "1", TILION ALLOW PRIVATE EGRESS: config.allowPrivateEgress ? "1" : "0" } } 证据：`mcp/smithery.yaml`
- **syntax=docker/dockerfile:1**（source_file）：syntax=docker/dockerfile:1 Fortress — stealth Chromium as a CDP endpoint. Works on any OS that runs Docker. Build from a dir containing the extracted tilion-fortress/ bundle + packaging/docker-entrypoint.sh : DOCKER BUILDKIT=1 docker build -f packaging/Dockerfile -t tilion/fortress:latest . Run: docker run --rm -p 9222:9222 tilion/fortress:latest - connect over cdp "http://localhost:9222" Size-optimized: ELF strip + locale trim in a throwaway prep stage the toolchain never ships , and COPY --chown at copy time so the bundle is stored ONCE. A chown -R RUN after a COPY rewrites every file's metadata and duplicates the whole bundle into a second layer. Stealth is byte-identical after strip — v… 证据：`packaging/Dockerfile`
- **Build Bundle**（source_file）：set -euo pipefail REPO="$ cd "$ dirname "${BASH SOURCE 0 }" /.." && pwd " SRC="${1:?out/Fortress dir}"; FONTS="${2:?fonts dir}"; DEST="${3:?dest dir}"; PLATFORM="${4:-linux-x64}" B="$DEST/tilion-fortress" rm -rf "$B"; mkdir -p "$B/fonts" RUNTIME= chrome chrome crashpad handler chrome 100 percent.pak chrome 200 percent.pak headless command resources.pak resources.pak icudtl.dat snapshot blob.bin v8 context snapshot.bin libEGL.so libGLESv2.so libvk swiftshader.so libVkICD mock icd.so libqt5 shim.so libqt6 shim.so libvulkan.so.1 vk swiftshader icd.json for f in "${RUNTIME @ }"; do -e "$SRC/$f" && cp -a "$SRC/$f" "$B/$f" done cp -a "$SRC/locales" "$B/locales" if command -v strip /dev/null 2 &1;… 证据：`packaging/build-bundle.sh`
- **Build Deb**（source_file）：set -euo pipefail REPO="$ cd "$ dirname "${BASH SOURCE 0 }" /.." && pwd " BUNDLE="${1:?path to an extracted tilion-fortress/ bundle}" VER="${2:?version, e.g. 151.0.7908.0}" DEST="${3:-$ pwd }" PKG="$DEST/tilion-fortress ${VER} amd64" rm -rf "$PKG"; mkdir -p "$PKG/opt/tilion" "$PKG/usr/bin" "$PKG/DEBIAN" cp -a "$BUNDLE/." "$PKG/opt/tilion/" ln -sf /opt/tilion/tilion "$PKG/usr/bin/tilion" INSTALLED KB=$ du -sk "$PKG/opt" cut -f1 cat "$PKG/DEBIAN/control" Installed-Size: $INSTALLED KB Depends: libnss3, libnspr4, libatk1.0-0, libatk-bridge2.0-0, libcups2, libdrm2, libxkbcommon0, libxcomposite1, libxdamage1, libxfixes3, libxrandr2, libgbm1, libpango-1.0-0, libcairo2, libasound2, libxshmfence1, l… 证据：`packaging/build-deb.sh`
- **Bundle Readme**（source_file）：Tilion Fortress - stealth Chromium 151 Linux x64 =================================================== 证据：`packaging/bundle-README.txt`
- **Docker Entrypoint**（source_file）：set -e INTERNAL=9223 EXTERNAL=9222 /opt/tilion/tilion \ --headless=new \ --no-sandbox \ --enable-unsafe-swiftshader \ --remote-debugging-port="$INTERNAL" \ --user-data-dir=/tmp/tilion-profile \ "$@" & CHROME PID=$! trap 'kill "$CHROME PID" 2 /dev/null true' TERM INT for in $ seq 1 80 ; do if exec 3< "/dev/tcp/127.0.0.1/$INTERNAL" 2 /dev/null; then exec 3 &-; break; fi sleep 0.5 done exec socat TCP-LISTEN:"$EXTERNAL",fork,reuseaddr TCP:127.0.0.1:"$INTERNAL" 证据：`packaging/docker-entrypoint.sh`
- **Fonts.Conf**（source_file）：@FONTDIR@ @CACHEDIR@ sans-serif Arial Segoe UI serif Times New Roman monospace Courier New Consolas Arial sans-serif emoji Segoe UI Emoji Liberation Sans uxr none Liberation Serif uxr none Liberation Mono uxr none Carlito uxr none Caladea uxr none 证据：`packaging/fonts.conf.template`
- **!/usr/bin/env bash**（source_file）：!/usr/bin/env bash Tilion Fortress launcher - runs the stealth Chromium with a coherent default Windows persona + bundled fonts. Override any --uxr- by passing your own. Env: TILION NO DEFAULTS=1 skip default persona TILION TZ / TILION LANG tweak set -e HERE="$ cd "$ dirname "$ readlink -f "${BASH SOURCE 0 }" " " && pwd " CACHE="${XDG CACHE HOME:-$HOME/.cache}/tilion"; mkdir -p "$CACHE/fc" CONF="$CACHE/fonts.conf" sed -e "s @FONTDIR@ $HERE/fonts g" -e "s @CACHEDIR@ $CACHE/fc g" "$HERE/fonts/fonts.conf.template" "$CONF" export FONTCONFIG FILE="$CONF" export VK ICD FILENAMES="$HERE/vk swiftshader icd.json" Set process TZ to the persona timezone so it is coherent from the FIRST tick the in-ren… 证据：`packaging/tilion`
- **Tilion**（source_file）：@echo off REM Tilion Fortress launcher Windows . Applies a coherent default Windows persona via REM --uxr- switches + enables WebGPU presence, then runs chrome.exe with all passthrough args. REM Windows uses system fonts which already match the spoofed OS , so no fontconfig bundle. REM Override: pass your own --uxr- flags, or set TILION NO DEFAULTS=1 for a bare launch. setlocal set HERE=%~dp0 set VK ICD FILENAMES=%HERE%vk swiftshader icd.json set DEF= if not defined TILION NO DEFAULTS set DEF=^ --uxr-platform=Win32 --uxr-ua-platform=Windows "--uxr-ua-os=Windows NT 10.0; Win64; x64"^ --uxr-ua-arch=x86 --uxr-ua-bitness=64 --uxr-ua-platform-version=15.0.0 "--uxr-ua-brand=Google Chrome"^ --uxr-… 证据：`packaging/tilion.cmd`
- **0002 Base Uxr Config Cc**（source_file）：diff --git a/base/uxr config.cc b/base/uxr config.cc new file mode 100644 index 0000000000..cac1a6896b --- /dev/null +++ b/base/uxr config.cc @@ -0,0 +1,43 @@ +// Copyright 2026. + include "base/uxr config.h" + + include "base/no destructor.h" + include "base/strings/string number conversions.h" + +namespace base { + +UxrConfig::UxrConfig = default; +UxrConfig::~UxrConfig = default; + +// static +UxrConfig& UxrConfig::GetInstance { + static NoDestructor instance; + return instance; +} + +void UxrConfig::SetAll const flat map & cfg { + AutoLock locker lock ; + map = cfg; +} + +bool UxrConfig::Has const std::string& key const { + AutoLock locker lock ; + return map .contains key ; +} + +std::… 证据：`patches/0002-base-uxr_config-cc.patch`
- **0003 Base Uxr Config H**（source_file）：diff --git a/base/uxr config.h b/base/uxr config.h new file mode 100644 index 0000000000..6eead77d0f --- /dev/null +++ b/base/uxr config.h @@ -0,0 +1,46 @@ +// Copyright 2026. Process-global persona config delivered to the renderer over +// IPC NOT the command line so persona values + seeds never appear in the +// renderer's /proc/cmdline. Populated once at renderer init; read-only after. + ifndef BASE UXR CONFIG H + define BASE UXR CONFIG H + + include + include + + include "base/base export.h" + include "base/containers/flat map.h" + include "base/synchronization/lock.h" + +namespace base { + +template +class NoDestructor; + +class BASE EXPORT UxrConfig { + public: + static UxrConfig& Get… 证据：`patches/0003-base-uxr_config-h.patch`
- **if BUILDFLAG IS ANDROID BUILDFLAG IS IOS**（source_file）：diff --git a/components/embedder support/user agent utils.cc b/components/embedder support/user agent utils.cc index 608bea5cb3..3f0bf7c03f 100644 --- a/components/embedder support/user agent utils.cc +++ b/components/embedder support/user agent utils.cc @@ -215,9 +215,9 @@ const blink::UserAgentBrandList GetUserAgentBrandFullVersionListInternal // depending on the Reduce User-Agent reduction phase features. std::string GetUserAgentInternal { std::string product = GetProductAndVersion ; - if base::CommandLine::ForCurrentProcess - HasSwitch kHeadless { - product.insert 0, "Headless" ; - } + // FORTRESS patch 2: never prepend "Headless" to the product. Under --headless the + // stock code mak… 证据：`patches/0004-components-embedder_support-user_agent_utils-cc.patch`
- 其余 18 条证据见 `AI_CONTEXT_PACK.json` 或 `EVIDENCE_INDEX.json`。

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

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

- **Fortress 概览与核心能力**：importance `high`
  - source_paths: README.md, CHROMIUM_VERSION, AGENTS.md, docs/PERSONA_ENGINE.md, docs/GAUNTLET_RESULTS.md
- **C++ 补丁系统与隐身表面**：importance `high`
  - source_paths: patches/README.md, patches/series, patches/0001-base-BUILD-gn.patch, patches/0011-third_party-blink-renderer-core-execution_context-navigator_base-cc.patch, patches/0020-third_party-blink-renderer-modules-canvas-canvas2d-base_rendering_context_2d-cc.patch
- **Python/Node SDK 与 MCP 服务器**：importance `high`
  - source_paths: sdk/python/tilion_fortress/__init__.py, sdk/python/tilion_fortress/__main__.py, sdk/python/pyproject.toml, sdk/python/README.md, sdk/node/index.js
- **工具、验证、打包与发行流程**：importance `high`
  - source_paths: tools/gauntlet.py, tools/verify_release.py, tools/check_patches.py, docs/gauntlet-sample.json, docs/GAUNTLET_RESULTS.md

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

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `8602b222934b8289b8987c35520a58afb0251f1a`
- inspected_files: `README.md`, `docs/BENCHMARK.md`, `docs/BUILD_NATIVE.md`, `docs/GAUNTLET_RESULTS.md`, `docs/PERSONA_ENGINE.md`, `docs/gauntlet-sample.json`, `examples/README.md`, `examples/scrape_demos.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: 来源证据：bug: SIGTRAP on startup on Intel Xeon E5-2640 (Sandy Bridge-E); prebuilt Linux binary appears to require CPU features n…

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：bug: SIGTRAP on startup on Intel Xeon E5-2640 (Sandy Bridge-E); prebuilt Linux binary appears to require CPU features not present on older hardware
- Why it matters: 可能阻塞安装或首次运行。
- Evidence: community_evidence:github | https://github.com/tiliondev/fortress/issues/20 | 来源讨论提到 python 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 2: 来源证据：ci: add a markdown link + badge checker for README and docs/

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：ci: add a markdown link + badge checker for README and docs/
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/tiliondev/fortress/issues/13 | 来源讨论提到 docker 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 3: 来源证据：feat(tools): add --json output and expand invariant coverage in gauntlet.py

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：feat(tools): add --json output and expand invariant coverage in gauntlet.py
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/tiliondev/fortress/issues/12 | 来源讨论提到 windows 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 4: 来源证据：feat(tools): add verify_release.py to validate release assets + SHA256SUMS

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：feat(tools): add verify_release.py to validate release assets + SHA256SUMS
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/tiliondev/fortress/issues/14 | 来源讨论提到 python 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 5: 来源证据：test(sdk/node): add unit tests for the Node SDK (mirror the Python suite)

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：test(sdk/node): add unit tests for the Node SDK (mirror the Python suite)
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/tiliondev/fortress/issues/10 | 来源讨论提到 python 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 6: 来源证据：README: Star History chart at the end isn't showing

- Trigger: GitHub 社区证据显示该项目存在一个能力理解相关的待验证问题：README: Star History chart at the end isn't showing
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/tiliondev/fortress/issues/3 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

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

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

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

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

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

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

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