# kestra - Doramagic AI Context Pack

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

## 充分原则

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

## 给宿主 AI 的使用方式

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

## Claim 消费规则

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

## 它最适合谁

- **想在安装前理解开源项目价值和边界的用户**：当前证据主要来自项目文档。 证据：`README.md` Claim：`clm_0002` supported 0.86

## 它能做什么

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

## 怎么开始

- `npx --yes @kestra-io/kestra-devtools generateTestReportSummary --only-errors $(pwd)` 证据：`AGENTS.md` Claim：`clm_0003` supported 0.86

## 继续前判断卡

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

### 30 秒判断

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

### 现在可以相信

- **适合人群线索：想在安装前理解开源项目价值和边界的用户**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`README.md` Claim：`clm_0002` supported 0.86
- **能力存在：命令行启动或安装流程**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`AGENTS.md` Claim：`clm_0001` supported 0.86
- **存在 Quick Start / 安装命令线索**（supported）：可以相信项目文档出现过启动或安装入口；不要因此直接在主力环境运行。 证据：`AGENTS.md` Claim：`clm_0003` 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`, `CLAUDE.md`
- **可安全回滚不能默认相信。**（unverified）：除非项目明确提供卸载和恢复说明，否则必须先在隔离环境验证。
- **真实安装后是否与用户当前宿主 AI 版本兼容？**（unverified）：兼容性只能通过实际宿主环境验证。
- **项目输出质量是否满足用户具体任务？**（unverified）：安装前预览只能展示流程和边界，不能替代真实评测。
- **安装命令是否需要网络、权限或全局写入？**（unverified）：这影响企业环境和个人环境的安装风险。 证据：`AGENTS.md`

### 继续会触碰什么

- **命令执行**：包管理器、网络下载、本地插件目录、项目配置或用户主目录。 原因：运行第一条命令就可能产生环境改动；必须先判断是否值得跑。 证据：`AGENTS.md`
- **宿主 AI 配置**：Claude/Codex/Cursor/Gemini/OpenCode 等宿主的 plugin、Skill 或规则加载配置。 原因：宿主配置会改变 AI 后续工作方式，可能和用户已有规则冲突。 证据：`AGENTS.md`, `CLAUDE.md`
- **本地环境或项目文件**：安装结果、插件缓存、项目配置或本地依赖目录。 原因：安装前无法证明写入范围和回滚方式，需要隔离验证。 证据：`AGENTS.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_0004` inferred 0.45
- **命令执行会修改本地环境**：安装命令可能写入用户主目录、宿主插件目录或项目配置。 处理方式：先在隔离环境或测试账号中运行。 证据：`AGENTS.md` Claim：`clm_0005` 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。

### 任务路由

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

### 上下文规模

- 文件总数：4194
- 重要文件覆盖：40/4194
- 证据索引条目：77
- 角色 / Skill 条目：16

### 证据不足时的处理

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

## Prompt Recipes

### 适配判断

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

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

### 安装前体验

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

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

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

## 角色 / Skill 索引

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

- **Kestra Devcontainer**（project_doc）：This devcontainer provides a quick and easy setup for anyone using VSCode to get up and running quickly with this project to start development on either the frontend or backend. It bootstraps a docker container for you to develop inside of without the need to manually setup the environment. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`.devcontainer/README.md`
- **🌟 What is Kestra?**（project_doc）：Open-source orchestration platform for data, AI, and infrastructure workflows 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`README.md`
- **JMH-Benchmarks module**（project_doc）：This module contains benchmarks written using JMH from OpenJDK. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`jmh-benchmarks/README.md`
- **Kestra UI**（project_doc）：Kestra UI is running using Vite https://vite.dev/ . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`ui/README.md`
- **kestra-starter**（project_doc）：Event-Driven Declarative Orchestrator 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`charts/kestra-starter/README.md`
- **kestra**（project_doc）：Event-Driven Declarative Orchestrator 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`charts/kestra/README.md`
- **Guide on How to Handle the NoCode Editor**（project_doc）：Guide on How to Handle the NoCode Editor 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`ui/src/components/no-code/README.md`
- **End-to-End Testing with Playwright**（project_doc）：This directory contains end-to-end E2E tests for the Kestra UI, built using Playwright https://playwright.dev/ . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`ui/tests/e2e/ReadMe.md`
- **Coding Agent Guidelines for Kestra Open Source Edition**（project_doc）：Coding Agent Guidelines for Kestra Open Source Edition 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`AGENTS.md`
- **Claude**（project_doc）： 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`CLAUDE.md`
- **UI Design System Guidelines**（project_doc）：Scope: this file applies to everything under ui/ . AI coding agents Claude Code, Cursor, etc. load this file automatically when working in this directory; humans should treat it as the source of truth for frontend conventions in Kestra. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`ui/AGENTS.md`
- **Metrics Guidelines**（project_doc）：Conventions for adding or changing metrics that are exposed to Prometheus. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/architecture/METRICS_GUIDELINES.md`
- **Flow properties**（project_doc）：Kestra lets you define and automate flows using simple YAML syntax. Each flow requires an id , namespace , and tasks . Other fields like triggers , labels , inputs , and more are optional. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`ui/src/assets/docs/basic.md`
- **Custom Dashboards as Code**（project_doc）：Build custom dashboards to track workflow executions , logs and metrics filtered by specific namespaces or labels and showing data you care about. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`ui/src/assets/docs/dashboard_home.md`
- **Security Policy**（project_doc）：We provide security updates for the following versions of Kestra: 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`SECURITY.md`
- **Getting Started**（project_doc）：The Embedded Code Editor lets you easily add custom scripts, queries, and configuration files along with your flow YAML configuration files. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`webserver/src/main/resources/static/getting-started.md`

## 证据索引

- 共索引 77 条证据。

- **Kestra Devcontainer**（documentation）：This devcontainer provides a quick and easy setup for anyone using VSCode to get up and running quickly with this project to start development on either the frontend or backend. It bootstraps a docker container for you to develop inside of without the need to manually setup the environment. 证据：`.devcontainer/README.md`
- **🌟 What is Kestra?**（documentation）：Open-source orchestration platform for data, AI, and infrastructure workflows 证据：`README.md`
- **JMH-Benchmarks module**（documentation）：This module contains benchmarks written using JMH from OpenJDK. 证据：`jmh-benchmarks/README.md`
- **Kestra UI**（documentation）：Kestra UI is running using Vite https://vite.dev/ . 证据：`ui/README.md`
- **kestra-starter**（documentation）：Event-Driven Declarative Orchestrator 证据：`charts/kestra-starter/README.md`
- **kestra**（documentation）：Event-Driven Declarative Orchestrator 证据：`charts/kestra/README.md`
- **Guide on How to Handle the NoCode Editor**（documentation）：Guide on How to Handle the NoCode Editor 证据：`ui/src/components/no-code/README.md`
- **Package**（package_manifest）：{ "name": "kestra", "version": "0.0.0", "private": true, "type": "module", "packageManager": "npm@10.9.0", "workspaces": "packages/ " , "scripts": { "dev": "vite --host", "build": "vite build --emptyOutDir", "build:design": "npm run build --workspace=@kestra-io/design-system", "build:topology": "npm run build --workspace=@kestra-io/topology", "preview": "vite preview", "check:types": "vue-tsc --build packages/design-system/tsconfig.app.json && echo \"design-system compiled\" \\\n && vue-tsc --build tsconfig.app.json && echo \"app checked\" \\\n && vue-tsc --project tsconfig.test.json && echo \"test checked\"", "test:lint": "oxlint src packages && eslint", "test:all": "vitest run --coverage"… 证据：`ui/package.json`
- **Package**（package_manifest）：{ "name": "@kestra-io/design-system", "version": "0.0.0-dev", "description": "Kestra UI Design System – component abstractions over Element Plus", "type": "module", "homepage": "https://github.com/kestra-io/kestra readme", "repository": { "type": "git", "url": "git+https://github.com/kestra-io/kestra.git" }, "bugs": { "url": "https://github.com/kestra-io/kestra/issues" }, "exports": { ".": "./src/index.ts", "./components/ ": "./src/components/ ", "./src/assets/styles/ ": "./src/assets/styles/ ", "./package.json": "./package.json" }, "files": "dist" , "publishConfig": { "access": "public" }, "scripts": { "build": "tsdown", "dev": "tsdown --watch", "play": "vite", "typecheck": "vue-tsc --noEm… 证据：`ui/packages/design-system/package.json`
- **Package**（package_manifest）：{ "name": "@kestra-io/slot-contracts", "version": "0.0.0-dev", "description": "Kestra slot prop contracts – shared type definitions for federated plugin UI slots", "type": "module", "private": true, "homepage": "https://github.com/kestra-io/kestra readme", "repository": { "type": "git", "url": "git+https://github.com/kestra-io/kestra.git" }, "bugs": { "url": "https://github.com/kestra-io/kestra/issues" }, "exports": { ".": "./src/index.ts" }, "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": "dist" , "scripts": { "build": "tsdown", "dev": "tsdown --watch", "typecheck": "vue-tsc --noEmit", "prepublishOnly": "npm run build" }, "peerDependencies": { "@kestra-io/kestra-sdk": " "… 证据：`ui/packages/slot-contracts/package.json`
- **Package**（package_manifest）：{ "name": "@kestra-io/topology", "version": "0.0.0-dev", "description": "Kestra flow topology graph component – powered by Vue Flow", "type": "module", "homepage": "https://github.com/kestra-io/kestra readme", "repository": { "type": "git", "url": "git+https://github.com/kestra-io/kestra.git" }, "bugs": { "url": "https://github.com/kestra-io/kestra/issues" }, "exports": { ".": "./src/index.ts", "./vue-flow-utils": "./src/vue-flow-utils.ts" }, "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": "dist" , "sideEffects": " / .css", " / .scss", "./dist/style.css", "./src/index.ts" , "publishConfig": { "access": "public" }, "scripts": { "build": "tsdown", "dev": "tsdown --watch", "t… 证据：`ui/packages/topology/package.json`
- **End-to-End Testing with Playwright**（documentation）：This directory contains end-to-end E2E tests for the Kestra UI, built using Playwright https://playwright.dev/ . 证据：`ui/tests/e2e/ReadMe.md`
- **Coding Agent Guidelines for Kestra Open Source Edition**（documentation）：Coding Agent Guidelines for Kestra Open Source Edition 证据：`AGENTS.md`
- **Claude**（documentation）：@AGENTS.md 证据：`CLAUDE.md`
- **UI Design System Guidelines**（documentation）：Scope: this file applies to everything under ui/ . AI coding agents Claude Code, Cursor, etc. load this file automatically when working in this directory; humans should treat it as the source of truth for frontend conventions in Kestra. 证据：`ui/AGENTS.md`
- **License**（source_file）：Apache License Version 2.0, January 2004 https://www.apache.org/licenses/ 证据：`LICENSE`
- **License**（source_file）：Apache License Version 2.0, January 2004 https://www.apache.org/licenses/ 证据：`charts/kestra-starter/LICENSE`
- **License**（source_file）：Apache License Version 2.0, January 2004 https://www.apache.org/licenses/ 证据：`charts/kestra/LICENSE`
- **Metrics Guidelines**（documentation）：Conventions for adding or changing metrics that are exposed to Prometheus. 证据：`docs/architecture/METRICS_GUIDELINES.md`
- **Flow properties**（documentation）：Kestra lets you define and automate flows using simple YAML syntax. Each flow requires an id , namespace , and tasks . Other fields like triggers , labels , inputs , and more are optional. 证据：`ui/src/assets/docs/basic.md`
- **Custom Dashboards as Code**（documentation）：Build custom dashboards to track workflow executions , logs and metrics filtered by specific namespaces or labels and showing data you care about. 证据：`ui/src/assets/docs/dashboard_home.md`
- **Tsconfig**（structured_config）：{ "compilerOptions": { "target": "esnext", "lib": "es2023", "DOM", "DOM.Iterable" , "moduleDetection": "force", "module": "preserve", "moduleResolution": "bundler", "resolveJsonModule": true, "types": "node" , "strict": true, "noUnusedLocals": true, "declaration": true, "emitDeclarationOnly": true, "esModuleInterop": true, "isolatedModules": true, "verbatimModuleSyntax": true, "skipLibCheck": true, "allowImportingTsExtensions": true }, "include": "src", "tsdown.config.ts" } 证据：`ui/packages/topology/tsconfig.json`
- **Installing the Chart**（source_file）：Event-Driven Declarative Orchestrator 证据：`charts/kestra-starter/README.md.gotmpl`
- **Installing the Chart**（source_file）：Event-Driven Declarative Orchestrator 证据：`charts/kestra/README.md.gotmpl`
- **Abstractcommand**（source_file）：public abstract class AbstractCommand extends BaseCommand implements Callable { ⋮---- private Path config = Paths.get System.getProperty "user.home" , ".kestra/config.yml" ; ⋮---- protected Path pluginsPath = Optional.ofNullable System.getenv "KESTRA PLUGINS PATH" .map Paths::get .orElse null ; ⋮---- public static Map propertiesOverrides { MigrationRunner.setSkipAutoRun true ; return Map.of ; ⋮---- public Integer call throws Exception { Thread.currentThread .setName this.getClass .getDeclaredAnnotation Command.class .name ; initLogger ; sendServerLog ; maybeInitPlugins ; ⋮---- this.startupHook.start this ; ⋮---- maybeStartWebserver ; ⋮---- protected void maybeInitPlugins { if pluginRegistry… 证据：`cli/src/main/java/io/kestra/cli/AbstractCommand.java`
- **Kestra**（source_file）：public class Kestra implements Callable { public static void main String args { System.exit runCli args ; ⋮---- public static int runCli String args, String... extraEnvironments { return runCli Kestra.class, args, extraEnvironments ; ⋮---- public static int runCli Class cls, String args, String... extraEnvironments { ServiceLoader environmentProviders = ServiceLoader.load EnvironmentProvider.class ; String baseEnvironments = environmentProviders.findFirst .map EnvironmentProvider::getCliEnvironments .orElseGet - new String 0 ; return execute ⋮---- Stream.concat Arrays.stream baseEnvironments , Arrays.stream extraEnvironments .toArray String ::new , ⋮---- public Integer call throws Exception… 证据：`cli/src/main/java/io/kestra/cli/Kestra.java`
- **Pluginsearchcommand**（source_file）：public class PluginSearchCommand extends AbstractCommand { ⋮---- private static final ObjectMapper MAPPER = new ObjectMapper ; ⋮---- public Integer call throws Exception { super.call ; ⋮---- JsonNode root = fetchPlugins ; List plugins = findPlugins root ; printResults plugins ; ⋮---- stdOut "Error processing plugins: {0}", e.getMessage ; ⋮---- private JsonNode fetchPlugins throws Exception { String response = httpClient.toBlocking .retrieve HttpRequest.GET "/v1/plugins" .header "Accept", "application/json" ⋮---- return MAPPER.readTree response ; ⋮---- private List findPlugins JsonNode root { String searchTermLower = searchTerm.toLowerCase ; ⋮---- if matchesSearch plugin, searchTermLower { p… 证据：`cli/src/main/java/io/kestra/cli/commands/plugins/PluginSearchCommand.java`
- **Abstractservercommand**（source_file）：public abstract class AbstractServerCommand extends AbstractCommand implements ServerCommandInterface { ⋮---- public static Map propertiesOverrides { return Map.of ; ⋮---- public Integer call throws Exception { log.info "Machine information: {} available cpu s , {}MB max memory, Java version {}", Runtime.getRuntime .availableProcessors , maxMemoryInMB , Runtime.version ; this.shutdownHook true, - KestraContext.getContext .shutdown ; return super.call ; ⋮---- private long maxMemoryInMB { return Runtime.getRuntime .maxMemory / 1024 / 1024; 证据：`cli/src/main/java/io/kestra/cli/commands/servers/AbstractServerCommand.java`
- **Reindexcommand**（source_file）：public class ReindexCommand extends AbstractCommand { ⋮---- public Integer call throws Exception { super.call ; if "flow".equals type { FlowRepositoryInterface flowRepository = applicationContext.getBean FlowRepositoryInterface.class ; FlowService flowService = applicationContext.getBean FlowService.class ; List allFlow = flowRepository.findAllForAllTenants ; allFlow.stream .map flow - flowRepository.findByIdWithSource flow.getTenantId , flow.getNamespace , flow.getId .orElse null .filter Objects::nonNull .forEach throwConsumer flow - flowService.update GenericFlow.of flow , flow ; stdOut "Successfully reindex " + allFlow.size + " flow s ." ; ⋮---- throw new IllegalArgumentException "Reinde… 证据：`cli/src/main/java/io/kestra/cli/commands/sys/ReindexCommand.java`
- **Syscommand**（source_file）：public class SysCommand extends AbstractCommand { ⋮---- public Integer call throws Exception { super.call ; return Kestra.runCli new String { "sys", "--help" } ; 证据：`cli/src/main/java/io/kestra/cli/commands/sys/SysCommand.java`
- **H2Dashboardrepository**（source_file）：public class H2DashboardRepository extends AbstractJdbcDashboardRepository { ⋮---- protected Condition findCondition String query { return H2DashboardRepositoryService.findCondition this.jdbcRepository, query ; 证据：`jdbc-h2/src/main/java/io/kestra/repository/h2/H2DashboardRepository.java`
- **H2Executionrepository**（source_file）：public class H2ExecutionRepository extends AbstractJdbcExecutionRepository { ⋮---- protected Condition findCondition String query, Map labels { return H2ExecutionRepositoryService.findCondition this.jdbcRepository, query, labels ; ⋮---- public Condition findLabelCondition Either , String input, QueryFilter.Op operation { return H2ExecutionRepositoryService.findLabelCondition input, operation ; ⋮---- protected Field formatDateField String dateField, DateUtils.GroupType groupType { return H2RepositoryUtils.formatDateField dateField, groupType ; 证据：`jdbc-h2/src/main/java/io/kestra/repository/h2/H2ExecutionRepository.java`
- **H2Logrepository**（source_file）：public class H2LogRepository extends AbstractJdbcLogRepository { ⋮---- protected Condition findCondition String query { return this.jdbcRepository.fullTextCondition List.of "fulltext" , query ; ⋮---- protected Field formatDateField String dateField, DateUtils.GroupType groupType { return H2RepositoryUtils.formatDateField dateField, groupType ; 证据：`jdbc-h2/src/main/java/io/kestra/repository/h2/H2LogRepository.java`
- **H2Metricrepository**（source_file）：public class H2MetricRepository extends AbstractJdbcMetricRepository { ⋮---- protected Field formatDateField String dateField, DateUtils.GroupType groupType { return H2RepositoryUtils.formatDateField dateField, groupType ; 证据：`jdbc-h2/src/main/java/io/kestra/repository/h2/H2MetricRepository.java`
- **H2Triggerrepository**（source_file）：public class H2TriggerRepository extends AbstractJdbcTriggerRepository { ⋮---- protected Field formatDateField String dateField, DateUtils.GroupType groupType { return H2RepositoryUtils.formatDateField dateField, groupType ; 证据：`jdbc-h2/src/main/java/io/kestra/repository/h2/H2TriggerRepository.java`
- **Mysqldashboardrepository**（source_file）：public class MysqlDashboardRepository extends AbstractJdbcDashboardRepository { ⋮---- protected Condition findCondition String query { return MysqlDashboardRepositoryService.findCondition this.jdbcRepository, query ; 证据：`jdbc-mysql/src/main/java/io/kestra/repository/mysql/MysqlDashboardRepository.java`
- **Mysqlexecutionrepository**（source_file）：public class MysqlExecutionRepository extends AbstractJdbcExecutionRepository { ⋮---- protected Condition findCondition String query, Map labels { return MysqlExecutionRepositoryService.findCondition this.jdbcRepository, query, labels ; ⋮---- public Condition findLabelCondition Either , String input, QueryFilter.Op operation { return MysqlExecutionRepositoryService.findLabelCondition input, operation ; ⋮---- protected Field weekFromTimestamp Field timestampField { return this.jdbcRepository.weekFromTimestamp timestampField ; ⋮---- protected Field formatDateField String dateField, DateUtils.GroupType groupType { return MysqlRepositoryUtils.formatDateField dateField, groupType ; 证据：`jdbc-mysql/src/main/java/io/kestra/repository/mysql/MysqlExecutionRepository.java`
- **Mysqlflowtopologyrepository**（source_file）：public class MysqlFlowTopologyRepository extends AbstractJdbcFlowTopologyRepository { ⋮---- protected DMLQuery buildMergeStatement DSLContext context, FlowTopology flowTopology { return context.insertInto this.jdbcRepository.getTable .set AbstractJdbcRepository.field "key" , this.jdbcRepository.key flowTopology .set this.jdbcRepository.persistFields flowTopology .onDuplicateKeyUpdate .set this.jdbcRepository.persistFields flowTopology ; 证据：`jdbc-mysql/src/main/java/io/kestra/repository/mysql/MysqlFlowTopologyRepository.java`
- **Mysqllogrepository**（source_file）：public class MysqlLogRepository extends AbstractJdbcLogRepository { ⋮---- protected Condition findCondition String query { return this.jdbcRepository.fullTextCondition Arrays.asList "namespace", "flow id", "task id", "execution id", "taskrun id", "trigger id", "message", "thread" , ⋮---- protected Field formatDateField String dateField, DateUtils.GroupType groupType { return MysqlRepositoryUtils.formatDateField dateField, groupType ; 证据：`jdbc-mysql/src/main/java/io/kestra/repository/mysql/MysqlLogRepository.java`
- **Postgresflowtopologyrepository**（source_file）：public class PostgresFlowTopologyRepository extends AbstractJdbcFlowTopologyRepository { ⋮---- protected DMLQuery buildMergeStatement DSLContext context, FlowTopology flowTopology { return context.insertInto this.jdbcRepository.getTable .set AbstractJdbcRepository.field "key" , this.jdbcRepository.key flowTopology .set this.jdbcRepository.persistFields flowTopology .onConflict AbstractJdbcRepository.field "key" .doUpdate .set this.jdbcRepository.persistFields flowTopology ; 证据：`jdbc-postgres/src/main/java/io/kestra/repository/postgres/PostgresFlowTopologyRepository.java`
- **ui/packages/topology/.gitignore**（source_file）：dist/ node modules/ 证据：`ui/packages/topology/.gitignore`
- **Topology**（source_file）：0" :content="$t 'expand all' " placement="top" Export as .JPEG Export as .PNG ⋮---- ⋮---- ⋮---- ⋮---- import {computed, nextTick, onMounted, provide, ref, watch} from "vue" import {useVueFlow, VueFlow, Panel} from "@vue-flow/core" import type {XYPosition} from "@vue-flow/core" import {ControlButton, Controls} from "@vue-flow/controls" import {Background} from "@vue-flow/background" import ClusterNode from "./nodes/ClusterNode.vue" import DotNode from "./nodes/DotNode.vue" import EdgeNode from "./nodes/EdgeNode.vue" import TaskNode from "./nodes/TaskNode.vue" import TriggerNode from "./nodes/TriggerNode.vue" import CollapsedClusterNode from "./nodes/CollapsedClusterNode.vue" import Plus from… 证据：`ui/packages/topology/src/Topology.vue`
- **Rotatingdots**（source_file）：import DotsCircleIcon from "vue-material-design-icons/DotsCircle.vue" defineProps .loading-dots-circle { animation: rotate 2s linear infinite; } @keyframes rotate { from { transform: rotate 0deg ; } to { transform: rotate 360deg ; } } 证据：`ui/packages/topology/src/assets/icons/RotatingDots.vue`
- **Taskicon**（source_file）：import {computed} from "vue" import {KsTooltip as Tooltip, cssVar} from "@kestra-io/design-system" defineOptions {name: "TaskIcon"} const props = defineProps ; onlyIcon?: boolean; variable?: string; } const backgroundImage = computed = data:image/svg+xml;base64,${imageBase64.value} const classes = computed = { "ks-task-icon--flowable": icon.value && "flowable" in icon.value ? icon.value.flowable : false, } const styles = computed = {backgroundImage: url ${backgroundImage.value} } const imageBase64 = computed = { let localIcon = icon.value?.icon ? window.atob icon.value.icon : undefined if !localIcon { localIcon = " " + " " + " " } let color = cssVar "--ks-text-primary" if props.variable { c… 证据：`ui/packages/topology/src/components/TaskIcon.vue`
- **Usescreenshot**（source_file）：import {ref} from "vue" import type {Ref} from "vue" import {toJpeg as ElToJpg, toPng as ElToPng} from "html-to-image" import type {Options as HTMLToImageOptions} from "html-to-image/es/types" type ImageType = "jpeg" "png"; interface UseScreenshotOptions extends HTMLToImageOptions { type?: ImageType; fileName?: string; shouldDownload?: boolean; } type CaptureScreenshot = el: HTMLElement, options?: UseScreenshotOptions = Promise ; type Download = fileName: string = void; interface UseScreenshot { capture: CaptureScreenshot; download: Download; dataUrl: Ref ; error: Ref; } export function useScreenshot : UseScreenshot ⋮---- async function capture el: HTMLElement, options: UseScreenshotOptions… 证据：`ui/packages/topology/src/composables/useScreenshot.ts`
- **Env.D**（source_file）：import type {DefineComponent} from "vue" 证据：`ui/packages/topology/src/env.d.ts`
- **Injectionkeys**（source_file）：import type {ComputedRef, InjectionKey, Ref} from "vue" 证据：`ui/packages/topology/src/injectionKeys.ts`
- **Duration**（source_file）：{{ history.state }}: {{ Utils.dateFilter history.date.toISOString , "iso" }} ⋮---- {{ history.state }}: {{ Utils.dateFilter history.date.toISOString , "iso" }} ⋮---- {{ history.state }}: {{ Utils.dateFilter history.date.toISOString , "iso" }} ⋮---- ⋮---- import {computed, onBeforeUnmount, onMounted, ref, watch} from "vue" import moment, {type Moment} from "moment" import {State, KsTooltip} from "@kestra-io/design-system" import as Utils from "../utils/utils" const props = withDefaults defineProps , { histories: undefined, interval: 100, } const normalizedHistories = computed = props.histories ?? .map h = { date: moment h.date , state: h.state, } , watch normalizedHistories, newValue, oldVal… 证据：`ui/packages/topology/src/misc/Duration.vue`
- **Basicnode**（source_file）：{{ displayTitle }} ⋮---- {{ displayTitle }} ⋮---- import {computed, inject} from "vue" import TaskIcon from "../components/TaskIcon.vue" import {KsTooltip} from "@kestra-io/design-system" import {EVENTS} from "../utils/constants" import {getStatusStyle} from "../utils/status" import {EXECUTION INJECTION KEY} from "../injectionKeys" import as Utils from "../utils/utils" const emit = defineEmits EVENTS.EXPAND, EVENTS.OPEN LINK, EVENTS.SHOW LOGS, EVENTS.MOUSE OVER, EVENTS.MOUSE LEAVE, EVENTS.ADD ERROR, EVENTS.EDIT, EVENTS.DELETE, EVENTS.ADD TASK, EVENTS.SHOW DESCRIPTION, defineOptions { name: "BasicNode", inheritAttrs: false, } const props = defineProps ; } function mouseover { emit EVENTS.MOU… 证据：`ui/packages/topology/src/nodes/BasicNode.vue`
- **Clusternode**（source_file）：{{ clusterName }} ⋮---- {{ clusterName }} ⋮---- import {computed} from "vue" import UnfoldLessHorizontal from "vue-material-design-icons/UnfoldLessHorizontal.vue" import {KsTooltip} from "@kestra-io/design-system" import {EVENTS, CLUSTER TAG STATUS} from "../utils/constants" import as Utils from "../utils/utils" defineOptions {inheritAttrs: false} const props = defineProps const badgeStyle = computed = { const status = CLUSTER TAG STATUS props.data.color ?? "info" return { backgroundColor: color-mix in srgb, var --ks-status-${status} 10%, var --ks-bg-badge , color: var --ks-status-${status} , } } const emit = defineEmits EVENTS.COLLAPSE const collapse = = emit EVENTS.COLLAPSE, props.id cons… 证据：`ui/packages/topology/src/nodes/ClusterNode.vue`
- **Collapsedclusternode**（source_file）：{{ Utils.afterLastDot id ?? "" }} ⋮---- {{ Utils.afterLastDot id ?? "" }} ⋮---- import {computed} from "vue" import {Handle, Position} from "@vue-flow/core" import UnfoldMoreHorizontal from "vue-material-design-icons/UnfoldMoreHorizontal.vue" import {KsTooltip} from "@kestra-io/design-system" import {EVENTS, CLUSTER TAG STATUS} from "../utils/constants" import as Utils from "../utils/utils" defineOptions {inheritAttrs: false} const {id, sourcePosition, targetPosition, data} = defineProps const emit = defineEmits EVENTS.EXPAND const expandable = computed = data?.expandable false const badgeStyle = computed = { const status = CLUSTER TAG STATUS data.color ?? "info" return { backgroundColor: c… 证据：`ui/packages/topology/src/nodes/CollapsedClusterNode.vue`
- **Dotnode**（source_file）：import {computed} from "vue" import {Handle, Position} from "@vue-flow/core" import CircleIcon from "vue-material-design-icons/Circle.vue" import as Utils from "../utils/utils" defineOptions {name: "Dot", inheritAttrs: false} const {data, sourcePosition, targetPosition} = defineProps const classes = computed = { "unused-path": data.unused, Utils.afterLastDot data.node.type as string : true, } .custom-handle { visibility: hidden; } .dot { display: flex; flex-direction: column; align-items: center; font-size: 5px; color: var --ks-topology-dash ; } 证据：`ui/packages/topology/src/nodes/DotNode.vue`
- **Edgenode**（source_file）：import {computed} from "vue" import type {PropType} from "vue" import {getSmoothStepPath} from "@vue-flow/core" const props = defineProps { id: {type: String, default: undefined}, data: {type: Object as PropType , default: undefined}, sourceX: {type: Number, default: undefined}, sourceY: {type: Number, default: undefined}, targetX: {type: Number, default: undefined}, targetY: {type: Number, default: undefined}, markerEnd: {type: String, default: undefined}, sourcePosition: {type: String, default: undefined}, targetPosition: {type: String, default: undefined}, } const classes = computed = { return props.data ? { "vue-flow edge-path": true, "stroke-" + props.data.color : props.data.color, "un… 证据：`ui/packages/topology/src/nodes/EdgeNode.vue`
- **Nodemenu**（source_file）：1" trigger="click" placement="right-start" @click.stop {{ action.label }} ⋮---- {{ action.label }} ⋮---- {{ action.label }} ⋮---- import {useI18n} from "vue-i18n" import {KsIconButton, KsDropdown, KsDropdownMenu, KsDropdownItem} from "@kestra-io/design-system" import DotsVertical from "vue-material-design-icons/DotsVertical.vue" export interface NodeAction { key: string; label: string; icon: unknown; tooltip?: string; danger?: boolean; divided?: boolean; onClick: = void; } defineOptions {name: "NodeMenu", inheritAttrs: false} defineProps const {t} = useI18n 证据：`ui/packages/topology/src/nodes/NodeMenu.vue`
- **Tasknode**（source_file）：{{ runnerLabel }} {{ $t statusStyle.label }} ⋮---- {{ runnerLabel }} ⋮---- {{ runnerLabel }} ⋮---- {{ $t statusStyle.label }} ⋮---- {{ $t statusStyle.label }} ⋮---- ⋮---- import {computed, inject} from "vue" import moment from "moment" import {useI18n} from "vue-i18n" import {Handle, Position} from "@vue-flow/core" import {State, KsTooltip, SECTIONS} from "@kestra-io/design-system" import {type CustomActionConfig, type ShowDetailsConfig, EVENTS} from "../utils/constants" import Duration from "../misc/Duration.vue" import as Utils from "../utils/utils" import {getStatusStyle} from "../utils/status" import BasicNode from "./BasicNode.vue" import NodeMenu, {type NodeAction} from "./NodeMenu.vu… 证据：`ui/packages/topology/src/nodes/TaskNode.vue`
- **Triggernode**（source_file）：⋮---- ⋮---- import {computed} from "vue" import {useI18n} from "vue-i18n" import {Handle, Position} from "@vue-flow/core" import {SECTIONS} from "@kestra-io/design-system" import InformationOutline from "vue-material-design-icons/InformationOutline.vue" import Pencil from "vue-material-design-icons/Pencil.vue" import Delete from "vue-material-design-icons/Delete.vue" import BasicNode from "./BasicNode.vue" import NodeMenu, {type NodeAction} from "./NodeMenu.vue" import {EVENTS} from "../utils/constants" import as Utils from "../utils/utils" defineOptions {name: "Task", inheritAttrs: false} const {data, sourcePosition, targetPosition, id, icons, iconComponent} = defineProps ; iconComponent?:… 证据：`ui/packages/topology/src/nodes/TriggerNode.vue`
- **Topology**（source_file）：@use "@kestra-io/design-system/src/assets/styles/color-palette" as ; $node-default: 7081b9; $node-colors: "success": $base-green-500, "primary": $base-primary-500, "danger": $base-red-500, "blue": $base-blue-500, "default": $node-default, "warning": $base-orange-300, ; $statusList: created, restarted, success, running, killing, killed, warning, failed, paused, cancelled, skipped, queued, retrying, retried, breakpoint; :root { --ks-topology-icon-color: {$base-gray-neutral-800}; --ks-topology-icon-bg: {$base-gray-neutral-white}; --ks-border-radius-pill: 50rem; @each $name, $color in $node-colors { --ks-node- {$name}: {$color}; } } html.dark { --ks-node-default: {$base-gray-neutral-400}; } .te… 证据：`ui/packages/topology/src/topology.scss`
- **Constants**（source_file）：export interface CustomActionConfig { label: string; taskProp: string; lang: string; } export interface ShowDetailsConfig { label: string; taskProp: string; lang: string; } 证据：`ui/packages/topology/src/utils/constants.ts`
- **Flowyamlutils**（source_file）：import {dump, load} from "js-yaml" import { Scalar, YAMLMap, YAMLSeq, Document, type Node, Pair, LineCounter, parseDocument, isPair, isMap, isSeq, visit, type Range, type ToStringOptions, } from "yaml" import cloneDeep from "lodash/cloneDeep" export function parse item?: string, throwIfError = true : T undefined ⋮---- function preserveCronQuotes yamlContent: string ⋮---- // Leave empty cron values untouched and without extra quotes. ⋮---- export function stringify item: any ⋮---- function sortPredicate a: string, b: string function sort value: Record export function pairsToMap pairs?: any function transform value: any : any function getSectionNodeAndDocumentFromSource {source, section}: { s… 证据：`ui/packages/topology/src/utils/flowYamlUtils.ts`
- **Status**（source_file）：import type {Component} from "vue" import CheckCircleOutline from "vue-material-design-icons/CheckCircleOutline.vue" import CloseCircleOutline from "vue-material-design-icons/CloseCircleOutline.vue" import SkipNextCircleOutline from "vue-material-design-icons/SkipNextCircleOutline.vue" import StopCircleOutline from "vue-material-design-icons/StopCircleOutline.vue" import ProgressClock from "vue-material-design-icons/ProgressClock.vue" import Cancel from "vue-material-design-icons/Cancel.vue" import RotatingDots from "../assets/icons/RotatingDots.vue" export interface StatusStyle { icon: Component; textVar: string; bg?: string; border?: string; dimIcon?: boolean; label?: string; } ⋮---- expo… 证据：`ui/packages/topology/src/utils/status.ts`
- 其余 17 条证据见 `AI_CONTEXT_PACK.json` 或 `EVIDENCE_INDEX.json`。

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

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

- **Project Overview & System Architecture**：importance `high`
  - source_paths: README.md, build.gradle, settings.gradle, cli/src/main/java/io/kestra/cli/AbstractCommand.java, cli/src/main/java/io/kestra/cli/commands/servers/ServerCommand.java
- **Core Engine: Flows, Executor, Scheduler & Worker**：importance `high`
  - source_paths: core/src/main/java/io/kestra/core/runners/Executor.java, core/src/main/java/io/kestra/core/runners/Worker.java, core/src/main/java/io/kestra/core/runners/Scheduler.java, core/src/main/java/io/kestra/core/runners/pebble/PebbleEngineFactory.java, core/src/main/java/io/kestra/core/services/ConcurrencyLimitService.java
- **Webserver API, Storage Layer & Plugin Ecosystem**：importance `high`
  - source_paths: webserver/src/main/java/io/kestra/webserver/Application.java, webserver/src/main/java/io/kestra/webserver/controllers/api/FlowController.java, webserver/src/main/java/io/kestra/webserver/controllers/api/ExecutionController.java, webserver/src/main/java/io/kestra/webserver/controllers/api/LogController.java, webserver/src/main/java/io/kestra/webserver/controllers/api/DashboardController.java
- **Frontend UI, CLI, Deployment & Operations**：importance `high`
  - source_paths: ui/src/main.ts, ui/src/components/executions/Executions.vue, ui/src/components/flows/Flows.vue, ui/src/components/dashboard/Dashboard.vue, ui/packages/design-system/src/components/Data/KsDataTable/filter/MainFilter.vue

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

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `b84ebef50774c247c42534a609d674433b91d0bb`
- inspected_files: `Dockerfile`, `README.md`, `docker-compose.yml`, `docs/architecture/METRICS_GUIDELINES.md`

宿主 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: 来源证据：Namespace files: filename with space collides with literal '+' → silent overwrite / data loss

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Namespace files: filename with space collides with literal '+' → silent overwrite / data loss
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/kestra-io/kestra/issues/16896 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 2: 来源证据：Logs chart: drag-to-select time-range brush (Grafana/GCP/PostHog style)

- Trigger: GitHub 社区证据显示该项目存在一个维护/版本相关的待验证问题：Logs chart: drag-to-select time-range brush (Grafana/GCP/PostHog style)
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/kestra-io/kestra/issues/16603 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 3: 依赖 Docker 环境

- Trigger: 安装/运行入口包含 Docker 命令：docker run --pull=always -it -p 8080:8080 --user=root --name kestra --restart=always -v kestra_data:/app/storage -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp kestra/kestra:latest server local
- Host AI rule: 标注 Docker 前置条件，并提供非 Docker 路径或失败提示。
- Why it matters: 非工程用户可能没有 Docker，启动成本明显增加。
- Evidence: identity.distribution | https://github.com/kestra-io/kestra | docker run --pull=always -it -p 8080:8080 --user=root --name kestra --restart=always -v kestra_data:/app/storage -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp kestra/kestra:latest server local
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 4: 失败模式：installation: v0.22.44

- Trigger: Developers should check this installation risk before relying on the project: v0.22.44
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v0.22.44. Context: Observed during installation or first-run setup.
- Why it matters: Upgrade or migration may change expected behavior: v0.22.44
- Evidence: failure_mode_cluster:github_release | https://github.com/kestra-io/kestra/releases/tag/v0.22.44 | v0.22.44
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 5: 来源证据：[Filters] Quick interval selector doesn't fit conditional groups

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[Filters] Quick interval selector doesn't fit conditional groups
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/kestra-io/kestra/issues/16433 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 6: 失败模式：configuration: Allow adjusting the flow template based on configuration

- Trigger: Developers should check this configuration risk before relying on the project: Allow adjusting the flow template based on configuration
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: Allow adjusting the flow template based on configuration. Context: Source discussion did not expose a precise runtime context.
- Why it matters: Developers may misconfigure credentials, environment, or host setup: Allow adjusting the flow template based on configuration
- Evidence: failure_mode_cluster:github_issue | https://github.com/kestra-io/kestra/issues/4956 | Allow adjusting the flow template based on configuration
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 7: 失败模式：configuration: v1.0.46

- Trigger: Developers should check this configuration risk before relying on the project: v1.0.46
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v1.0.46. Context: Observed during version upgrade or migration.
- Why it matters: Upgrade or migration may change expected behavior: v1.0.46
- Evidence: failure_mode_cluster:github_release | https://github.com/kestra-io/kestra/releases/tag/v1.0.46 | v1.0.46
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 8: 失败模式：configuration: v1.3.20

- Trigger: Developers should check this configuration risk before relying on the project: v1.3.20
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v1.3.20. Context: Observed during version upgrade or migration.
- Why it matters: Upgrade or migration may change expected behavior: v1.3.20
- Evidence: failure_mode_cluster:github_release | https://github.com/kestra-io/kestra/releases/tag/v1.3.20 | v1.3.20
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 9: 失败模式：configuration: v1.3.21

- Trigger: Developers should check this configuration risk before relying on the project: v1.3.21
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v1.3.21. Context: Observed during version upgrade or migration.
- Why it matters: Upgrade or migration may change expected behavior: v1.3.21
- Evidence: failure_mode_cluster:github_release | https://github.com/kestra-io/kestra/releases/tag/v1.3.21 | v1.3.21
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 10: 失败模式：configuration: v1.3.22

- Trigger: Developers should check this configuration risk before relying on the project: v1.3.22
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v1.3.22. Context: Source discussion did not expose a precise runtime context.
- Why it matters: Upgrade or migration may change expected behavior: v1.3.22
- Evidence: failure_mode_cluster:github_release | https://github.com/kestra-io/kestra/releases/tag/v1.3.22 | v1.3.22
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。
