Schema Tax

Audit Trail for Extracted Data From Tax Forms

By Schema TaxPublished Updated

An audit trail for extracted data is a record kept beside each number taken from a tax form. It names the source file, page, box number and field name, lists the checks the value passed, and logs each edit with the old value, new value, editor and time. With it, any number traces back to its box.

What an extracted data audit trail records

An extracted data audit trail is the set of facts that lets someone rebuild how one value got from a form into a spreadsheet. For tax forms, that means six things for every value: the source file, the page, the box number, the field name, the checks it passed, and any edits a person made.

NIST's glossary defines an audit trail as "a chronological record" that reconstructs the sequence of activities leading to an event, from start to outcome. The NIST glossary entry for audit trail uses that wording across several of its security publications. Applied to extraction, the event is a number landing in a cell, and the record shows every step it took to get there.

Each of the six facts answers a different question:

  • Source file. Which upload did this come from? A file name alone is weak, because names repeat. A stable file ID, plus the original name, is better.
  • Page. Which page of that file? A broker statement or a scanned client folder can run to dozens of pages, and "somewhere in the PDF" is not an answer.
  • Box number. Which box on the form? "Box 1" means wages on a W-2 and rents on a 1099-MISC, so the box only makes sense next to the form type.
  • Field name. What does the value mean? A fixed name such as wages_tips_other_compensation survives a change of form layout or issuer.
  • Checks passed. Which tests did the value go through? A W-2 Box 4 that equals 6.2% of Box 3 has passed a rate check; a Box 1 that was never compared with anything has not.
  • Edits. Did a person change it? If so, the trail needs both the original and the replacement.

A seventh field is worth adding when software did the reading: a flag for whether the value was marked uncertain and confirmed by a person. That single yes or no separates "the machine read it and nobody looked" from "a reviewer checked it against the image".

Schema Tax keeps the box number, the field name and the checks passed with every value it reads, which covers three of the six facts at the point of extraction. The rest depend on how you store files and handle edits afterward.

Why should every extracted value trace back to its source box?

Every extracted value should trace back to its source box because someone will eventually ask where a number came from, and the answer needs to take seconds, not an afternoon. A client, a lender, a reviewer or the IRS may question one figure, and a value without a source has to be found again by hand.

Three people ask that question most often.

A client asks why their return shows $61,850 in wages when they remember earning more. A preparer with a traceable value opens the W-2, page 1, Box 1, and shows the client the printed figure. The conversation then moves to the real cause, such as pre-tax retirement contributions, instead of a search for the right page.

A lender asks how a borrower's income was calculated. Loan files often combine several W-2s and 1099s into one figure. If each component carries its file, page and box, the underwriter can check any line without asking for the whole folder again.

An examiner asks for support. The IRS page on what kind of records you should keep says supporting documents matter "because they support the entries in your books and on your tax return," and that all requirements for paper records "also apply to electronic records." A spreadsheet of extracted numbers is only as good as its link back to the documents that support it.

Traceability also catches errors before anyone outside asks. When a total looks wrong, a reviewer can sort by source file and spot the form that was read twice, or the 1099-INT whose interest landed in the dividends column. Without source fields, the same review means opening every PDF.

Recording human edits in the extracted data audit trail

A human edit is any change a person makes to an extracted value after the software read it. The extracted data audit trail should record four facts for each one: the original value, the new value, who made the change and when. A reason field is a useful fifth.

Overwriting the original is the most common way traceability breaks. If a reviewer changes a W-2 Box 1 from $61,580 to $61,850 and the old number disappears, nobody can later tell whether the software misread the form or the reviewer mistyped. Keeping both values answers that question in one look.

"Who" should name a person, not a shared login. The FTC's guide to the Safeguards Rule, which lists tax preparation firms among the businesses it covers, tells covered businesses to "maintain a log of authorized users' activity and keep an eye out for unauthorized access." An edit log that names each user serves that purpose and the traceability purpose at once.

"When" should be a full timestamp with a time zone. A date alone cannot order two edits made on the same day, and time zones matter when a firm has staff in more than one state.

A short reason helps more than people expect. Free text works, but a small fixed list is easier to filter later:

  • misread digit
  • wrong box
  • corrected form received
  • value missing on scan

The "corrected form received" reason deserves its own handling. When a payer sends a corrected 1099, the new value should replace the old one in the working data, but the trail should still show both forms and both values. A preparer who filed with the original needs to see that a correction arrived afterward.

Edits made in a spreadsheet after export are the hardest to track. Most spreadsheet tools keep version history, but it is not tied to a specific field or form. Where you can, make corrections in the extraction tool before export, so the edit sits next to the value it changed.

Carrying the audit trail through a CSV or Excel export

A CSV or Excel export keeps the audit trail only if the trail travels as columns. Once data leaves the extraction tool, the only traceability left is what sits in the file. A row with a bare amount and no source columns cannot be traced, however careful the tool was.

An example audit record for one W-2 Box 1 value

The record below is a fictional example for a single W-2 Box 1 value. The names, numbers and IDs are made up. It shows a value that the software flagged as uncertain, a reviewer corrected, and the checks then passed.

{
  "form_type": "W-2",
  "tax_year": 2025,
  "field": "wages_tips_other_compensation",
  "box": "1",
  "value": 61850.00,
  "source": {
    "file_id": "f_8c21",
    "file_name": "example-w2-jordan-sample.pdf",
    "page": 1
  },
  "employee_ssn": "XXX-XX-1234",
  "employer_ein": "XX-XXXXXXX",
  "checks": [
    { "name": "box1_not_negative", "result": "pass" },
    { "name": "box1_vs_box3_reviewed", "result": "pass" }
  ],
  "flagged_uncertain": true,
  "edits": [
    {
      "from": 61580.00,
      "to": 61850.00,
      "by": "reviewer: a.sample",
      "at": "2026-02-10T14:32:00-05:00",
      "reason": "misread digit"
    }
  ]
}

The same record as spreadsheet columns

ColumnExample value
form_typeW-2
tax_year2025
fieldwages_tips_other_compensation
box1
value61850.00
source_fileexample-w2-jordan-sample.pdf
source_page1
employee_ssnXXX-XX-1234
checks_passedbox1_not_negative; box1_vs_box3_reviewed
flaggedyes
original_value61580.00
edited_bya.sample
edited_at2026-02-10 14:32 ET
edit_reasonmisread digit

A spreadsheet flattens the edit history to the most recent change. If a value was edited twice, either keep a separate edits sheet keyed by row ID, or keep the full history in the JSON and treat the spreadsheet as a view of it.

The SSN column in the example is masked to the last four digits. An audit trail does not need the full number to trace a value, and a full SSN in every exported row spreads the most sensitive field on the form into every copy of the file. The post on SSN masking in documents explains what a last-four mask hides and what it still reveals.

Field names in the JSON should stay fixed from year to year. A schema that renames fields each season breaks every lookup built on the old names. The tax form API guides cover how to design and version a JSON schema for extracted tax data.

How long should an extracted data audit trail be kept?

An extracted data audit trail should be kept as long as the numbers it supports might be questioned, and no longer than that. Two pressures pull against each other: the need to trace a value years later, and the need to delete sensitive data once it has served its purpose.

The IRS record-keeping periods set the outer bound: 3 years in the usual case on the IRS page How long should I keep records?, and longer in the cases it lists. The full list is in the post on what to keep after deleting uploaded tax documents.

The FTC pulls the other way for businesses it covers. Its Safeguards Rule guide sets a two-year disposal limit after the last use of customer information, with exceptions, which the retention section linked below covers.

One way to satisfy both is to split the trail from the documents. The audit record itself, with masked identifiers, field names, box numbers, values and edit history, is small and low in sensitivity. The original images, which hold full SSNs, addresses and signatures, are large and high in sensitivity. Many teams keep the first for the full record-keeping period and delete the second much sooner, once the data is exported and checked.

That split works only if the audit record still points somewhere useful after the originals are gone. A source field that names a file ID nobody can open is still worth keeping, because it proves which upload a value came from, but you should keep your own copy of the source documents if you will need to show the image later. Choosing when to delete the uploads is covered in the guide to choosing a retention period for uploaded tax documents.

Audit trail gaps that break traceability

An audit trail gap is any step where a value moves without its source fields. Traceability is only as strong as the weakest step between the form and the final number. Three habits cause most of the gaps: copy-paste steps, merged spreadsheets and overwritten values.

Copy-paste steps

Copying a column of amounts from one spreadsheet into another moves the numbers and leaves the source columns behind. The pasted values look identical, but nothing in the new file says which form each came from. If you must move data, move whole rows, including the file, page, box and field columns.

Merged spreadsheets

Combining one sheet per client into a master workbook often drops columns that differ between sheets. A merge that keeps "amount" and loses "source_page" has turned traceable data into plain numbers. Check the column list after every merge, and keep a row ID that survives the merge so each row can be matched back to its original sheet.

Overwritten values

Typing over a cell destroys the original. In an extraction tool, an edit should keep the old value in the trail. In a spreadsheet, a correction is safer in a new column, or in a separate edits sheet, than on top of the original figure.

Smaller gaps worth checking

  • Rounding on export. A tool that rounds $1,234.56 to $1,235 in CSV has changed the value. The trail should hold the exact amount from the form.
  • Re-uploads. Uploading the same PDF twice creates two file IDs for one document. Check for duplicates before totals are trusted.
  • Missing tax year. A value with no tax year can be matched to the wrong season's return, especially when a client sends two years of forms together.
  • Lost check results. Exporting values without the checks they passed hides which numbers were tested and which were not.

None of these gaps is technical. Each one comes from a person moving data in a way that drops context. A short rule for the team, such as "never move an amount without its source columns", prevents most of them.

Any service that stores the documents behind an audit trail also holds the most sensitive data in it. Before you upload a client folder, the post Is It Safe to Upload Tax Documents Online? gives the questions to ask about access, encryption and retention. To see a value carry its box number and field name on a sample form, try the interactive demo.

All posts in Accuracy and Security