AIToday
Large Language ModelsAI Coding AssistantsAI Business & IndustryZenn AI/MLPublished: Oct 19, 2026, 22:00 JST

Claude Code's 94,273-yen "loss" was a 36,636-yen profit

Claude Code's 94,273-yen "loss" was a 36,636-yen profit

3 Key Points

  1. What happened

    A solo car-accessories seller had Claude Code build an order-management system and asked it to match sales against purchase costs; the AI applied each order's total purchase cost to every line item in that order, doubling cost and turning profit into a reported 94,273-yen loss instead of a 36,636-yen profit.

  2. Why it matters

    The AI was not lying but had mistaken the unit of calculation — per line item instead of per order — and it was confident enough that the seller nearly raised prices or delisted the product.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The seller runs a one-person online car-accessories business and built an order-management system with Claude Code to compare sales against actual purchase costs per product. The trap was structural: a single order can contain multiple line items, while the purchase order for stock is placed once per order. Applying the full order-level purchase cost to each line item doubled the cost side and made a profitable product appear to be a 94,273-yen loss.

The same month brought a second, similar error. A calculation concluded that wholesale sales were almost in the red because it omitted the shipping fees received from customers; once that revenue was added, wholesale turned out to be 2〜9% profitable. In both cases the AI was confidently wrong, and in the first case the seller nearly acted on the bad number by raising prices or delisting the product.

The seller's response was to adopt three habits: asking what unit a figure was aggregated on, hand-checking one case with a calculator, and asking what income or costs are missing. The correction — match purchase cost and sales at the order level — was written into Claude Code's memory so the same mistake would not recur, which points to a practical role for the human as the one who verifies the numbers.

FAQ
Why did the AI report a loss when the product was profitable?
The AI applied each order's total purchase cost to every line item in that order. With two line items per order, cost doubled while sales stayed the same, making a profitable product look like a loss.
What other calculation error did the seller catch that month?
A separate calculation said wholesale sales were almost in the red because it left out shipping fees received from customers. Adding that revenue showed wholesale was 2〜9% profitable.
How does the seller prevent the same mistake from repeating?
The seller writes the correction into Claude Code's memory. One line now says purchase cost and sales must always be matched at the order level.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articlePax8 launches 8os to govern AI agents for IT partners