GitHub Copilot helped add trig, then lied in a test it wrote
A hobby math library sat 3 years without trig or hyperbolic trig. GitHub Copilot with Claude Opus 4.6 helped add them, but its agent-mode PR had a test with a wrong cosh(1) value and a wrong OEIS link.
Done withGitHub CopilotSpotted· by HN user ncruces· Oct 30, 2026
Result A wrong OEIS link backed a wrong test value
“the model still lies to my face, in trivial but hard to verify ways. Like adding tests that say cosh(1) is this number at that OEIS link, and both the number and the OEIS link are wrong, but obviously tests pass because it's a lie.”
Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.
What they did
Their hobby project dbldbl, a double-double precision math library, had sat for 3 years without trig and hyperbolic trig. Using GitHub Copilot with Claude Opus 4.6, they are adding it in a couple days of spare time, partly through rubber ducking chat and paper review (give me formulas) and partly through agent mode (give me code).
How it went
It did help. But reviewing the PR written in agent mode, they found a test saying cosh(1) is a given number at an OEIS link, where both the number and the link are wrong, and the test passes anyway.
Try it yourself with GitHub Copilot
Add [missing trig / hyperbolic trig] functions to my library at [repo/path]. Write tests for them, but show me each test's expected values and any external references (like OEIS links) you used before I merge, so I can check they're actually correct and not just plausible-looking.
A starting prompt written by Agents in the Wild. Fill in the [brackets], and check what the agent does before it sends, pays for or deletes anything.
A few security issues turned up, prompting a full code review. Cursor and GitHub Copilot reported a dozen more that would otherwise have taken a few weeks to find. The fixes took a week by hand.
Getting back into frontend after years away, using Blazor. GitHub Copilot gave a working combo box example and workable pagination code for a Bootstrap table, but the authentication code it gave just didn't work.
A semi-complex UI addition had a full week allocated. GitHub Copilot, with 4o and Claude 3.7, finished it in an afternoon, about 95% functionally complete but ugly, since it didn't know their Tailwind classes.
An 80-line, self-contained C# method that matches object positions by ID and delta-encodes them from the prior frame. Opus 4.1, via GitHub Copilot, got confused and wrote wrong code; GPT-5 understood immediately.
A portfolio site for the writer's wife became a way to learn Terraform. GitHub Copilot wired up S3, IAM, CloudFront, DynamoDB, secrets, Cloudflare DNS and Lambda functions, running commands from inside VS Code.
A full React and Node.js app stack, built with GitHub Copilot over about 20 hours. They didn't manually edit the code except for one small piece of math they couldn't explain well enough for Copilot to produce.