首页›Marc Brooker›文章

A Correctness Approach for Modern Systems Software

2026年11月30日

AI 摘要 AI 生成,可能有误

作者提出了一套严谨的系统软件正确性方法论,并通过一个基于 Aurora DSQL 或 DynamoDB 的 Rust 分布式锁(租约)客户端进行了演示。作者声称,尽管从未阅读过该实现,这段代码的缺陷密度是其一 30 年职业生涯中所有代码里最低的。该方法结合了防误用的 API 设计、形式化规范、安全的 Rust、通过 Aeneas/Lean 进行的机器校验证明、使用 Veil 进行的模型检查、精化证明、带有运行时监控的确定性仿真、变异测试,以及传统的单元测试和集成测试。作者认为,对于基础性的、影响重大的组件而言,这种程度的严谨性是合理的,并且智能体编程工具已经使非专业人员能够以相对较低的成本使用先进的形式化验证技术。

A Correctness Approach for Modern Systems Software

In 2026. Next year, who knows?

When I speak to AWS customers, especially developers and technology leaders, the most common question I get is: how do I ship high quality code now? Or it’s variants: how do I avoid shipping slop? What does testing look like now? Do I still need code review for quality? Etc.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Marc Brooker

Traffic mix matters

AI 摘要Reacting to Microsoft's preliminary report on a recent M365 outage, which noted that lab load testing missed a latent issue because of differences in traffic mix, the author explains why workload composition is critical to performance testing. Using simple simulators of lock-based systems and cache-backed databases, they show that skewed key distributions (Zipf) can shift throughput by orders of magnitude in either direction—hurting it under lock contention while helping it through cache hits. The takeaway is that load tests and benchmarks are only meaningful when their traffic mix closely matches real production traffic.

What does it mean to understand what we built?

AI 摘要The author reflects on the 'No AI Slop Manifesto' and its value of 'understanding over speed,' arguing that its definition of understanding is too focused on code. They contend that truly important properties of software—such as correctness guarantees, user benefits, and emergent behaviors like metastable failures—cannot be grasped by reading code alone, and software engineering still lacks system-level analysis tools comparable to Bode plots or Nyquist criteria in other fields. The author sees AI as a powerful tool for shifting focus from code-level scrutiny to understanding systems as built, though they wish the manifesto had thought more deeply about what being 'for understanding' really means.

Animations for System Builders: Metastability and Lost Writes

AI 摘要The article advocates building animations as a technique for system builders to develop intuition about how systems work and fail, focusing on metastability and lost writes. Using traces captured from real test environments, the author presents concrete examples—including a Raft cluster losing writes when a member's storage lies about fsync(), Postgres and etcd entering metastable states after load spikes, and garbage collection in etcd creating a self-reinforcing degradation loop—to show these failures occur even in widely-used, production-proven software. The animations were generated with Kiro and KiroCrew, mostly with Opus 5.5.

Strands Decider: Why Not an Encoder?

AI 摘要The author explains why the strands-decider-2B model is a modified decoder LLM rather than an encoder like BERT, by benchmarking five designs including T5Gemma-based encoder-only and encoder-decoder variants against their decoder-based v19. Encoder-only models matched or slightly beat the decoder on accuracy with roughly half the latency (~35ms vs 65ms), but scaled worse with longer prompts due to quadratic attention costs, and the unmasked encoder variant showed weaker generalization on the main eval benchmarks. The author concludes that neither architecture is a clear winner at this scale and that the experiment is too confounded to definitively settle the decoder-versus-encoder question.

Small Decisions: Engineering a Leading Model

AI 摘要The author, primarily an AI infrastructure and safety engineer, set out to learn model building by creating Hobson, a roughly 2-billion-parameter calibrated decision model that replaces the LM head of a pre-trained Qwen3.5-2B torso with a small pointer head, fine-tuned via LoRA and self-distillation on ~115k examples. The model achieved top-tier accuracy and calibration on JevBench in its size class, with low latency (~100ms p50 on a 3090), though generalization to unseen tasks remains a challenge and future work includes harder synthetic data and reinforcement learning. Key lessons were that head rearchitecture, a modern torso, and teacher-verified data drove the biggest gains, and that AI assistants made learning this domain far easier than it would have been a year or two ago.