ds-blast-radius
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseds-blast-radius
ds-blast-radius
Listing callers is easy. The job is finding the breakage that a text search will not show, and proving the change is safe with a run instead of an argument.
列出调用方很容易。真正的任务是找出文本搜索无法呈现的破坏,并通过实际运行而非单纯论证来证明变更是安全的。
Steps
步骤
- Read the change: the diff, the symbols it adds, changes or removes, and the behavior it now has that the diff does not spell out.
- Find the one or two facts the change is safe because of, for example "this only removes cache entries that are already expired". Most risk clears if that fact holds. Spend your effort here.
- Look where search stops. Read the source of libraries you call at their pinned version. Check timing: async ordering, teardown, retries. Follow data that leaves the code: API responses, database columns, file formats, config, other languages reading the same data.
- Grade each key fact by how far you proved it:
- you said so (worthless alone),
- you pointed at a real file and line,
- you traced the failure path and showed it cannot be reached,
- you ran a script or test against the real code that fails loudly if you are wrong,
- you reproduced it in the running app.
- Push each key fact to level 4 when it is cheap. Usually that is one small script calling the exact function in question.
- Report: the key facts, their proof level with the command and output, any real breakage found, and what stayed unproven.
- 阅读变更:查看 diff、它新增、修改或移除的 symbols,以及 diff 未明确说明但现在具备的行为。
- 找出变更之所以安全所依赖的一两个关键事实,例如“它只会删除已经过期的缓存条目”。如果这些事实成立,大部分风险都会被排除。应将主要精力放在这里。
- 查看文本搜索触及不到的地方。阅读所调用库在锁定版本下的源代码。检查时序:异步顺序、清理过程和重试。追踪流出代码的数据:API 响应、数据库字段、文件格式、config,以及读取相同数据的其他语言。
- 根据证明程度对每个关键事实进行分级:
- 只是口头声明(单独来看毫无价值),
- 指向了真实文件及具体行号,
- 追踪了失败路径,并证明该路径无法被触发,
- 针对真实代码运行了脚本或测试,一旦判断有误就会明确失败,
- 在运行中的应用里复现了问题。
- 如果成本较低,将每个关键事实的证明等级提升到第 4 级。通常只需编写一个调用相关确切函数的小型脚本。
- 报告:关键事实、证明等级及对应的命令和输出、发现的任何真实破坏,以及仍未得到证明的内容。
Stop when
停止条件
- Every key fact is at level 4 or higher, or you have said why it could not be, and the report is written.
- Or you found a real break. Report it with the repro and stop.
- 每个关键事实都已达到第 4 级或更高,或者已说明无法达到的原因,并且报告已经写完。
- 或者发现了真实破坏。提供复现步骤并停止。
Rules
规则
- A convincing write-up is not proof. Show output.
- Do not fix anything here. Hand fixes to the normal flow.
- 有说服力的书面说明不是证据。请展示输出。
- 不要在这里修复任何问题。将修复工作交给正常流程处理。