Files
myWiki/concepts/cost-quality-speed-trilemma.md
2026-06-01 10:46:01 +08:00

40 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "Cost-Quality-Speed Trilemma成本-质量-速度三元悖论)"
created: 2026-05-23
updated: 2026-05-23
type: concept
tags: [agent, tradeoff, cost, quality, optimization]
sources: [raw/papers/agent-harness-engineering-survey-2026.md]
confidence: high
---
# Cost-Quality-Speed Trilemma
> Agent Harness 可靠性受成本、质量和速度之间的三方权衡约束。无法同时优化所有维度。
## 三方张力
- **质量 ↑**:更强的沙箱、更深的评估、更丰富的上下文 → **成本 ↑**、**速度 ↓**
- **速度 ↑**:轻量沙箱、简化评估、压缩上下文 → **质量 ↓**、**成本 ↓**
- **成本 ↓**:减少 token 消耗、降低基础设施 → **质量 ↓**、**速度 ↓**
## 具体表现
- 更强的沙箱和更忠实的环境 → 提高安全性和可复现性 → 增加启动延迟和基础设施成本
- 更丰富的上下文和记忆策略 → 改善任务连续性 → 消耗更多 token 并引入检索开销
- 更深的评估和可观测性 → 改善诊断 → 减慢迭代速度并增加存储/标注/追踪处理成本
## 工程决策
生产系统不能将质量视为标量目标。必须决定:
- 哪些风险值得昂贵控制
- 哪些检查可以异步运行或在回归套件中运行
- 在 Agent 生命周期的每个阶段值得捕获哪些遥测数据
## 相关概念
- [[capability-control-tradeoff]]
- [[harness-coupling-problem]]
- [[adaptive-harness-simplification]] — 通过简化降低成本的路径
- [[agent-harness-engineering-survey]]