跳转至

配置

在目标仓库根目录放置 .aion.yaml。AION 会用它控制仓库扫描默认值,以及带 repo_root 的编排命令。

示例

provider: openai
model: gpt-4.1
ignore_paths:
  - tests/*
  - scripts/generated_*.py
auto_repair_issue_types:
  - raw_sqlite_query
  - hardcoded_secret
  - missing_auth_decorator
auto_repair_min_confidence: 0.90
sandbox_mode: repository
sandbox_verification_commands:
  - python -m pytest tests/unit
auto_approve_verified_fixes: false
rollback_on_verification_failure: true

字段说明

字段 类型 默认值 说明
provider string null scan 阶段使用的 LLM 提供方,支持 anthropicopenai
model string provider 默认值 scan 的显式模型覆盖
ignore_paths list [] 仓库扫描时跳过的 glob 模式
auto_repair_issue_types list 内建集合 允许进入自动 sandbox 修复的 incident 类型
auto_repair_min_confidence float 0.85 触发自动修复所需的最小 incident 置信度
sandbox_mode string repository file 为单文件 staging,repository 为整仓 staging
sandbox_verification_commands list [] 在 staged sandbox 内执行的项目级命令
auto_approve_verified_fixes boolean false staged 验证通过时直接给出 approved_for_rollout
rollback_on_verification_failure boolean true staged 验证失败时给出 rollback,而不是 needs_human_review

解析规则

  • 命令行参数会覆盖 .aion.yaml 中对应的配置。
  • scan 从目标仓库根目录读取配置。
  • process-eventprocess-event-queue 和 inbox 处理会从事件的 repo_root 读取配置。

推荐配置档位

保守式 staging:

auto_repair_min_confidence: 0.95
auto_approve_verified_fixes: false
rollback_on_verification_failure: false

本地快速实验:

sandbox_mode: file
auto_approve_verified_fixes: true
rollback_on_verification_failure: true

运行说明

  • providermodel 只影响 scan;确定性修复和编排流程本身不依赖 LLM。
  • sandbox_verification_commands 会在 staged workspace 中执行,并把每条命令结果写入 orchestration record。
  • 上下文提取缓存位于 ~/.aion-context.json