SECURITY ENGINEERING FOR AI AGENTS
找智能体工具链里的缺陷 → 证明它确实存在 → 再交给上游
I look for the defects in the tooling agents run on, and I prove each one before opening a PR.
- Contract drift — a docstring promising a parameter the signature dropped; a README link to a file that no longer exists; a constant nothing reads while its literal is copy-pasted.
- Runtime harnesses — Pipecat (voice / streaming), Harbor (agent evals), llm-compressor, NeMo.
- Local-first security tooling — static checks and evals that run without a provider key.
| artifact | claim | verify |
|---|---|---|
doc-drift v0.1.0 |
14 stdlib-only checkers for docs that stopped being true. Every rule was validated on a real repo; the false-positive classes are written down with the repo that produced each. | selftest ok ran=14 |
doc-drift CI |
3 operating systems × 2 Python versions, plus a step that fails the build if a checker imports a third-party package. | green badge |
| merged PRs | Every merge into a repository I do not own — the count in the first badge, maintainer by maintainer, straight from GitHub search. | open, sort by repo |
136 findings → 2 real, 134 changed the checker. Six repos, three ecosystems. The one that survived on the first pass is filed upstream (
llm-compressor#3526). A rule that only ever finds things is guessing.Counts. The first badge counts merges into repositories I do not own; the board's first figure is every merged PR on this account, own repositories included. The gap between the two is the point. Both come from the ledger, reconciled against the GitHub API, and dated in the commit that last touched
stats/.
pipecat#6690—SUMMARY_TOKEN_BUFFERwas documented as the summary buffer, but two0.8literals were used instead; both now read the constant. Merged 13 minutes after it opened.harbor#4213— a trial lock that records a digest foragent.load_trajectory, not just its path.harbor#4214— a regrade reuses a trial whose source was a successful regrade, instead of re-running it.- 62 of my own stale PRs closed and archived in one pass, each with the patch kept.
32 self-tested checkers · 185 scripts · aqfxz_zh@qq.com · Shanghai, China



