Files
weichen 5543a44859 Temporarily disable the failing antigravity profile for backend dispatch
Why: the Gemini endpoint behind agy dropped the final streaming response
with EOF in three consecutive attempts, each after ~30 minutes of completed
work; routing falls through to pi. Re-enable when the endpoint recovers.
Reason recorded on the U3 task card.

Impact: AGENT-EXECUTION.md only.

Refs: plan 2026-10-19-1440 U3.
2026-10-20 04:51:50 +00:00

2.3 KiB

Project Agent Execution Configuration

项目工程 Agent 执行路由配置

适用范围:定义本项目中由 AI / Agent 主导的代码实施、修复、测试与审阅所调用的 Agent CLI 路由。 解析器识别正文中唯一一个 ```agent-execution 代码块。正文外的说明文字可根据项目需要调整。

通用硬规则见 Development-Guidelines 的 Agent 执行与协作契约。 本配置为项目本地路由权威,声明具体的候选 profile、尝试次数上限、超时、集成入口与豁免路径; 代码块须通过 deps/development-guidelines/templates/schemas/agent-execution.schema.json 校验后才能登记为 active。 fallback_to_host 只能为 never;旧值 all-unavailable 仅供迁移工具读取,不能通过准入。 下例的 CLI 名称、命令与路径均为占位,按项目实际执行器替换。

schema: agent-execution/v1

execution:
  fresh_process_per_unit: true
  permission: run-everything
  fallback_to_host: never
  max_parallel: 3
  timeout_seconds: 7200
  idle_timeout_seconds: 600
  summary_bytes: 16384
  raw_output_bytes: 10485760
  max_attempts_per_profile: 3
  emergency_profile: codex

roles:
  implementation: [cursor, antigravity, pi]
  repair: [cursor, antigravity, pi]
  test: [pi, antigravity, cursor]
  review: [pi, antigravity, cursor, codex]

profiles:
  cursor:
    adapter: cursor
    executable: "cursor-agent-stable"
    model: auto
    # 2026-10-20 临时禁用:cursor 账本月配额耗尽(重置 2026-11-10),原因记录于
    # Dev U3 任务卡;恢复时改回 enabled: true。
    enabled: false

  antigravity:
    adapter: antigravity
    executable: agy
    model: auto
    # 2026-10-20 临时禁用:Gemini 端点连续 3 次在最终流式响应 EOF(长会话不稳定),恢复时改回 enabled: true。
    enabled: false

  pi:
    adapter: pi
    executable: pi
    model: auto
    enabled: true

  codex:
    adapter: codex
    executable: codex
    model: auto
    enabled: true

integration:
  exempt_paths: [".task/**", "docs/superpowers/specs/**", "docs/superpowers/plans/**"]
  transport:
    command: "scripts/agent-exec apply"
  admission:
    command: "scripts/agent-exec admit"
  cleanup:
    command: "scripts/agent-exec cleanup"