Is this invoice a new machine or a repair? How to separate AI extraction from accounting classification
"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:
- Routine maintenance vs. capital addition: Replacing a worn pump or seal to keep an existing machine running in its ordinary condition is a routine repair—expensed immediately in the month it happens, even if the bill is $3,400. Buying a standalone machine, or rebuilding a machine in a way that materially extends its life, is capitalized on the balance sheet and depreciated month by month.
- R&D test rigs vs. production hardware: In a hardware lab, purpose matters too. Under US GAAP ASC 730, as summarized in PwC's Property, Plant, and Equipment guide, materials and equipment acquired for research and development are capitalized under ASC 360 only if they have an alternative future use beyond a single R&D project; a single-use test fixture is expensed, whereas a general-purpose CNC mill or robot arm is capitalized.
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:
- Invoice #1 ($8,716.19): A rotary screw air compressor with tank and dryer, delivered to Bay 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:
- a proposed purpose constrained to new asset, repair, or other
- a one-sentence purpose rationale grounded in the invoice's line items (for example, "Line items include labor and replacement seal kit for an existing CNC mill" vs. "Standalone rotary air compressor unit with serial number")
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:
- Path A —
Create asset: For the $8,716.19 air compressor invoice, clicking Create asset opens the New Asset form pre-filled with the extracted description (from the invoice description or highest-cost line item), serial number (if printed on the invoice), purchase date (from the invoice date), and $8,716.19 acquisition cost (from the invoice total). A person fills in any remaining details, assigns the 60-month useful life, and saves. Only then does Asset Foresight create the register row, post the acquisition journal entry, and schedule $145.27 in automatic straight-line depreciation on the 1st of each month (calculated in integer cents, never by an LLM) to sync with QuickBooks Online or Xero. - Path B —
Record repair: When the $3,400.00 Haas VF-2 service invoice (printing asset tagMILL-1) is attached in the chat composer (or created via the intake upload flow) as an unlinked general invoice or specifically as a repair invoice, it appears in the Review Queue with Record repair in the Verification Station; the reviewer chooses the matchedMILL-1 - Haas VF-2 CNC Millcandidate from the asset dropdown (or, if no match was found, opens the machine's own page to record the repair there) and clicks Record repair, opening the Record Maintenance form pre-filled with kindRepair, the bill's date, $3,400.00 cost, and work description. (By contrast, uploading a general invoice directly from a machine's page links that machine on creation and hides Record repair on the general invoice card, so repair bills meant for the Record repair flow are uploaded unlinked or as a repair invoice.) Server rules refuse to record a repair against a sold or disposed machine by design, and when an Owner or Accountant ticks Post to ledger and saves, Asset Foresight postsDr Repair & Maintenance Expensefor $3,400.00 with the PDF invoice attached to the mill's timeline.
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:
- 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?
- 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
