3 篇来自 lucasfcosta.com

lucasfcosta.com

003

Lucas' Laws of Project Management

TL;DR

项目管理的所有失败,根源都是把”猜测”当”计划”对待。范围不可知、日期不可知、需求必然变——这不是风险,是定律。正确做法只有一条:尽快交付可工作版本,尽快验证最危险的假设,让项目状态对所有人实时可见。

核心主张拆解

  • Law 3 最反直觉:当日期和范围同时固定,质量成为唯一可调节的变量。管理者双重承诺时,实际上是在隐性承诺”我们会降低质量”——这个代价从不被显性讨论,却总是被执行。

  • Law 7 的重点是优先级颠倒:假设的重要性 = 假设错误的代价,而非证明它正确的容易程度。团队天然倾向于先验证容易的假设(制造可见进展),却把最危险的假设推迟——风险在项目末期集中爆发。

  • Law 8 最辛辣:backlog 保存的是写下条目时团队的无知程度,不是计划。条目写得越早、离执行越远,过期概率越高。作者的结论是:大 backlog 是负债,不是资产;任务应该在快要执行时再写。

  • Law 4 最具操作防护价值:“你永远可以交付一个可工作的小产品;你无法交付一个不工作的大产品,无论它看起来多像企业级产品。“并行开发多个模块再整合,意味着问题发现时间最晚、调整空间最小。

反驳或薄弱处

  • 整个框架的地基是 Law 1(团队理解问题),但作者没有给出验证机制——如何确认团队”真的理解”而不只是”认为自己理解”,这是被跳过的关键问题。
  • “范围可变”在合同固定、法规合规或数据库迁移类项目中不成立(Law 3 对此有承认,但处理浅显)。
  • Law 5(工程决策必须对 sales/support/ops 可行)预设了跨职能沟通渠道已经存在,早期初创公司或功能性孤岛团队中这条路径往往本身就是待解决的问题。

阅读原文 永久链接

002

Backpressure is all you need

TL;DR

AI 编程代理的真正瓶颈不在模型能否更快写代码,而在系统能否把“拒绝低质量输出”的能力前移到机器层;如果 backpressure 仍由人承担,代理越快,团队越容易被不可审查的 PR、机械转述反馈和被迫降级的 review 标准淹没。

核心洞见

  • Backpressure 的本质是下游组件告诉上游“我现在不能接收更多未处理好的工作”,迫使生产者放慢、缓冲或丢弃负载;在软件工程里,测试、类型、lint、CI 都是在让机器提前拒绝不合格代码。
  • 传统自动化守门已经把大量低级错误挡在人工 review 之前:测试阻止红灯 PR,TypeScript 在类型边界拒绝错误 prop,CI 把编译、端到端测试、canary 等检查集中成准入门槛。
  • LLM 写代码时,最危险的模式有两个:完全放任会制造难以 review 的变更洪水;把代理当 autocomplete 又让人类继续审每个小步骤,几乎没有真正授权。
  • 作者主张第三条路:让代理在更长的无人值守会话中反复接受自动化检查和代理 review,直到低级正确性与质量问题尽量在机器层解决,人类只介入最终设计、复杂度和可读性判断。

具体机制

  • 在 /goal 一类长任务提示里,验收标准不能只写功能结果,还要写质量条件:lint 通过、测试全绿、新行为有测试覆盖、commit 检查通过,并要求每次 patch 后立即运行这些检查。
  • 自动化测试之后还需要少量真实环境验证:跑本地依赖、后端和前端,用 cURL 测 API,用浏览器点击前端;这一步慢,所以适合放在迭代收敛后,而不是每个微小改动后。
  • 性能敏感项目要把 benchmark 纳入 backpressure:提供短/长不同预算的 benchmark suite,输出结构化结果,让代理能判断改动是改进、回退还是噪声。
  • 作者认为 review agents 是最有效的一层:让代理在每轮迭代中接受针对可读性、复杂度、测试、类型、显式 cast 等问题的审查,最后再对整个 changeset 做一次整体 review。
  • 计划阶段也需要 backpressure:实现前先产出轻量方案,交给 reviewer 检查架构方向是否成立,避免模型在错误基础上不断局部修补。
  • 前端任务可尝试视觉 review:用 Playwright 截图,对照 Figma 或 ticket 图片检查布局、间距、颜色、对比度和一致性;作者明确说这一层仍在探索。
  • PR 打开后继续监控 24 小时是第二有效的机制:自动检查新评论、CI 状态和 merge conflict,把问题送回代理处理,避免人类重新成为低级状态同步器。

隐藏限制

值得质疑

  • 这套方法依赖可运行、快速、确定性的工程基础设施;如果测试慢、环境难起、benchmark 噪声大,backpressure 会变成新的摩擦源。
  • Review agent 能强化团队偏好,但它的价值取决于审查准则是否具体;“提高质量”这类模糊要求很容易制造低信号反馈。
  • 作者也承认 SKILL.md 或提示词并不一定是强约束,模型仍可能忽略或绕过流程;更理想的形态可能是模型运行时原生支持这些关卡。
  • 视觉 review 的收益尚未被充分证明,它对前端体验重要,但也容易在截图解释、设计差异和主观审美上消耗过多循环。

最后一层判断

代理时代的质量上限取决于“拒绝机制”放在哪里:越早由机器拦下错误,人类越能把注意力留给设计、复杂度和最终判断。

阅读原文 永久链接

001

How finishing what you start makes teams more productive and predictable

why so many people won’t finish what they start and how to illustrate and quantify the impact of unfinished work.

How finishing what you start increases productivity

in the software industry, both tasks take longer to deliver whenever you start a new feature before finishing the first. Moreover, the first task will be delivered later than it could have been.

instead of starting each feature as early as possible, you start it as late as you can afford to. As Little’s Law $Avg.\ Cycle\ Time = \frac{Avg.\ Work\ In\ Progress}{Avg.\ Throughput​}$

If you wish to keep cycle-times low, you should limit work in progress.

The cost of context switching

context-switching incurs a high cost.

When to start without having finished

one about batch sizes and Transaction Cost . That’s why you don’t buy a single egg whenever you go to the supermarket. Going to the supermarket has a significant transaction cost whenever a transaction’s cost goes up, that transaction happens less frequently.

That’s also the reason why Martin Fowler and Jez Humble advocate that “if something is painful, you should do it more often”, especially when it comes to deploying software. If you’re forced to do something often, you’ll naturally gravitate towards decreasing the cost of doing it.

In the software industry, there are several problems with large batch transferrals:

  • They delay feedback because features take longer to get to customers
  • They make it more difficult to trace bugs because the delta between each version is larger
  • They increase the overhead of change management because they make versioning and automatic rollbacks more difficult to do These problems exponentially increase the costs of holding software tasks as opposed to pushing them forward.

Reducing transaction costs enables small batches. Small batches, in turn, reduce average cycle times, diminish risk, and enhance reliability.

You should only start without having finished when transaction costs are high, and it wouldn’t make economic sense to spend time decreasing them, either because you have agreed to a particular delivery date or because you don’t have the capital to invest.

How finishing what you start makes teams more predictable

The lower you make WIP limits and stick to them, the less variability you’ll see in cycle times.

阅读原文 永久链接

已经到底了

全部 3 篇都在这里。