
What happened
The author, a working engineer, says AI-written withholding-tax code containing 1_000_000 passed local tests in Node.js but threw a syntax error when pasted and saved in the GAS editor.
Why it matters
A second failure mode was subtler — AI code that computes tax per line item instead of once per invoice per rate still runs, so tests miss it and only a reader who knows the invoicing rules catches it.
Ask the AI about this article. Questions and answers are published on this page
The author, whose day job centers on reviewing AI-written code, began building invoice and form automation in GAS as a side business and chose to review his own AI-generated code with the same eye he uses at work. The 1_000_000 case shows why a passing test suite is not proof of portability — the code was correct JavaScript for Node.js, and only the GAS editor's save step exposed the problem.
The ten checkpoints are grouped into three questions: whether the code does what was asked, whether it actually runs in GAS, and whether it holds up in operation. The per-line tax rounding example illustrates the middle gap — a program can run correctly and still violate the invoicing rules, which is why the author pairs code reading with running it on a test spreadsheet and checking first-party sources such as National Tax Agency examples and Google's official documentation. The trigger duplication and try...catch examples point the same way: AI tends to write code that works once, while the reviewer's job is to ask what happens on the second run or when one step fails.
Pick your industry and the AI tools you use, and get news related to your work every day.
By signing up you agree to the Terms of Service and Privacy Policy.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
With branch protection (a GitHub rule blocking merges to protected branches) unavailable on a free-plan privat…

The guide compares manual diff-piping, Git worktrees, OpenAI's codex-plugin-cc (Claude Code calling Codex only…

A Zenn article by developer @aman179102 lays out a pipeline that validates LLM output against a pydantic or zo…

A Zenn author proposed NYUv2-bench, a benchmark where AI agents perform NYUv2 AI engineering under constraints…

After 18 prompt rewrites and 12 changes to how stories were generated, the developer moved 'Hibi no Bunko' fro…

OpenAI published a customer story on December 4 describing how Sierra engineer Allen Chen used Codex to rebuil…
