Skip to content

v0.2.0 fix: 收口 E1 审批授权与幂等审计 - #161

Merged
mirror29 merged 3 commits into
mainfrom
codex/evolution-task27
Aug 28, 2026
Merged

v0.2.0 fix: 收口 E1 审批授权与幂等审计#161
mirror29 merged 3 commits into
mainfrom
codex/evolution-task27

Conversation

@mirror29

Copy link
Copy Markdown
Owner

Summary

审批幂等与滚动升级

  • 将批准后的 operation 持久化 24 小时,使 orchestration 重启或请求重试时仍复用同一 operation,避免重复创建演化运行和重复计费。
  • 新增迁移 0042,在不改写已发布迁移的前提下兼容旧 Dashboard / Evolver 滚动升级与回滚。
  • 新版 Evolver 只领取显式标记为安全的队列任务,遗留未标记任务启动时安全终止。

请求绑定的凭据授权链

  • 移除独立 HS256 演化审批 token,统一为由 orchestration 签发、Evolver 验证的 Ed25519 grant。
  • grant 绑定 owner、operation、config、provider、模型配置摘要和完整业务请求摘要;审批后修改预算、标的、时间窗口或模型配置都会被拒绝。
  • Dashboard 内部凭据兑换路由补齐生产环境 bearer-only 精确豁免,并将一次性兑换账本绑定到请求摘要。

冻结模型与成本可见性

  • Dashboard 演化运行详情展示冻结的 provider、model、config、pricing version、最大成本及配置摘要。
  • 补齐中英文文案与运行 DTO 类型。

Test Coverage

新增路径覆盖 operation 重启恢复、数据库幂等、0042 升降级与旧版本兼容、跨语言请求摘要、grant 篡改拒绝、Dashboard 内部兑换路由及冻结快照展示。

  • Evolver:113 passed;Ruff passed
  • Dashboard:49 passed;typecheck passed
  • Orchestration 安全与幂等定向测试:18 passed;typecheck passed
  • PostgreSQL migration 0041/0042:2 passed
  • 跨文件一致性:18 passed,0 failed(120 条既有启发式 warning)
  • Orchestration 全量:534/535;唯一失败为并行环境下 <150ms 墙钟阈值波动,隔离重跑 4/4 passed

Pre-Landing Review

前序复审的 9 项阻断问题均已修复,最终复审未发现新的阻断项。

Design Review

仅新增演化运行冻结模型与定价快照的只读展示;组件测试和类型检查通过,未执行独立视觉审查。

Eval Results

未修改 agent prompt,跳过 eval。

Scope Drift

Scope Check: CLEAN

Plan Completion

安全复审收口项 9/9 完成,无延期项。

Verification Results

核心单元、集成、迁移、类型检查、Ruff、敏感信息扫描及跨文件一致性检查均通过。

Test plan

  • Evolver tests pass (113 tests)
  • Dashboard tests pass (49 tests)
  • Orchestration focused security/idempotency tests pass (18 tests)
  • PostgreSQL migration 0041/0042 upgrade/downgrade tests pass
  • TypeScript typechecks and Ruff pass
  • Cross-file consistency check passes (18 checks, 0 failures)

🤖 Generated with OpenAI Codex

@mirror29
mirror29 merged commit 640e53b into main Aug 28, 2026
15 checks passed
@github-actions

Copy link
Copy Markdown

Review base: 5a8211c

🤖 DeepSeek V4 Pro PR Review

⚠️ review 未完成:DeepSeek API 调用失败:DeepSeek 未返回可发布的 review 正文

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant