[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114989":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":9,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":14,"starSnapshotCount":14,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},114989,"vstack","hao-ai-lab\u002Fvstack","hao-ai-lab","Formal verification workflow and skill stack for coding agents (TLA+, Z3, Apalache, TLAPS)",null,"Python",96,6,58,0,5,32,17,71.74,"MIT License",false,"main",[],"2026-11-20 21:55:55","2026-11-23 11:57:38","\u003Cp align=\"center\">\n  \u003Cimg alt=\"vstack\" src=\"assets\u002Fvstack-logo.svg\" width=\"360\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fhaoailab.com\u002Fblogs\u002Fverifiable-llm-infra\u002F\">\u003Cb>Blog\u003C\u002Fb>\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fdocs.google.com\u002Fspreadsheets\u002Fd\u002F1FL5QqgzEpja9k8Zw6GmIQDtHveddjj1coHe1MJ3Ts-Q\u002Fedit\">\u003Cb>Verified AI Infra Bugs\u003C\u002Fb>\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fhao-ai-lab\u002Fveriserve\">\u003Cb>VeriServe\u003C\u002Fb>\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fx.com\u002Fhaoailab\u002Fstatus\u002F2120595980659917024\">\u003Cb>X\u003C\u002Fb>\u003C\u002Fa>\n\u003C\u002Fp>\n\n`vstack` is a formal verification toolkit for coding agents. Naive agents routinely game formal checkers by weakening invariants, dropping timeout branches, or adding unverified assumptions; `vstack` enforces mechanical gates across TLA+, Apalache, TLAPS, and Z3 so agents find real bugs and prove critical state machines without cheating.\n\n![vstack workflow](assets\u002Fvstack-anti-cheat.gif)\n\n## News\n\n- **[2026-11-17]** Shared 5 [SGLang](https:\u002F\u002Fgithub.com\u002Fsgl-project\u002Fsglang) bug case studies and fix PRs on [X](https:\u002F\u002Fx.com\u002Fhaoailab\u002Fstatus\u002F2122758544462434802), with 40+ bugs now tracked across SGLang and vLLM in our [bug tracker](https:\u002F\u002Fdocs.google.com\u002Fspreadsheets\u002Fd\u002F1FL5QqgzEpja9k8Zw6GmIQDtHveddjj1coHe1MJ3Ts-Q\u002Fedit).\n- **[2026-11-13]** Shared 5 [vLLM](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fvllm) bug case studies on [X](https:\u002F\u002Fx.com\u002Fhaoailab\u002Fstatus\u002F2121320482876399825), with 15+ bugs tracked and growing in our [bug tracker](https:\u002F\u002Fdocs.google.com\u002Fspreadsheets\u002Fd\u002F1FL5QqgzEpja9k8Zw6GmIQDtHveddjj1coHe1MJ3Ts-Q\u002Fedit).\n- **[2026-11-11]** Released `vstack` along with our [blog post](https:\u002F\u002Fhaoailab.com\u002Fblogs\u002Fverifiable-llm-infra\u002F), [VeriServe](https:\u002F\u002Fgithub.com\u002Fhao-ai-lab\u002Fveriserve), and [launch X thread](https:\u002F\u002Fx.com\u002Fhaoailab\u002Fstatus\u002F2120595980659917024).\n\n## Quick Start\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fhao-ai-lab\u002Fvstack.git && cd vstack\nuv tool install -e .\nvstack setup   # checks Java\u002FTLC\u002FZ3 and installs skills, agents and the docs they link to into Claude Code, Codex, or Cursor\n```\n\nOr install directly as a plugin in Claude Code via `\u002Fplugin marketplace add hao-ai-lab\u002Fvstack` and `\u002Fplugin install vstack`, or in Cursor via `\u002Fadd-plugin vstack`.\n\nRun `\u002Fvstack-mode` on a target module and safety property:\n\n```text\n\u002Fvstack-mode verify that our RDMA KV cache lease manager never recycles an in-flight page on timeout.\n```\n\n## Anti-Reward-Hacking Gates\n\n| Gate | What It Enforces |\n| :--- | :--- |\n| **[Role isolation](docs\u002Flayer-0.md)** | Separate coordinator, worker, and red-team agents keep specs, modeling, and review independent. |\n| **[Hash-pinned specs](docs\u002Fcontracts.md)** | SHA-256 locks safety properties and theorem signatures so workers cannot weaken the goal. |\n| **[Line-anchored models](docs\u002Fmethod-selection.md)** | Every state variable and action maps to an exact `file:line@commit` across TLC, Apalache, and Z3. |\n| **[Mutation & trace gates](docs\u002Fgates.md)** | Models must fail on historical bugs, pass with the fix, fail when guards are removed, and [replay real traces](docs\u002Ftrace-validation.md). |\n| **[Exposure gate](docs\u002Fexposure-gate.md)** | A finding is reported as caught by formal checking only if a faithful model with every bug switch off violates a named property, a red team fails to refute it, and it reproduces on a real engine next to a passing control. Shell models, experiment-only failures and calibration runs do not count. |\n| **Proof & runtime checks** | Critical state machines scale to unbounded TLAPS proofs with preconditions mirrored as runtime checks. |\n\nThe **[model adequacy readout](docs\u002Fmodel-adequacy.md)** is not a gate: it reports how closely a model follows its code (trace acceptance, historical fix coverage and blind detection recall, each with its denominator and interval) and sets no thresholds. Bug hunts report a light version; full verification and regression skills report all of it.\n\n## Recommended Models\n\n| Workflow Stage | Recommended Models | Why |\n| :--- | :--- | :--- |\n| **Modeling, Proofs & Red-Team** | `Fable 5.2`, `GPT-6.1-Sol`, `Gemini 4 Carbon` at high reasoning effort | Strongest at state-machine abstraction, inductive invariants, and catching missing guards. |\n| **Code Analysis & Repro Harness** | `Claude Opus 5.5`, `Gemini 4 Carbon` | Fast and reliable at navigating large Python\u002FCUDA codebases and building multi-GPU reproducers. |\n\n## Case Studies\n\n- **AI Infra Bug Hunting:** Concurrency, lifecycle, and numerical bugs uncovered across [SGLang](https:\u002F\u002Fgithub.com\u002Fsgl-project\u002Fsglang) ([X case studies](https:\u002F\u002Fx.com\u002Fhaoailab\u002Fstatus\u002F2122758544462434802)) and [vLLM](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fvllm) ([X case studies](https:\u002F\u002Fx.com\u002Fhaoailab\u002Fstatus\u002F2121320482876399825)), tracked in [Verified AI Infra Bugs](https:\u002F\u002Fdocs.google.com\u002Fspreadsheets\u002Fd\u002F1FL5QqgzEpja9k8Zw6GmIQDtHveddjj1coHe1MJ3Ts-Q\u002Fedit) and synced from [`bugs\u002Fverified-bugs.csv`](bugs\u002Fverified-bugs.csv) with `Prior Status` separating net-new (`Unknown`) discoveries from partly tracked (`Partly Known`) and independently caught unfixed upstream bugs (`Known`).\n- **Community Verification:** Reproduce an `In Progress` candidate on hardware, validate an open fix PR, or contribute a new formally caught infra bug via PR to [`bugs\u002F`](bugs\u002FREADME.md) to be credited under **`Human Verifier`**.\n- **[VeriServe](https:\u002F\u002Fgithub.com\u002Fhao-ai-lab\u002Fveriserve):** A Prefill-Decode serving engine built with `vstack`, proved across 226 TLAPS modules with +0.18% average p50 TPOT overhead on NVIDIA GB200.\n\n## Contributors\n\n\u003Cp>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fyuxuandexter\">\u003Cimg src=\"assets\u002Fcontributors\u002Fyuxuandexter.png\" width=\"56\" alt=\"Yuxuan Zhang\" title=\"Yuxuan Zhang (@yuxuandexter)\">\u003C\u002Fa>&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Falexzms\">\u003Cimg src=\"assets\u002Fcontributors\u002Falexzms.png\" width=\"56\" alt=\"Minshen Zhang\" title=\"Minshen Zhang (@alexzms)\">\u003C\u002Fa>&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FDavids048\">\u003Cimg src=\"assets\u002Fcontributors\u002FDavids048.png\" width=\"56\" alt=\"Junda Su\" title=\"Junda Su (@Davids048)\">\u003C\u002Fa>&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FBoreas618\">\u003Cimg src=\"assets\u002Fcontributors\u002FBoreas618.png\" width=\"56\" alt=\"Yi Sun\" title=\"Yi Sun (@Boreas618)\">\u003C\u002Fa>&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FGindaChen\">\u003Cimg src=\"assets\u002Fcontributors\u002FGindaChen.png\" width=\"56\" alt=\"Junda Chen\" title=\"Junda Chen (@GindaChen)\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n## Acknowledgments\n\nSkill orchestration draws inspiration from Lauren Tan's [pstack](https:\u002F\u002Fgithub.com\u002Fcursor\u002Fplugins\u002Ftree\u002Fmain\u002Fpstack). Trace validation and proof gates build on lessons from [Specula](https:\u002F\u002Fgithub.com\u002Fspecula-org\u002FSpecula), [SysMoBench](https:\u002F\u002Fgithub.com\u002Fspecula-org\u002FSysMoBench), and [TLAPS-Bench](https:\u002F\u002Fgithub.com\u002Fspecula-org\u002FTLAPS-Bench). We thank the TLA+, Z3, SGLang, and vLLM communities.\n\n## Citation\n\n```bibtex\n@misc{vstack2026,\n  title        = {Towards Verifiable {LLM} Infra},\n  author       = {Zhang, Yuxuan and Zhang, Minshen and Su, Junda and Sun, Yi and Chen, Junda and Zhang, Hao},\n  year         = {2026},\n  month        = nov,\n  howpublished = {Hao AI Lab Blog},\n  url          = {https:\u002F\u002Fhaoailab.com\u002Fblogs\u002Fverifiable-llm-infra\u002F}\n}\n```\n\n## License\n\nMIT License — see [LICENSE](LICENSE) and [NOTICE.md](NOTICE.md).\n","vstack 是一个面向编程智能体（coding agents）的正式验证工作流与技能栈工具包。它集成 TLA+、Z3、Apalache 和 TLAPS 等形式化方法工具，通过角色隔离、哈希锁定规范、行级模型锚定和变异\u002F轨迹验证等机械式防护门，防止智能体在验证过程中弱化不变式或引入未验证假设。项目聚焦于提升 LLM 驱动基础设施（如 vLLM、SGLang）的状态机安全性与可证明正确性，适用于需高保障验证的 AI 系统开发、关键协议建模及大模型辅助编程中的可信代码生成场景。",2,"2026-11-24 04:49:59","CREATED_QUERY"]