Link copied
Blog › Green on the Wrong Artifact
AI Workflow

Green on the Wrong Artifact

KG
Teh Kim GuanACMA · CGMA
2026-09-25 · 5 min read
Green on the Wrong Artifact

Four times this week a check passed and the thing the user would see was broken.

Every check was honest and tested something real. None of them tested what a person would actually load in a browser, and in each case that gap held a live defect: for hours in one case, eleven days in another, and sixteen days in a third, on work that had been merged and never shipped.

I see this more often than any other verification failure in agent-built software. The checks were aimed one step upstream of the user.

The four

A website clone that returned 200 everywhere. A marketing site was moved off a hosted builder onto our own edge platform. The import pulled every page, every image, every stylesheet. The smoke test fetched all 35 pages: 200 on every one. Page heights and image counts matched the original on a 15-page sample. Then someone clicked a menu. Nothing happened. Every interaction on the site was dead. The builder's runtime lazy-loads 19 script chunks that no HTML file references by name, and the importer, reading HTML, never saw them. Every page was present. No page worked.

A dashboard that parsed clean and ran dead. A monitoring dashboard is served by an edge worker that holds the whole page as one template string. A change on 10 September added two regular expressions with single backslashes inside that string. JavaScript consumed the escapes before the page was served. One became a real line break, a syntax error that killed the page script. The other silently turned \s+ into s+, splitting text on the letter s. Continuous integration ran a syntax check on the worker file, and the worker file was valid. The page it served was not. It stayed broken for eleven days, because nobody opened the dashboard.

Six demo stores, nine migrations behind. A commerce platform ships database migrations with each merge. Main reached migration 51. Six live demo stores sat at migration 40. Each merge was green. Each pull request passed its tests against a fresh database built from main. No check ever compared main's migrations with what the live stores had applied, so the gap grew silently through eleven merges.

Pages merged, never deployed. Five new pages for a small services site (about, contact, pricing, FAQ, privacy) were merged on 7 September. They were deployed on 23 September, when another change happened to trigger a deploy and the operator noticed origin was three commits ahead of production. The repository had no record of which commit was live.

The named failure

Four stages from source to build, fresh environment and delivered surface, with each check stopping before the delivered surface

I call it green on the wrong artifact: a verification step passes against something adjacent to the delivered product, such as the source file, the build input, a fresh database or the merged branch, while the product as a user receives it is never exercised.

CaseWhat the check testedWhat the user got
Website cloneHTML files return 200Pages with no working interactions
DashboardWorker source parsesServed page with a dead script
Demo storesMigrations apply to a fresh databaseLive databases nine versions behind
Small services siteMerged branch buildsProduction serving a sixteen-day-old commit

The upstream artifact is always more convenient. It is in the repository. It is deterministic. It does not need credentials or a browser. The downstream artifact sits behind a password, on a network, rendered by a runtime you do not control. So the check drifts toward what is easy to reach, and green starts meaning "the input is fine".

Why agents make it worse

This is an inference from one week, not a measured rate. Agent-built work looks more exposed to this failure than human-built work, for two reasons.

Agents report status in the language of their checks. "All 35 pages return 200" is a true sentence, and it reads like success. A human who built the clone might have clicked a menu out of habit. An agent does what its verification step says, and stops.

The sandbox also often forbids the downstream check. In three sessions this week the permission layer denied the network probe that would have tested the live URL, reasonably, because unrestricted network calls from an agent are a risk. The deploy verification gate in one skill could not run from a constrained session at all. When the real check is denied, the agent falls back to the check it can run, and reports that one. The same drift appears in twelve routines that went dark while the dashboard stayed green: the thing being watched was not the thing that mattered.

The fix: aim at the delivered surface

Each of the four has a specific repair, and the repairs share a shape.

Clone: assert the runtime, not the files. Load each page in a real browser, fail on any console error, and click one interactive element per template. The dead menu would have failed that in seconds. The cloning skill now carries the lazy-chunk trap and a console-error assertion.

Dashboard: test what is served. The follow-up ticket makes continuous integration evaluate the page string exactly as the worker does, extract every served script block, and parse each one. The check now runs on the delivered bytes, not the file that produces them.

Stores: compare applied to expected. A drift check lists each live store's applied migrations and compares them with main. Any store behind main is a red line on the dashboard. This one is cheap and was filed the same day the gap was found.

Deploys: record what is live. The deploy writes the deployed commit to a place the repository can read, and a check flags when origin has been ahead of production for more than a day. Merged is not shipped, and the system should say so.

A rule for the verification step

Ask one question of any check before trusting its green: what would the user have to do to see this break, and does the check do that?

If the user opens a page and clicks, the check must open the page and click. If the user reads a dashboard, the check must parse what the dashboard serves. If the user hits a live store, the check must read the live store's state. Anything less is a check on an input, and it should be labelled as one. This is the working end of the verification loop: the loop is only as good as what it touches.

Where the sandbox denies the real check, the honest report is a stated gap rather than a weaker green: "Build passed. Live URL not probed: network check denied in this session. Render unverified." That sentence appeared in two logs this week, and both times it pointed straight at work that still needed a human to open a browser.

Recommendation

  • Label every check by its target: source, build, fresh environment, or delivered surface. Only the last one proves the user's experience.
  • Add one delivered-surface check per product, even a crude one. One page load with a console-error assertion catches more than a hundred file checks.
  • Track merged versus deployed as a first-class number, not something discovered by accident.
  • Report denied checks as gaps, never as passes on a smaller scope.

Part of the Product Pipeline series from KG Consultancy.

About the Author
KG
Teh Kim Guan
Product Consultant · General Manager, PEPS Ventures

Strategy and technology are the same decision. Over 15 years in fintech (CTOS, D&B), prop-tech (PropertyGuru DataSense), and digital startups, I have built frameworks that help founders and executives make both moves at once. Based in Kuala Lumpur.

More from the blog
AI Workflow
The Wrong Note That Kept an Outage Alive for Eight Nights
A confident wrong note in my knowledge base turned a five-minute fix into eight failed nights. Judge a job by the state it changes, not by its exit code.
2026-09-18 · 6 min read
Frameworks
A Rule That Lives Only in Prose Does Not Fire
Four rules I believed were enforced were all written prose, and all four failed in one week. The four executable checks caught every error they were pointed at.
2026-09-11 · 6 min read
AI Workflow
A Fix That Swings From Zero to Everything Is Not Yet a Fix
I measured one task board three times and got 0 of 281, 131 of 131 and 107 of 131. The board never changed. The instrument did. Treat 0% or 100% as a warning.
2026-10-23 · 6 min read
Work with KG

Working on a 0→1 product?

I help founders and operators go from idea to validated product. Let's talk about yours.

Get in touch →