# flyte - Doramagic AI Context Pack

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

## 充分原则

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

## 给宿主 AI 的使用方式

你正在读取 Doramagic 为 flyte 编译的 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

## 它能做什么

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

## 怎么开始

- `git clone https://github.com/YOUR_USERNAME/flyte.git` 证据：`CONTRIBUTING.md` Claim：`clm_0003` supported 0.86
- `curl http://rustfs.flyte-dataproxy.svc.cluster.local:9000` 证据：`dataproxy/README.md` Claim：`clm_0004` supported 0.86
- `curl http://localhost:8090/healthz` 证据：`manager/README.md` Claim：`clm_0005` supported 0.86
- `curl http://localhost:8081/healthz` 证据：`manager/README.md` Claim：`clm_0006` supported 0.86
- `curl http://localhost:8090/readyz` 证据：`runs/README.md` Claim：`clm_0007` supported 0.86
- `git clone https://github.com/flyteorg/boilerplate.git "${OUT}"` 证据：`boilerplate/update.sh` Claim：`clm_0008` unverified 0.25
- `curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64` 证据：`executor/.devcontainer/post-install.sh` Claim：`clm_0009` unverified 0.25
- `curl -L -o kubebuilder https://go.kubebuilder.io/dl/latest/linux/amd64` 证据：`executor/.devcontainer/post-install.sh` Claim：`clm_0010` unverified 0.25
- `curl -LO "https://dl.k8s.io/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl"` 证据：`executor/.devcontainer/post-install.sh` Claim：`clm_0011` unverified 0.25
- `curl -sf -X PUT "http://localhost:9000/$BUCKET_NAME" \` 证据：`scripts/start-rustfs.sh` Claim：`clm_0012` unverified 0.25

## 继续前判断卡

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

### 30 秒判断

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

### 现在可以相信

- **适合人群线索：想在安装前理解开源项目价值和边界的用户**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`README.md` Claim：`clm_0002` supported 0.86
- **能力存在：命令行启动或安装流程**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`CONTRIBUTING.md`, `boilerplate/update.sh`, `dataproxy/README.md`, `executor/.devcontainer/post-install.sh` 等 Claim：`clm_0001` supported 0.86
- **存在 Quick Start / 安装命令线索**（supported）：可以相信项目文档出现过启动或安装入口；不要因此直接在主力环境运行。 证据：`CONTRIBUTING.md` Claim：`clm_0003` 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 从错误专业视角回答，浪费时间或误导决策。
- **命令执行**：包管理器、网络下载、本地插件目录、项目配置或用户主目录。 原因：运行第一条命令就可能产生环境改动；必须先判断是否值得跑。 证据：`CONTRIBUTING.md`, `boilerplate/update.sh`, `dataproxy/README.md`, `executor/.devcontainer/post-install.sh` 等
- **本地环境或项目文件**：安装结果、插件缓存、项目配置或本地依赖目录。 原因：安装前无法证明写入范围和回滚方式，需要隔离验证。 证据：`CONTRIBUTING.md`, `boilerplate/update.sh`, `dataproxy/README.md`, `executor/.devcontainer/post-install.sh` 等
- **宿主 AI 上下文**：AI Context Pack、Prompt Preview、Skill 路由、风险规则和项目事实。 原因：导入上下文会影响宿主 AI 后续判断，必须避免把未验证项包装成事实。

### 最小安全下一步

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

### 退出方式

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

## 哪些只能预览

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

## 哪些必须安装后验证

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

## 边界与风险判断卡

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

### 任务路由

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

### 上下文规模

- 文件总数：1781
- 重要文件覆盖：40/1781
- 证据索引条目：80
- 角色 / Skill 条目：24

### 证据不足时的处理

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

## Prompt Recipes

### 适配判断

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

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

### 安装前体验

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

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

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

## 角色 / Skill 索引

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

- **Flyte 2**（project_doc）：!IMPORTANT Flyte 2 Devbox is now available! Check out the guide here https://www.union.ai/docs/v2/flyte/user-guide/run-modes/running-devbox/ to get started. Looking for Flyte 1? Go to the master https://github.com/flyteorg/flyte/tree/master branch, where Flyte 1 is now maintained. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`README.md`
- **Data Proxy**（project_doc）：Data proxy is the service that communicates with the data storage to handle operations like: - Generate signed URLs for uploading data - Generate download URLs for retrieving data - Manage data access and permissions 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`dataproxy/README.md`
- **Executor**（project_doc）：The Executor is a Kubernetes operator that manages the execution of Flyte tasks in the data plane. Built using the Kubernetes Operator pattern with controller-runtime , it watches and reconciles TaskAction custom resources to orchestrate task execution. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`executor/README.md`
- **Flyte CoPilot**（project_doc）：Overview Flyte CoPilot provides a sidecar that understand Flyte Metadata Format as specified in FlyteIDL and make it possible to run arbitrary containers in Flyte. This is achieved using flyte-copilot a binary that runs in 2 modes, - Downloader - Downloads the metadata and any other data if configured to a provided path. In kubernetes this path could be a shared volume. - Sidecar - Monitors the process and uploads a… 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`flytecopilot/README.md`
- **flyteplugins**（project_doc）：flyteplugins Plugins contributed by flyte community. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`flyteplugins/README.md`
- **Install**（project_doc）：Common Go Tools ===================== ! Current Release https://img.shields.io/github/release/flyteorg/flytestdlib.svg https://github.com/flyteorg/flytestdlib/releases/latest ! Build Status https://github.com/flyteorg/flytestdlib/workflows/Master/badge.svg?branch=master https://github.com/flyteorg/flytestdlib/workflows/Master/badge.svg?branch=master ! GoDoc https://godoc.org/github.com/flyteorg/flytestdlib?status.sv… 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`flytestdlib/README.md`
- **Flyte Manager - Unified Binary**（project_doc）：The Flyte Manager is a unified binary that runs all Flyte services in a single process: 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`manager/README.md`
- **Runs Service**（project_doc）：The Runs Service implements the RunService gRPC interface using buf connect. It manages workflow runs, actions, attempts, and cluster events. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`runs/README.md`
- **flyte-binary**（project_doc）：! Version: v0.2.0 https://img.shields.io/badge/Version-v0.2.0-informational?style=flat-square ! Type: application https://img.shields.io/badge/Type-application-informational?style=flat-square 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`charts/flyte-binary/README.md`
- **flyte-devbox**（project_doc）：! Version: 0.1.0 https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square ! Type: application https://img.shields.io/badge/Type-application-informational?style=flat-square ! AppVersion: 1.16.1 https://img.shields.io/badge/AppVersion-1.16.1-informational?style=flat-square 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`charts/flyte-devbox/README.md`
- **Python library of flyte IDL protobuf**（project_doc）：Python library of flyte IDL protobuf 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`flyteidl2/gen_utils/python/README.md`
- **Python library of flyte IDL protobuf**（project_doc）：Python library of flyte IDL protobuf 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`gen/python/README.md`
- **Flyte 2 Backend**（project_doc）：This repository contains the backend infrastructure for deploying a distributed, multi-node version of Flyte 2. The backend is Kubernetes-native — it orchestrates workflow execution using Kubernetes primitives, scheduling tasks as pods across clusters with built-in support for multi-cluster routing, service account-based identity, and pod-level log tracking. The core architecture consists of gRPC services QueueServi… 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/BACKEND_README.md`
- **Contributing to Flyte 2**（project_doc）：Thank you for your interest in contributing to Flyte 2! This guide will help you understand the contribution workflow, testing requirements, and release process. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`CONTRIBUTING.md`
- **Docker Development - Quick Start**（project_doc）：This guide gets you started with Docker-based development in under 5 minutes. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/DOCKER_QUICK_START.md`
- **Implementation Specification: Queue, Runs, and State Services**（project_doc）：Implementation Specification: Queue, Runs, and State Services 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/IMPLEMENTATION_SPEC.md`
- **Docker Image Build Workflow**（project_doc）：This document explains how the Docker CI image is built and used across different scenarios. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/docker-image-workflow.md`
- **Executor Development Guide**（project_doc）：This guide provides steps on how to develop and iterates changes. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`executor/DEVELOPMENT.md`
- **Code Of Conduct**（project_doc）：This project is governed by LF AI Foundation's code of conduct https://lfprojects.org/policies/code-of-conduct/ . All contributors and participants agree to abide by its terms. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`flyteplugins/CODE_OF_CONDUCT.md`
- **Code Of Conduct**（project_doc）：This project is governed by LF AI Foundation's code of conduct https://lfprojects.org/policies/code-of-conduct/ . All contributors and participants agree to abide by its terms. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`flytestdlib/CODE_OF_CONDUCT.md`
- **Development Guide**（project_doc）：Note: this development guide is stale, should use make sandbox-run command 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`manager/DEVELOPMENT.md`
- **Code Of Conduct**（project_doc）：This project is governed by LF AI Foundation's code of conduct https://lfprojects.org/policies/code-of-conduct/ . All contributors and participants agree to abide by its terms. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`boilerplate/flyte/code_of_conduct/CODE_OF_CONDUCT.md`
- **Read then delete this section**（project_doc）：- Make sure to use a concise title for the pull-request. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`boilerplate/flyte/pull_request_template/pull_request_template.md`
- **Settings API: Customer Flow**（project_doc）：This walkthrough traces a realistic customer flow end-to-end. To keep the examples readable, only three settings are used: 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`flyteidl2/settings/settings_customer_flow.md`

## 证据索引

- 共索引 80 条证据。

- **Flyte 2**（documentation）：!IMPORTANT Flyte 2 Devbox is now available! Check out the guide here https://www.union.ai/docs/v2/flyte/user-guide/run-modes/running-devbox/ to get started. Looking for Flyte 1? Go to the master https://github.com/flyteorg/flyte/tree/master branch, where Flyte 1 is now maintained. 证据：`README.md`
- **Data Proxy**（documentation）：Data proxy is the service that communicates with the data storage to handle operations like: - Generate signed URLs for uploading data - Generate download URLs for retrieving data - Manage data access and permissions 证据：`dataproxy/README.md`
- **Executor**（documentation）：The Executor is a Kubernetes operator that manages the execution of Flyte tasks in the data plane. Built using the Kubernetes Operator pattern with controller-runtime , it watches and reconciles TaskAction custom resources to orchestrate task execution. 证据：`executor/README.md`
- **Flyte CoPilot**（documentation）：Overview Flyte CoPilot provides a sidecar that understand Flyte Metadata Format as specified in FlyteIDL and make it possible to run arbitrary containers in Flyte. This is achieved using flyte-copilot a binary that runs in 2 modes, - Downloader - Downloads the metadata and any other data if configured to a provided path. In kubernetes this path could be a shared volume. - Sidecar - Monitors the process and uploads any data that is generated by the process in a prescribed path/ 证据：`flytecopilot/README.md`
- **flyteplugins**（documentation）：flyteplugins Plugins contributed by flyte community. 证据：`flyteplugins/README.md`
- **Install**（documentation）：Common Go Tools ===================== ! Current Release https://img.shields.io/github/release/flyteorg/flytestdlib.svg https://github.com/flyteorg/flytestdlib/releases/latest ! Build Status https://github.com/flyteorg/flytestdlib/workflows/Master/badge.svg?branch=master https://github.com/flyteorg/flytestdlib/workflows/Master/badge.svg?branch=master ! GoDoc https://godoc.org/github.com/flyteorg/flytestdlib?status.svg https://godoc.org/github.com/flyteorg/flytestdlib ! License https://img.shields.io/badge/LICENSE-Apache2.0-ff69b4.svg http://www.apache.org/licenses/LICENSE-2.0.html ! CodeCoverage https://img.shields.io/codecov/c/github/flyteorg/flytestdlib.svg https://codecov.io/gh/flyteorg/f… 证据：`flytestdlib/README.md`
- **Flyte Manager - Unified Binary**（documentation）：The Flyte Manager is a unified binary that runs all Flyte services in a single process: 证据：`manager/README.md`
- **Runs Service**（documentation）：The Runs Service implements the RunService gRPC interface using buf connect. It manages workflow runs, actions, attempts, and cluster events. 证据：`runs/README.md`
- **flyte-binary**（documentation）：! Version: v0.2.0 https://img.shields.io/badge/Version-v0.2.0-informational?style=flat-square ! Type: application https://img.shields.io/badge/Type-application-informational?style=flat-square 证据：`charts/flyte-binary/README.md`
- **flyte-devbox**（documentation）：! Version: 0.1.0 https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square ! Type: application https://img.shields.io/badge/Type-application-informational?style=flat-square ! AppVersion: 1.16.1 https://img.shields.io/badge/AppVersion-1.16.1-informational?style=flat-square 证据：`charts/flyte-devbox/README.md`
- **Python library of flyte IDL protobuf**（documentation）：Python library of flyte IDL protobuf 证据：`flyteidl2/gen_utils/python/README.md`
- **Python library of flyte IDL protobuf**（documentation）：Python library of flyte IDL protobuf 证据：`gen/python/README.md`
- **Flyte 2 Backend**（documentation）：This repository contains the backend infrastructure for deploying a distributed, multi-node version of Flyte 2. The backend is Kubernetes-native — it orchestrates workflow execution using Kubernetes primitives, scheduling tasks as pods across clusters with built-in support for multi-cluster routing, service account-based identity, and pod-level log tracking. The core architecture consists of gRPC services QueueService, RunService, StateService backed by PostgreSQL, using async processing and real-time streaming via PostgreSQL LISTEN/NOTIFY. See the full Implementation Spec https://github.com/flyteorg/flyte/blob/v2/docs/IMPLEMENTATION SPEC.md for details. 证据：`docs/BACKEND_README.md`
- **Contributing to Flyte 2**（documentation）：Thank you for your interest in contributing to Flyte 2! This guide will help you understand the contribution workflow, testing requirements, and release process. 证据：`CONTRIBUTING.md`
- **Package**（package_manifest）：{ "name": "@flyteorg/flyteidl2", "version": "0.0.0-develop", "description": "Compiled protocol buffers and gRPC service and connect clients/servers for Flyte IDLs", "repository": { "type": "git", "url": "git@github.com:flyteorg/flyte" }, "author": "Union Eng ", "license": "Apache-2.0", "keywords": "flyte", "flyte2" , "files": "flyteidl2", "buf", "google" , "dependencies": { "@bufbuild/protobuf": "^2.10.0" }, "devDependencies": { "typescript": "^5.6.0" } } 证据：`flyteidl2/gen_utils/ts/package.json`
- **Package**（package_manifest）：{ "name": "@flyteorg/flyteidl2", "version": "0.0.0-develop", "description": "Compiled protocol buffers and gRPC service and connect clients/servers for Flyte IDLs", "repository": { "type": "git", "url": "git@github.com:flyteorg/flyte" }, "author": "Union Eng ", "license": "Apache-2.0", "keywords": "flyte", "flyte2" , "files": "flyteidl2", "buf", "google" , "dependencies": { "@bufbuild/protobuf": "^2.10.0" }, "devDependencies": { "typescript": "^5.6.0" } } 证据：`gen/ts/package.json`
- **License**（source_file）：Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ 证据：`LICENSE`
- **License**（source_file）：Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ 证据：`flyteplugins/LICENSE`
- **License**（source_file）：Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ 证据：`flytestdlib/LICENSE`
- **Docker Development - Quick Start**（documentation）：This guide gets you started with Docker-based development in under 5 minutes. 证据：`docs/DOCKER_QUICK_START.md`
- **Implementation Specification: Queue, Runs, and State Services**（documentation）：Implementation Specification: Queue, Runs, and State Services 证据：`docs/IMPLEMENTATION_SPEC.md`
- **Docker Image Build Workflow**（documentation）：This document explains how the Docker CI image is built and used across different scenarios. 证据：`docs/docker-image-workflow.md`
- **App Definition.Swagger**（structured_config）：{ "swagger": "2.0", "info": { "title": "flyteidl2/app/app definition.proto", "version": "version not set" }, "consumes": "application/json" , "produces": "application/json" , "paths": {}, "definitions": { "googlerpcStatus": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32", "description": "The status code, which should be an enum value of google.rpc.Code google.rpc.Code ." }, "message": { "type": "string", "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n google.rpc.Status.details google.rpc.Status.details field, or localized by the client." }, "details": { "type… 证据：`gen/go/gateway/flyteidl2/app/app_definition.swagger.json`
- **App Logs Payload.Swagger**（structured_config）：{ "swagger": "2.0", "info": { "title": "flyteidl2/app/app logs payload.proto", "version": "version not set" }, "consumes": "application/json" , "produces": "application/json" , "paths": {}, "definitions": { "googlerpcStatus": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32", "description": "The status code, which should be an enum value of google.rpc.Code google.rpc.Code ." }, "message": { "type": "string", "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n google.rpc.Status.details google.rpc.Status.details field, or localized by the client." }, "details": { "ty… 证据：`gen/go/gateway/flyteidl2/app/app_logs_payload.swagger.json`
- **App Logs Service.Swagger**（structured_config）：{ "swagger": "2.0", "info": { "title": "flyteidl2/app/app logs service.proto", "version": "version not set" }, "tags": { "name": "AppLogsService" } , "consumes": "application/json" , "produces": "application/json" , "paths": {}, "definitions": { "googlerpcStatus": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32", "description": "The status code, which should be an enum value of google.rpc.Code google.rpc.Code ." }, "message": { "type": "string", "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n google.rpc.Status.details google.rpc.Status.details field, or locali… 证据：`gen/go/gateway/flyteidl2/app/app_logs_service.swagger.json`
- **App Client**（source_file）：package k8s import "context" "crypto/sha256" "encoding/base64" "encoding/hex" "fmt" "strings" "sync" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/types/known/timestamppb" corev1 "k8s.io/api/core/v1" k8serrors "k8s.io/apimachinery/pkg/api/errors" k8sresource "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" k8swatch "k8s.io/apimachinery/pkg/watch" toolscache "k8s.io/client-go/tools/cache" knativeapis "knative.dev/pkg/apis" servingv1 "knative.dev/serving/pkg/apis/serving/v1" ctrlcache "sigs.k8s.io/controller-runtime/pkg/cache" "sigs.k8s.io/controller-runtime/pkg/client" "github.com/flyteorg/flyte/v2/app/inter… 证据：`app/internal/k8s/app_client.go`
- **App Client Test**（source_file）：package k8s import "context" "crypto/sha256" "encoding/hex" "testing" "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" corev1 "k8s.io/api/core/v1" k8serrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" k8swatch "k8s.io/apimachinery/pkg/watch" duckv1 "knative.dev/pkg/apis/duck/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1" "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/client/fake" "github.com/flyteorg/flyte/v2/app/internal/config" flyteapp "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/app" flytecoreapp "github.com/flyteorg/flyte/v2/gen/go/flytei… 证据：`app/internal/k8s/app_client_test.go`
- **Internal App Service Test**（source_file）：package service import "context" "net/http" "net/http/httptest" "testing" "connectrpc.com/connect" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" flyteapp "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/app" "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/app/appconnect" "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/common" flytecoreapp "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core" ⋮---- "context" "net/http" "net/http/httptest" "testing" "connectrpc.com/connect" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" flyteapp "github.com/flyteorg/flyte/v2/gen/go/flyteid… 证据：`app/internal/service/internal_app_service_test.go`
- **Groupversion Info**（source_file）：package v1 import "k8s.io/apimachinery/pkg/runtime/schema" "sigs.k8s.io/controller-runtime/pkg/scheme" ⋮---- "k8s.io/apimachinery/pkg/runtime/schema" "sigs.k8s.io/controller-runtime/pkg/scheme" ⋮---- var GroupVersion = schema.GroupVersion{Group: "flyte.org", Version: "v1"} SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} AddToScheme = SchemeBuilder.AddToScheme 证据：`executor/api/v1/groupversion_info.go`
- **Taskaction Types**（source_file）：package v1 import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/common" "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core" "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/workflow" ⋮---- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/common" "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core" "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/workflow" ⋮---- TaskActionConditionType string TaskActionConditionReason string ⋮---- const ConditionTypeProgressing TaskActionConditionType = "Progressing" ConditionTypeSucceeded TaskActionConditionType = "Succeeded" ConditionTypeFailed TaskActionConditionType =… 证据：`executor/api/v1/taskaction_types.go`
- **Zz Generated.Deepcopy**（source_file）：//go:build !ignore autogenerated package v1 import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ⋮---- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ⋮---- func in PhaseTransition DeepCopyInto out PhaseTransition func in PhaseTransition DeepCopy PhaseTransition ⋮---- func in TaskAction DeepCopyObject runtime.Object 证据：`executor/api/v1/zz_generated.deepcopy.go`
- **Registry**（source_file）：package plugin import "context" "fmt" "sync" executorConfig "github.com/flyteorg/flyte/v2/executor/pkg/config" executorK8s "github.com/flyteorg/flyte/v2/executor/pkg/plugin/k8s" pluginsCore "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" k8sPlugin "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/k8s" "github.com/flyteorg/flyte/v2/flytestdlib/logger" ⋮---- "context" "fmt" "sync" executorConfig "github.com/flyteorg/flyte/v2/executor/pkg/config" executorK8s "github.com/flyteorg/flyte/v2/executor/pkg/plugin/k8s" pluginsCore "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" k8sPlugin "github.com/flyteorg/flyte/v2/flyteplugins/g… 证据：`executor/pkg/plugin/registry.go`
- **Google.Rpc**（source_file）：pub struct Status { 证据：`flyteidl2/gen_utils/rust/src/google.rpc.rs`
- **Lib**（source_file）：use pyo3; ⋮---- pub mod flyteidl { pub mod actions { include! "flyteidl2.actions.rs" ; ⋮---- pub mod app { include! "flyteidl2.app.rs" ; ⋮---- pub mod auth { include! "flyteidl2.auth.rs" ; ⋮---- pub mod project { include! "flyteidl2.project.rs" ; ⋮---- pub mod common { include! "flyteidl2.common.rs" ; ⋮---- pub mod workflow { include! "flyteidl2.workflow.rs" ; ⋮---- pub mod logs { pub mod dataplane { include! "flyteidl2.logs.dataplane.rs" ; ⋮---- pub mod core { include! "flyteidl2.core.rs" ; ⋮---- pub mod notification { include! "flyteidl2.notification.rs" ; ⋮---- pub mod task { include! "flyteidl2.task.rs" ; ⋮---- pub mod trigger { include! "flyteidl2.trigger.rs" ; ⋮---- pub mod secret { i… 证据：`flyteidl2/gen_utils/rust/src/lib.rs`
- **Phase**（source_file）：package core import "fmt" "time" structpb "github.com/golang/protobuf/ptypes/struct" "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core" ⋮---- "fmt" "time" structpb "github.com/golang/protobuf/ptypes/struct" "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core" ⋮---- const DefaultPhaseVersion = uint32 0 const SystemErrorCode = "SystemError" //go:generate enumer -type=Phase type Phase int8 const PhaseUndefined Phase = iota PhaseNotReady PhaseWaitingForResources PhaseQueued PhaseInitializing PhaseRunning PhaseSuccess PhaseRetryableFailure PhasePermanentFailure PhaseWaitingForCache PhaseAborted var Phases = Phase{ PhaseUndefined, PhaseNotReady, PhaseWaitingForResources, PhaseQueued, PhaseIniti… 证据：`flyteplugins/go/tasks/pluginmachinery/core/phase.go`
- **Plugin**（source_file）：package core import "context" "fmt" ⋮---- "context" "fmt" ⋮---- const minGeneratedNameLength = 8 ⋮---- type PluginLoader func ctx context.Context, iCtx SetupContext Plugin, error type PluginEntry struct { ID TaskType RegisteredTaskTypes TaskType LoadPlugin PluginLoader IsDefault bool } type PluginProperties struct { DisableNodeLevelCaching bool GeneratedNameMaxLength int } type Plugin interface { GetID string GetProperties PluginProperties Handle ctx context.Context, tCtx TaskExecutionContext Transition, error Abort ctx context.Context, tCtx TaskExecutionContext error Finalize ctx context.Context, tCtx TaskExecutionContext error } func LoadPlugin ctx context.Context, iCtx SetupContext, entr… 证据：`flyteplugins/go/tasks/pluginmachinery/core/plugin.go`
- **Plugin**（source_file）：package k8s import "context" "time" "sigs.k8s.io/controller-runtime/pkg/client" pluginsCore "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/io" "github.com/flyteorg/flyte/v2/flytestdlib/storage" ⋮---- "context" "time" "sigs.k8s.io/controller-runtime/pkg/client" pluginsCore "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/io" "github.com/flyteorg/flyte/v2/flytestdlib/storage" ⋮---- type PluginEntry struct { ID pluginsCore.TaskType RegisteredTaskTypes pluginsCore.TaskType ResourceToWatch client.Object Plugin… 证据：`flyteplugins/go/tasks/pluginmachinery/k8s/plugin.go`
- **Registry**（source_file）：package pluginmachinery import "context" "sync" "k8s.io/apimachinery/pkg/runtime" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/k8s" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/webapi" "github.com/flyteorg/flyte/v2/flytestdlib/logger" internalRemote "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/internal/webapi" ⋮---- "context" "sync" "k8s.io/apimachinery/pkg/runtime" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/k8s" "github.com/flyteorg/flyte/v2/flyteplugi… 证据：`flyteplugins/go/tasks/pluginmachinery/registry.go`
- **Azure Plugin**（source_file）：package tasklog import "bytes" "compress/gzip" "encoding/base64" "fmt" "net/url" "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core" ⋮---- "bytes" "compress/gzip" "encoding/base64" "fmt" "net/url" "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core" ⋮---- const defaultName = "Azure Logs" defaulQueryFormat = let StartTime = datetime add 'hour', -1, datetime "{{.podRFC3339StartTime}}" ; type AzureLogsTemplatePlugin struct { TemplateLogPlugin json:",squash" QueryFormat string json:"queryFormat" pflag:",The plain text query to use for Azure Logs." } func t AzureLogsTemplatePlugin GetTaskLogs input Input Output, error ⋮---- var rawQuery string ⋮---- var compressedBuffer bytes.Buffer 证据：`flyteplugins/go/tasks/pluginmachinery/tasklog/azure_plugin.go`
- **Plugin**（source_file）：package tasklog import "regexp" pluginsCore "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core" ⋮---- "regexp" pluginsCore "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core" ⋮---- //go:generate enumer --type=TemplateScheme --trimprefix=TemplateScheme -json -yaml type TemplateScheme int const TemplateSchemePod TemplateScheme = iota TemplateSchemeTaskExecution ⋮---- type TemplateVar struct { Regex regexp.Regexp Value string } type Input struct { HostName string PodName string Namespace string ContainerName string ContainerID string LogName stri… 证据：`flyteplugins/go/tasks/pluginmachinery/tasklog/plugin.go`
- **Plugin**（source_file）：package webapi import "context" pluginsCore "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/io" "github.com/flyteorg/flyte/v2/flytestdlib/promutils" "github.com/flyteorg/flyte/v2/flytestdlib/storage" ⋮---- "context" pluginsCore "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/io" "github.com/flyteorg/flyte/v2/flytestdlib/promutils" "github.com/flyteorg/flyte/v2/flytestdlib/storage" ⋮---- type PluginLoader func ctx context.Context, iCtx PluginSetupContext AsyncPlugin, error type PluginEntry struct { ID plugi… 证据：`flyteplugins/go/tasks/pluginmachinery/webapi/plugin.go`
- **Plugin**（source_file）：package sleep import "context" "errors" "fmt" "sync" "time" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery" core "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" idlcore "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core" ⋮---- "context" "errors" "fmt" "sync" "time" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery" core "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" idlcore "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core" ⋮---- const sleepTaskType = "core-sleep" type invalidInputError struct { message string } func e invalidInputError Error string type Plugin struct { taskStartTimes map string t… 证据：`flyteplugins/go/tasks/plugins/core/sleep/plugin.go`
- **Phase**（source_file）：package clustered import "context" "fmt" "sort" "time" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runtime/pkg/client" jobsetv1alpha2 "sigs.k8s.io/jobset/api/jobset/v1alpha2" pluginsCore "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/flytek8s" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/k8s" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/utils" "github.com/flyteorg/flyte/v2/flytestdlib/logger" "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core" clusteredpb "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/… 证据：`flyteplugins/go/tasks/plugins/k8s/clustered/phase.go`
- **Plugin**（source_file）：package clustered import "context" "fmt" "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes/scheme" "sigs.k8s.io/controller-runtime/pkg/client" jobsetv1alpha2 "sigs.k8s.io/jobset/api/jobset/v1alpha2" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery" pluginsCore "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/k8s" ⋮---- "context" "fmt" "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes/scheme" "sigs.k8s.io/controller-runtime/pkg/client" jobsetv1alpha2 "sigs.k8s.io/jobset/api/jobset/v1alpha2" "github.com/flyteorg/flyte/v… 证据：`flyteplugins/go/tasks/plugins/k8s/clustered/plugin.go`
- **Plugin**（source_file）：package pod import "context" "fmt" "time" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" "sigs.k8s.io/controller-runtime/pkg/client" pluginserrors "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/errors" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/logs" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery" pluginsCore "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/flytek8s" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/k8s" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery… 证据：`flyteplugins/go/tasks/plugins/k8s/pod/plugin.go`
- **Ray**（source_file）：package ray import "context" "encoding/base64" "encoding/json" "fmt" "regexp" "strconv" "strings" "time" rayv1 "github.com/ray-project/kuberay/ray-operator/apis/ray/v1" "github.com/samber/lo" "gopkg.in/yaml.v2" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes/scheme" "sigs.k8s.io/controller-runtime/pkg/client" flyteerr "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/errors" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/logs" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery" pluginsCore "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" "github.com/flyt… 证据：`flyteplugins/go/tasks/plugins/k8s/ray/ray.go`
- **Spark**（source_file）：package spark import "context" "fmt" "regexp" "strconv" "strings" "time" sparkOp "github.com/GoogleCloudPlatform/spark-on-k8s-operator/pkg/apis/sparkoperator.k8s.io/v1beta2" sparkOpConfig "github.com/GoogleCloudPlatform/spark-on-k8s-operator/pkg/config" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes/scheme" "sigs.k8s.io/controller-runtime/pkg/client" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/errors" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/logs" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery" pluginsCore "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" "github.com/flyteorg/… 证据：`flyteplugins/go/tasks/plugins/k8s/spark/spark.go`
- **Plugin**（source_file）：package connector import "context" "encoding/gob" "fmt" "slices" "sync" "time" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" "google.golang.org/protobuf/types/known/structpb" "k8s.io/apimachinery/pkg/util/wait" pluginErrors "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/errors" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/logs" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/core/template" "github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/io" "github.com/flyteorg/flyte/v2/flyteplugins… 证据：`flyteplugins/go/tasks/plugins/webapi/connector/plugin.go`
- **Compact Array**（source_file）：package bitarray import "errors" "fmt" "math" "unsafe" ⋮---- "errors" "fmt" "math" "unsafe" ⋮---- type CompactArray struct { BitSet json:",inline" ItemSize uint json:"item,omitempty" ItemsCount uint json:"count,omitempty" } func bitsNeeded maxValue Item uint func a CompactArray validateIndex index int func a CompactArray validateValue value Item func a CompactArray SetItem index int, value Item func a CompactArray GetItem index int Item func a CompactArray GetItems Item func a CompactArray String string func a CompactArray DeepCopyInto out CompactArray func a CompactArray DeepCopy CompactArray func NewCompactArray size uint, maxValue Item CompactArray, error 证据：`flytestdlib/bitarray/compact_array.go`
- **App Definition.Pb**（source_file）：package app import "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" common "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/common" core "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core" task "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/task" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" ⋮---- "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" common "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/common" core "gi… 证据：`gen/go/flyteidl2/app/app_definition.pb.go`
- **App Definition Pb2**（source_file）：sym db = symbol database.Default 证据：`gen/python/flyteidl2/app/app_definition_pb2.py`
- **App Definition Pb2**（source_file）：from buf.validate import validate pb2 as validate pb2 from flyteidl2.common import identity pb2 as identity pb2 from flyteidl2.common import runtime version pb2 as runtime version pb2 from flyteidl2.core import artifact id pb2 as artifact id pb2 from flyteidl2.core import security pb2 as security pb2 from flyteidl2.core import tasks pb2 as tasks pb2 from flyteidl2.task import task definition pb2 as task definition pb2 from google.protobuf import duration pb2 as duration pb2 from google.protobuf import timestamp pb2 as timestamp pb2 from google.protobuf.internal import containers as containers from google.protobuf.internal import enum type wrapper as enum type wrapper from google.protobuf im… 证据：`gen/python/flyteidl2/app/app_definition_pb2.pyi`
- **Google.Rpc**（source_file）：pub struct Status { 证据：`gen/rust/src/google.rpc.rs`
- **Lib**（source_file）：use pyo3; ⋮---- pub mod flyteidl { pub mod actions { include! "flyteidl2.actions.rs" ; ⋮---- pub mod app { include! "flyteidl2.app.rs" ; ⋮---- pub mod auth { include! "flyteidl2.auth.rs" ; ⋮---- pub mod project { include! "flyteidl2.project.rs" ; ⋮---- pub mod common { include! "flyteidl2.common.rs" ; ⋮---- pub mod workflow { include! "flyteidl2.workflow.rs" ; ⋮---- pub mod logs { pub mod dataplane { include! "flyteidl2.logs.dataplane.rs" ; ⋮---- pub mod core { include! "flyteidl2.core.rs" ; ⋮---- pub mod notification { include! "flyteidl2.notification.rs" ; ⋮---- pub mod task { include! "flyteidl2.task.rs" ; ⋮---- pub mod trigger { include! "flyteidl2.trigger.rs" ; ⋮---- pub mod secret { i… 证据：`gen/rust/src/lib.rs`
- **App Definition Pb**（source_file）：import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; import { file buf validate validate } from "../../buf/validate/validate pb.ts"; import type { EnrichedIdentity } from "../common/identity pb.ts"; import { file flyteidl2 common identity } from "../common/identity pb.ts"; import type { RuntimeMetadata } from "../common/runtime version pb.ts"; import { file flyteidl2 common runtime version } from "../common/runtime version pb.ts"; import type { ArtifactID, ArtifactQuery } from "../core/artifact id pb.ts"; import { file flyteidl2 core artifact id } from "../core/artifact id pb.ts"; im… 证据：`gen/ts/flyteidl2/app/app_definition_pb.ts`
- **App Logs Payload Pb**（source_file）：import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; import { file buf validate validate } from "../../buf/validate/validate pb.ts"; import type { Identifier } from "./app definition pb.ts"; import { file flyteidl2 app app definition } from "./app definition pb.ts"; import type { ReplicaIdentifier } from "./replica definition pb.ts"; import { file flyteidl2 app replica definition } from "./replica definition pb.ts"; import type { LogLine, LogLines as LogLines$1 } from "../logs/dataplane/payload pb.ts"; import { file flyteidl2 logs dataplane payload } from "../logs/dataplane/payload pb.ts"; import type… 证据：`gen/ts/flyteidl2/app/app_logs_payload_pb.ts`
- **Annotations Pb**（source_file）：import type { GenExtension, GenFile } from "@bufbuild/protobuf/codegenv1"; import { extDesc, fileDesc } from "@bufbuild/protobuf/codegenv1"; import type { HttpRule } from "./http pb.ts"; import { file google api http } from "./http pb.ts"; import type { MethodOptions } from "@bufbuild/protobuf/wkt"; import { file google protobuf descriptor } from "@bufbuild/protobuf/wkt"; 证据：`gen/ts/google/api/annotations_pb.ts`
- **Http Pb**（source_file）：import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; import type { Message } from "@bufbuild/protobuf"; ⋮---- export type Http = Message & { rules: HttpRule ; fullyDecodeReservedExpansion: boolean; }; ⋮---- export type HttpRule = Message & { selector: string; pattern: { value: string; case: "get"; } { value: string; case: "put"; } { value: string; case: "post"; } { value: string; case: "delete"; } { value: string; case: "patch"; } { value: CustomHttpPattern; case: "custom"; } { case: undefined; value?: undefined }; body: string; responseBody: string; additionalBindings: HttpRule ; }; ⋮---- export type… 证据：`gen/ts/google/api/http_pb.ts`
- **Executor Development Guide**（documentation）：This guide provides steps on how to develop and iterates changes. 证据：`executor/DEVELOPMENT.md`
- **Code Of Conduct**（documentation）：This project is governed by LF AI Foundation's code of conduct https://lfprojects.org/policies/code-of-conduct/ . All contributors and participants agree to abide by its terms. 证据：`flyteplugins/CODE_OF_CONDUCT.md`
- 其余 20 条证据见 `AI_CONTEXT_PACK.json` 或 `EVIDENCE_INDEX.json`。

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

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

- **Flyte 2 Backend Overview & System Architecture**：importance `high`
  - source_paths: README.md, docs/BACKEND_README.md, docs/IMPLEMENTATION_SPEC.md, go.mod, go.Makefile
- **Core Backend Services (runs, dataproxy, cache, events, app, actions, secret)**：importance `high`
  - source_paths: runs/cmd/main.go, runs/service/run_service.go, runs/scheduler/core/scheduler.go, runs/migrations/sql/20260408110000_init_schema.sql, dataproxy/cmd/main.go
- **Plugin Machinery, Executor & Task Plugins**：importance `high`
  - source_paths: flyteplugins/go/tasks/pluginmachinery/registry.go, flyteplugins/go/tasks/pluginmachinery/core/plugin.go, flyteplugins/go/tasks/pluginmachinery/core/phase.go, flyteplugins/go/tasks/plugins/k8s/pod/plugin.go, flyteplugins/go/tasks/plugins/k8s/spark/spark.go
- **Data Plane, Storage, IDL, and Deployment**：importance `high`
  - source_paths: flytestdlib/storage/storage.go, flytestdlib/storage/rawstores.go, flytestdlib/storage/redis_store.go, flytestdlib/storage/stow_store.go, flytestdlib/storage/scheme_routing_store.go

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

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `efe332ee213de88b002c5055eb40ec9b5b3efda4`
- inspected_files: `Dockerfile`, `README.md`, `docs/BACKEND_README.md`, `docs/DOCKER_QUICK_START.md`, `docs/IMPLEMENTATION_SPEC.md`, `docs/docker-image-workflow.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: 来源证据：Fix typo: rename ActionMetadata.funtion_name → function_name (proto, backend, SDK stubs)

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Fix typo: rename ActionMetadata.funtion_name → function_name (proto, backend, SDK stubs)
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/flyteorg/flyte/issues/7558 | 来源讨论提到 python 相关条件，需在安装/试用前复核。
- 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/flyteorg/flyte | 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/flyteorg/flyte | last_activity_observed missing
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

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

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

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