返回首页

对比阅读

对比阅读:A Client Wanted Verifiable Proof. I Hit a Wall 与 客户要求系统能被验证时,我卡在了一个难题上

AEN
形式化验证软件安全技术审计·

A Client Wanted Verifiable Proof. I Hit a Wall

10 p.m. Wednesday, I was still staring at the client’s acceptance checklist

Last week, while building a small-team collaboration tool, the partner added one line: the core workflow needed reproducible proof. Let’s call the client Ms. Lin—she said it plainly at a requirements meeting in Hangzhou: without proof, nobody would know where the problem actually was when something went wrong. My first reaction wasn’t to research a new language. I worried about whether it would stretch the budget and timeline.

Not every project needs this. Organizing ordinary customer records, generating quotes, or scheduling personal-IP content usually only calls for mature tools and a human review. It’s fine not to take on this kind of work today, and it’s fine not to inflate the scope because a technical term shows up.

It Doesn’t “Write Code for Me”—It Proves the Program Doesn’t Violate the Spec

The article discusses a programming language designed for mainstream development and capable of formal verification. “Formal verification” means writing down how the system should behave as rules a machine can check line by line, rather than guessing from test cases whether it contains flaws.

I heard a similar story from Lin Hao, a security-audit engineer, at a developer meetup in Beijing. His team found an ordinary defect with conventional testing, then found two edge cases where the documentation and implementation disagreed through stricter checks. Verification doesn’t make software error-proof; it makes critical promises traceable. Teams are already exploring this approach, but it remains a distance away from everyday use in small teams.

What It Actually Costs to Replicate This Today

On money, the public specifications, papers, and open-source examples are basically free. A consultant familiar with the field may charge by the hour for a feasibility review, but I don’t have a reliable quote, so I won’t invent one. On time, I’d allow one week to understand the specification and run the examples; integrating it into an existing business would take me at least a month. The technical barrier is real: it requires programming, logical reasoning, and software-verification fundamentals. It isn’t a drag-and-drop tool. The first step is to open the article’s original link, download the sample materials it mentions, confirm that my machine has the required environment, and only then decide whether to continue.

I also messed this up: at first, I treated it as a “more powerful automation tool” and nearly rewrote the client’s entire system. Later, I realized that checking whether the requirement truly needs strict proof comes before choosing a language.

How I’d Choose by Stage

If I had just started and didn’t have stable clients yet, I’d deliver with conventional development and keep the budget for validating real needs. Once a client explicitly raised security or audit requirements, I’d hire an expert for a feasibility review. With one or two clients, I’d pilot it on one critical workflow tied to payment or privacy rather than migrate the whole product. While scaling amid multi-person collaboration or compliance reviews, I’d include formal verification in the architecture assessment while preserving a stable version of the current system, so proof didn’t stall delivery.

For most nontechnical founders, this is more like a technical map for a possible future than a Swiss Army knife I have to open today. I could start with one critical rule or one independent verification step and see whether it reduces communication and rework.

BZH
形式化验证软件安全技术审计·

客户要求系统能被验证时,我卡在了一个难题上

周三晚上十点,我还在盯着客户的验收清单

上周做一个小团队协作工具时,合作方突然加了一句:核心流程必须有可重复验证的证明。客户真名我们姑且叫林女士,她在杭州的一次需求会上说得很直接:没有证明,出错时没人知道问题究竟出在哪。我当时的第一反应不是研究新语言,而是担心这会不会把预算和时间拖长。

这类要求并非所有项目都需要。普通客户资料整理、报价单生成、个人 IP 内容排期,通常用成熟工具和人工复核就够了。现在不接这类需求也没事,别因为看到专业名词就临时加码。

它解决的不是“帮我写代码”,而是“证明程序没有违背规范”

文章讨论的是一种面向主流开发场景、且可进行形式化验证的编程语言。这里的“形式化验证”,可以理解成把“系统应该怎样运行”写成机器能逐条检查的规则,而不是只靠测试样例猜它有没有漏洞。

我也在北京一次开发者聚会上听一位做安全审计的工程师林浩讲过类似经历:团队用传统测试发现一个普通缺陷,又用更严格的检查发现两个文档与实现不一致的边界问题。验证不是让程序永远不出错,而是让关键承诺有据可查。已有团队正在探索这类路线,但离普通小团队日常使用仍有距离。

今天复刻它的实际成本

钱方面,使用公开规范、论文和开源示例,基本资料可从 0 元开始;若请熟悉该方向的顾问做可行性评估,通常按小时计费,我没有可靠报价,不敢随口编一个数字。时间方面,先用一周读懂规范并跑通示例;如果要真正接入现有业务,我给自己留至少一个月。技术门槛是:需要具备编程、逻辑推理和软件验证基础,不是拖拽式工具。第一步是打开文章原链接,下载其提到的示例材料,确认本机是否具备运行所需环境,再决定是否继续。

我也搞错过:最开始我把它当成了“更强的自动化工具”,险些直接重写客户系统。后来才明白,先验证需求是否真的需要严格证明,比先选语言重要得多。

按你的阶段,我会这样选

如果你刚起步、还没有稳定客户,我会先用常规开发方式交付,把预算留给真实需求验证;等客户明确提出安全或审计要求,再请专家做一次可行性判断。如果你已经有 1-2 个客户,我会先挑一个影响付款或隐私的关键流程做小范围试点,不急着迁移整个产品。如果你正在扩规模、面临多人协作或合规审查,我会把形式化验证列入架构评估,同时保留现有系统的稳定版本,避免为了证明而停住交付。

对大多数非技术创业者,这更像一份未来可能用到的技术地图,而不是今天必须打开的瑞士军刀。你可以先用一条关键规则、一个独立验证环节,体会它能否降低沟通和返工成本。