Is this invoice a new machine or a repair? How to separate AI extraction from accounting classification

· Asset Foresight

"Both invoices are over $2,500 and both came from industrial equipment vendors—why does one go on the balance sheet for five years while the other hits this month's expenses?" Technical founders and finance leads at machine shops, robotics labs, and hardware startups run into this question every month. On the surface, two vendor PDFs look nearly identical: each has a supplier name, an invoice number, part numbers, freight, and a dollar total. Underneath, they belong on completely different financial statements—and letting an AI agent guess that classification and write directly to your ledger is one of the fastest ways to corrupt your books.

Consider why dollar thresholds alone cannot classify equipment paperwork. Under the IRS tangible property regulations, the de minimis safe harbor lets a business without an audited ("applicable") financial statement deduct tangible items up to $2,500 per invoice or item ($5,000 with an applicable financial statement and a written policy at the start of the year). Once an invoice crosses $2,500, however, the dollar amount stops answering the question:

Take an invented shop-floor example. A precision machine shop runs a Haas VF-2 CNC Mill bought for $68,000 on a 60-month useful life ($1,133.33 a month in straight-line depreciation). On Tuesday morning, two PDFs land in the inbox:

  1. Invoice #1 ($8,716.19): A rotary screw air compressor with tank and dryer, delivered to Bay 2.
  2. Invoice #2 ($3,400.00): A replacement coolant pump assembly, spindle seal kit, and six hours of field technician labor for the Haas VF-2 CNC Mill (referencing asset tag MILL-1).

Both bills exceed $2,500. Both list industrial hardware line items. If a naive automation rule capitalizes every equipment vendor bill over $2,500, the $3,400 repair gets booked as a fake "asset" that overstates the shop's balance sheet and understates this month's maintenance expense by $3,343.33. Conversely, if an AI prompt misreads the air compressor as a spare part and expenses all $8,716.19 at once, this month's profit drops by $8,570.92 compared to spreading the compressor over 60 months ($145.27 a month).

How Asset Foresight architectures this boundary. In Asset Foresight, we designed the document pipeline around a strict separation of duties: vision-and-language models extract fields and propose a document purpose, deterministic graph checks validate the data against your live register, and a human reviewer chooses the final execution path in the Review Queue. Here is how the five architectural layers work end to end.

1. Typed extraction with a proposed document purpose and rationale. When you upload a PDF invoice, Asset Foresight's intake specialist parses the document into a strict typed schema—vendor name, invoice number, invoice date, total amount as a decimal string (converted to integer cents only when persisted to the database and ledger), and line items—alongside two classification fields:

Crucially, classifying a document's purpose never writes to the equipment register or accounting ledger. It only populates the draft ingestion record.

2. Parallel deterministic validation and candidate matching. Before the draft reaches a reviewer, the intake pipeline runs a deterministic graph workflow built on the pattern described in Google's Agent Development Kit (ADK). Four software checks execute in parallel: vendor lookup against your vendor list, dollar-amount range validation, valid calendar date check, and duplicate-invoice detection. For unlinked repair bills, the backend runs deterministic candidate matching against your non-retired machines—matching general invoices by exact asset code first and then normalized serial number (with a third brand-plus-model tier for repair invoices, damage reports, and voice fault reports whose schemas extract brand and model). If an unlinked invoice has no matching asset code or serial number, the Verification Station shows "No matching asset found. Open the asset and record the repair there." Meanwhile, if a repair bill is uploaded in the chat assistant, the Maintenance specialist checks your vendor directory to report whether the service supplier is already on file.

3. Split-screen Verification Station review with human-correction provenance. Instead of asking a reviewer to read raw JSON or chat paragraphs, Asset Foresight opens each queued document in the Review Queue's split-screen Verification Station—the original PDF on the left and the pre-filled extraction form with field-level confidence scores on the right. Above the form fields, the Verification Station states: "The assistant reads this as: a new asset purchase" (for the $8,716.19 air compressor) or "The assistant reads this as: a repair" (for the $3,400.00 CNC spindle seal bill), alongside the assistant's extracted reasoning.

If the assistant ever misclassifies a document—say, a $4,800 bill for a custom R&D fixture that has no alternative future use—the reviewer changes the Purpose dropdown on the form and saves. Asset Foresight stores the reviewer's override as a human correction while preserving the model's original classification alongside it, maintaining a complete W3C PROV audit trail of what the model read and what the human changed.

4. Mutually exclusive execution paths (Create asset vs. Record repair). In Asset Foresight, the UI and server enforce two separate, mutually exclusive actions once a reviewer checks a document:

Once a document has been used to create an asset, the server blocks it from ever being used to record a repair (and vice versa). An invoice can never be double-counted across both the balance sheet and the P&L.

5. Feeding downstream capital foresight. Because that $3,400.00 bill is saved cleanly as a verified repair on the Haas VF-2's timeline rather than dumped into an unlinked expense account, Asset Foresight's deterministic analytics can use it immediately. On Enterprise, asking the Insights specialist for retirement candidates or a repair-or-replace check automatically sums the trailing 12 months of verified repair bills against the mill's $68,000 original cost and current net book value. The agents do the legwork. You make the call.

What to do on Monday. Pull the last ten equipment or shop-floor invoices over $2,500 that your team paid. For each one, check two things:

  1. Can you see—in one click from the accounting entry—the original PDF line items that determined whether it was booked as a new asset or a routine repair?
  2. If a repair bill was booked as an expense, is it linked to the specific serial-numbered machine it repaired, or is it sitting in a general "Repairs & Maintenance" bucket where nobody can tell which machine is eating your maintenance budget?

General information, not tax advice. Your accountant knows your situation.

Sources:

Internal Revenue Service, "Tangible Property Final Regulations — De Minimis Safe Harbor Election"

PwC, "Property, Plant, and Equipment Guide, Section 7.3: Research and Development Costs"

Agent Development Kit, "Graph-based agent workflows"

W3C, "PROV-Primer: An Introduction to the PROV Data Model", 2013