惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
V
Visual Studio Blog
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
B
Blog
I
InfoQ
博客园 - 三生石上(FineUI控件)
阮一峰的网络日志
阮一峰的网络日志
F
Fortinet All Blogs
H
Help Net Security
博客园 - Franky
宝玉的分享
宝玉的分享
博客园 - 司徒正美
C
Check Point Blog
G
Google Developers Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Jina AI
Jina AI
T
The Blog of Author Tim Ferriss
MongoDB | Blog
MongoDB | Blog
云风的 BLOG
云风的 BLOG
A
About on SuperTechFans
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
The AI Coding Era Makes Boring Tests More Valuable
Vincent Schmalbach · 2026-06-25 · via Hacker News - Newest: "AI"

Agents can now produce cheap, plausible diffs. A developer can describe a bug, give it to an agent, and get a patch with tests in under a minute. Checking whether a patch does the right thing, fits the codebase, and will continue to work as the project evolves isn't cheap either.

Generation speed is faster than review capacity. When the agent writes both the implementation and the tests, a green test suite can feel like a badge instead of an assurance that the code is correct. Teams still have to decide if generated tests are independent proof, or just more code to review.

The diff indicates behavior

When a patch does not have a test, the reviewer has to guess the intent of the code. A good test says, in no uncertain terms, the behavior you want: for this input, this has to be true; this regression has to stay fixed. Boring tests are important because they are easy to read and focus on one behavior.

METR's maintainer-review study finds benchmark success might be better than what maintainers will merge. Four active maintainers across three real repositories manually reviewed 296 AI-generated PRs that had already passed an automated grader. The grader's pass rate was about 24.2 percentage points higher than maintainer merge decisions, and about half of those test-passing PRs would not have been merged. Tests are green, but patches for core functionality failures, breakage elsewhere, and code quality issues are still rejected by maintainers.

Passing tests reduces uncertainty, but review still has to go on. Reviewers still need to evaluate fit, scope, maintainability, and whether the tests express the right behavior. FrontierCode separately scores behavioral correctness, regression safety, test correctness, scope, and code quality.

Generated tests can inherit the same bug

The worst mistake is to believe that the tests of an agent are independent evidence. They can have the same misunderstanding. The code passes because it matches that idea, and the tests pass because they assert that idea.

SWE-bench Verified exists because the quality of tests determines what benchmark results mean. 93 Python developers from OpenAI labeled 1,699 SWE-bench samples. They flagged 61.1% for unit tests that might unfairly reject valid solutions, 38.3% for underspecified problem statements, and filtered out 68.3% overall. Test review must ensure that assertions and fixtures match the expected behaviour, including edge cases.

Start with assertions, fixtures and edge cases. Ask if the test would catch a plausible wrong implementation. A test that just says the value is not null, or just says it matches a snapshot, or just says the happy path repeats is weak evidence. Incomplete test coverage is also cited by FrontierCode as a source of false positives.

Begin with the test diff. If it makes the behavior obvious, then check the code diff before trusting it.

Fail the first test

See if the new test would have failed before the patch, for bug fixes and behavioral changes. A test that fails on the base commit and passes after the change tests the behavior being fixed. A test passing before and after is probably testing something else.

This is included in the evaluation model of SWE-bench. FAIL_TO_PASS tests are failing before the solution PR and passing after it. PASS_TO_PASS tests also ensure that unrelated behavior works. It checks both "did the fix solve the issue?" and "did the fix not cause regressions?"

FrontierCode applies the same idea to agent-written tests: it runs submitted tests on the base commit, and requires that they fail. If they pass along the original broken code, they have not caught the bug. This is a cheap and deterministic check.

That rule does not always work. Some characterization tests prior to a refactor, tests for brand-new APIs, and some performance or concurrency tests might pass on the base commit for valid reasons. There should usually be failure before a fix for a test that is supposed to prove a behavioral fix. If it is absent, check why the test still passes before the fix.

Smaller patches are easier to review

SlopCodeBench measured what happens when agents extend earlier solutions across iterative development checkpoints. No evaluated agent solved any problem end to end. The best strict checkpoint success rate was 14.8%. Structural erosion increased in 77% of the trajectories, and verbosity in 75.5%. Some early damage was limited by prompt-side interventions, but drift was not prevented, and both tested prompts increased cost per checkpoint at the same time as strict performance declined.

Shortcuts are accumulated and passed down to subsequent tests as agents continue to build on prior choices. Late tests are more likely to reflect the structure that appeared than to verify one definite behavior. Small tasks leave room for boring tests that check one behavior. Broad tasks make tests vague receipts for a large generated diff, harder to review.

FrontierCode takes scope into account as a mergeability criterion, by considering file boundaries, diff size and semantic locality. Scope determines whether a test is able to describe what changed such that a reviewer can verify it.

Define intended behavior in plain language, then ask for code. Keep a patch to one behavior change. When possible, run new tests against the base commit. Review the test diff as part of the patch.

Vroni What I'm building

Delegate tasks. Get software.

Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.

Take a look at vroni.com

I respect your privacy. Unsubscribe at any time.