註冊並分享邀請連結,可獲得影片播放與邀請獎勵。

Mai Yang
@MaiYangAI
Build ambassador, SpaceXSI Community 作者 Go 夜读创始人 从顶级访谈里学东西,实操 Cursor / Grok Bot 599 答疑解惑+V:mai_yang
加入 March 2020
820 正在關注    5.9K 粉絲
poteto 又出了一个验证 skill:/create-formal-verification-skill。她已经用 TLA+ 给自己的代码建模,跑出了几个真 bug。 我越来越觉得,让 agent 放手干活,前提是能验证它干得对。这类 skill 比多一个写代码的 skill 更值钱。 我觉得在学习和使用这个 skill 的同时,最好我们能了解一下她为什么会做这个。 我的长文值得你收藏精读 —— 看她这些年怎么一步步攒下来的。
顯示更多
pstack v0.15.27 ships with a new skill /create-formal-verification-skill! it's still in beta, and similar to /create-verification-skill, this is a meta-skill that creates a new skill and formal verification suite based on the characteristics you want to verify. for example, you may want to model state machines and systems with concurrency using TLA+, or use kani in rust to check for undefined behavior. if you're new to formal verification, think of it as mathematically proving properties and invariants (something that must always be true) or "laws" of your system. usually, this means modeling your programs in a separate language like with TLA+ and then running the solver on that spec. newer approaches like with kani and @bendlang take a different approach where there is no separate language: you write kani in rust, and bend in bend (it's also a programming language, and the proofs are written as laws and expressed in its type system). historically formal verification never reached mainstream status because of the difficulty in modeling and writing proofs. it's quite difficult to model your business requirements and keep them in sync! but i expect that we will see more innovation in formal verification in the future as being able to formally verifiy that the code does what you intended gives your agents superpowers in writing correct software. in the meantime though, i've been experimenting with modeling our code with TLA+ and have already found several bugs with the skill created by /create-formal-verification-skill. try it out and let me know how it goes!
顯示更多