codex-model-routing-team
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCodex 模型路由团队
Codex Model Routing Team
主 Agent 保持当前模型,负责任务拆分、所有权、集成和最终验收。两个以上 Worker 先编译 TeamPlan;默认路由为 ,高风险升 。App Thread 是有状态工作区与耐久任务的专用 Surface,不再是 Luna 的兼容入口。
native_subagent/gpt-5.6-luna/xhigh/standardmaxThe main Agent retains the current model and is responsible for task splitting, ownership, integration, and final acceptance. For tasks requiring two or more Workers, compile TeamPlan first; the default routing is , and upgrade to for high-risk tasks. App Thread is a dedicated Surface for stateful workspaces and durable tasks, and is no longer a compatibility entry for Luna.
native_subagent/gpt-5.6-luna/xhigh/standardmax不使用
Do Not Use
简单问答、状态查询、单文件小改、强顺序任务和不可逆外部操作留在主任务;Worker 只能准备外部动作材料。
Simple Q&A, status queries, small single-file modifications, strongly sequential tasks, and irreversible external operations remain in the main task; Workers can only prepare materials for external actions.
执行模式
Execution Modes
- (默认):用原生 V2 创建 Luna leaf Worker;fresh context 使用
native-v2,需要少量最近上下文时写正整数。三类 JSON 默认从 stdin 校验。fork_turns="none" - :任务需要独立 worktree、侧栏可见、跨任务恢复、长期监督,或原生路径缺少精确 live 能力时,使用 App Thread 与耐久账本。
durable-app - 上游 Skill 已定义拆分、阶段和产物时,遵守 适配协议,不重做 Scale、阶段门或第二套业务账本。
- (default): Use native V2 to create Luna leaf Workers; use
native-v2for fresh context, and write a positive integer when a small amount of recent context is needed. Three types of JSON are validated from stdin by default.fork_turns="none" - : Use App Thread and durable ledger when the task requires independent worktree, sidebar visibility, cross-task recovery, long-term supervision, or when the native path lacks precise live capabilities.
durable-app - When the upstream Skill has defined splitting, phases, and deliverables, comply with the Adapter Protocol and do not rework Scale, phase gates, or a second set of business ledgers.
执行流程
Execution Process
- 确认显式或长期授权;只有两个以上独立交付物且净收益为正时派遣,否则 。
lead_only - 两个以上 Worker 按 TeamPlan 协议 编译 unit、依赖、所有权、交付物、验收和集成顺序,并运行 ;已有上游计划时只编译、不重写。
scripts/validate_team_plan.py - 按 registry、Provider、路由 与 Surface 策略固定候选链。
- 每个 unit 生成 RoutePlan,写
schema_version: "3.0"并运行surface_intent: parent_integrated|durable_app。原生候选必须显式写scripts/validate_route_plan.py和 tuple-boundfork_turns;Fast 还必须有当前 liveruntime_evidence证据。service_tier=priority - 任务包 写 unit、唯一 、权限、验收和禁止下级派遣;简报精确路由、职责、fallback 与 reserved slots。
task_id - 原生路径遵守 生命周期;App 路径遵守 Thread 生命周期 与 监督协议。
- TeamPlan 默认 6/8/3;
standard12/16/6 需 live 容量门、2 个 reserved slots 和 10 分钟内的结构化证据。child slots 等于总槽位减协调者与活动 Worker,按较小值切波。expanded - 每 unit 最多 2 次 attempt、一次 follow-up;失败只沿 预声明链。结构变化才在收口后修订 TeamPlan。
- 主 Agent 验证集成;原生 Worker 按 live 能力 close 或 completed-idle 后写 ,App Thread 过门后归档。运行
RELEASED。scripts/validate_team_ledger.py
- Confirm explicit or long-term authorization; dispatch only when there are two or more independent deliverables with positive net benefits, otherwise use .
lead_only - For two or more Workers, compile unit, dependencies, ownership, deliverables, acceptance, and integration sequence according to the TeamPlan Protocol, and run ; only compile without rewriting when an upstream plan already exists.
scripts/validate_team_plan.py - Fix the candidate chain according to registry, Provider, Routing and Surface Selection strategies.
- Generate RoutePlan for each unit, write
schema_version: "3.0"and runsurface_intent: parent_integrated|durable_app. Native candidates must explicitly writescripts/validate_route_plan.pyand tuple-boundfork_turns; Fast must also have current liveruntime_evidenceevidence.service_tier=priority - The Task Packet includes unit, unique , permissions, acceptance criteria, and prohibits subordinate dispatch; the briefing specifies precise routing, responsibilities, fallback, and reserved slots.
task_id - Native path complies with Lifecycle; App path complies with Thread Lifecycle and Supervision Protocol.
- TeamPlan uses 6/8/3 by default;
standard12/16/6 requires live capacity gate, 2 reserved slots, and structured evidence within 10 minutes. Child slots equal total slots minus coordinator and active Workers, and split waves by the smaller value.expanded - Each unit allows a maximum of 2 attempts and 1 follow-up; failure only follows the Pre-declared Chain. Revise TeamPlan only after收口(这里应该是“conclusion”?不对,原文是“收口后”,应该是“after conclusion”?不,看原文是“结构变化才在收口后修订 TeamPlan”,翻译成“Revise TeamPlan only after conclusion when structural changes occur.”)
- The main Agent validates integration; after native Workers close or enter completed-idle state according to live capabilities, write ; archive App Thread after passing the gate. Run
RELEASED.scripts/validate_team_ledger.py
硬门
Hard Gates
- registry 决定策略范围;live schema 只证明当前 host 接受精确组合。requested/accepted/observed 分开记录,未回显为 。
unknown - V2 父 Agent 可创建 picker 可见且未禁用的 V1 leaf model;Luna 可走原生 V2但不获协作工具。Sol/Terra 也禁止下级派遣。
- 不加 frontmatter;编排入口留在协作父 Agent,Luna 只做 Worker。
model: luna - Luna 最低 XHigh,高风险 Max;Sol 最低 High;Terra 仅显式首项;Grok 过门;Gemini blocked。禁止旧模型、Ultra 和低强度 fallback。
- Fast 即 ;live schema 无字段时一律 Standard,不把 catalog 或请求值冒充 observed Fast。
service_tier=priority - 只用于 worktree、侧栏、跨任务恢复、耐久监督或预声明 fallback。
app_thread - Worker 不得继续派生任务,也不得执行发布、发送、付款、删除、账户或生产变更。主 Agent 不切换自身模型。
- TeamPlan 默认不创建 Planner、不调用重型计划、不落持久文件;同波写冲突、依赖环、超预算、计划外 Worker 或下放最终验收必须拒绝。
- 未确认返回值或 不得当正式身份;
pendingWorktreeId禁止追问、归档、fallback、重复创建或改数据库。UNKNOWN
- Registry determines the scope of strategies; live schema only proves that the current host accepts the exact combination. Record requested/accepted/observed separately, and mark unechoed items as .
unknown - V2 parent Agent can create V1 leaf models that are visible to picker and not disabled; Luna can use native V2 but does not get collaboration tools. Sol/Terra also prohibit subordinate dispatch.
- Do not add frontmatter; the orchestration entry remains in the collaborative parent Agent, and Luna only acts as a Worker.
model: luna - Luna requires at least XHigh, Max for high-risk tasks; Sol requires at least High; Terra only for explicit first items; Grok requires passing gates; Gemini is blocked. Prohibit old models, Ultra, and low-intensity fallback.
- Fast means ; if there is no such field in the live schema, use Standard uniformly, and do not pass off catalog or requested values as observed Fast.
service_tier=priority - is only used for worktree, sidebar, cross-task recovery, durable supervision, or pre-declared fallback.
app_thread - Workers shall not continue to derive tasks, nor execute release, send, payment, deletion, account, or production changes. The main Agent shall not switch its own model.
- TeamPlan does not create Planner, call heavy planning, or write persistent files by default; must reject same-wave write conflicts, dependency loops, over-budget, unplanned Workers, or delegated final acceptance.
- Do not treat unconfirmed return values or as official identity;
pendingWorktreeIdprohibits follow-up questions, archiving, fallback, repeated creation, or database modification.UNKNOWN
输出契约
Output Contract
交付必须完整、自洽并经主 Agent 验证,包含可审计的 Surface、模型、推理强度、速度、上下文范围、Provider 门、尝试、fallback、采纳及收尾状态。行为边界见 验证案例 与 。
evals/Deliverables must be complete, self-consistent, and verified by the main Agent, including auditable Surface, model, inference intensity, speed, context scope, Provider gates, attempts, fallback, adoption, and closing status. See Validation Cases and for behavioral boundaries.
evals/