AI uses for records
An accounting change reasoning dataset needs the why audit logs skip
By SourceX Editorial · Reviewed by Noah Loul ·
9 sections
Short answer
An accounting change reasoning dataset should pair every logged change, who made it, when, and from what value to what, with the recorded reason, evidence dated before the change and an authorized approver. Logs seldom hold that: of five audit-trail rules reviewed, two ask for a reason, and Apache OFBiz flags none of its 875 accounting fields for its change log.
Value drivers
Accounting change reasoning
Key takeaways
- A change log records who, when, before and after; reasoning data adds the recorded reason, dated evidence and the approver's authority.
- Of five audit-trail rules reviewed, only Annex 11 and the FDA's data integrity guidance ask for a reason, and none requires an approver in the trail.
- OFBiz logs old and new values only for flagged fields: 10 of 5,366 in its base data model, none of them in accounting.
- Fineract writes a default comment on blank reversals, so a non-empty reason field can still explain nothing.
- Score reasons on six tests and keep recorded and reconstructed reasons apart, with qualified accountants labeling treatment and authority.
What should an accounting change reasoning dataset record for each change?
Seven fields per change: who made it, when, the value before, the value after, the reason as recorded, a link to evidence dated at or before the change, and the approver with the authority they held that day. The first four make a change log. The last three turn it into reasoning data, the part a model needs if it is to learn when a revision was justified rather than merely what the revision was.
At a glance
What should an accounting change reasoning dataset record for each change
Final values cannot carry that lesson. A ledger export shows the corrected balance and a change log shows that an edit happened; neither says whether the edit was appropriate. A useful task packet therefore holds the record before the change, the change itself, the reason as written at the time, the evidence that existed at that moment, the approval, and a qualified reviewer's label on whether the reason holds up.
This page covers reasons attached to recorded figures, such as journal lines, invoice and order amounts, prices and account assignments. The fields, defined so that two reviewers would fill them the same way:
- Actor: the person or system account that saved the change, mapped to a role.
- Timestamp: when the change was saved, with its time zone.
- Prior value: what the field held before, kept rather than overwritten.
- New value: what the field holds after the change.
- Recorded reason: a reason code plus free text, exactly as entered at the time.
- Evidence link: the document, ticket or message the reason rests on, carrying its own date.
- Approver and authority: who approved, and the role or limit that allowed it on that date.
Which audit-trail rules ask for the reason?
Few do. Of five audit-trail texts reviewed for this article, all five aim to keep a record's history reconstructable, but only two ask for the reason, both from drug-manufacturing oversight, and none names an approver as a required element of the trail itself.
The European Union's GMP guidance for computerised systems, Annex 11 in its 2011 revision, says a risk-based audit trail of GMP-relevant changes and deletions should be considered and that "For change or deletion of GMP-relevant data the reason should be documented." The FDA's questions and answers on data integrity in drug manufacturing define an audit trail as a record that allows reconstruction of the creation, modification or deletion of an electronic record, and for a reprocessed laboratory run add: "Documentation should include change justification for the reprocessing."
The other three protect the history without asking why. The FDA's 21 CFR 11.10(e) requires secure, computer-generated, time-stamped audit trails of operator entries and actions that create, modify or delete records, and says changes must not obscure earlier information. The SEC's broker-dealer rule 17a-4, amended in 2022, lets firms keep an audit trail covering all modifications and deletions, the time of each action and, if applicable, the identity of the individual. Germany's Fiscal Code, section 146(4), forbids changing a booking so that "der ursprüngliche Inhalt nicht mehr feststellbar ist", meaning its original content can no longer be determined, and also bars changes that leave it uncertain whether they were made originally or later; section 239(3) of the Commercial Code has a parallel rule for commercial books.
The practical reading for a dataset buyer: bookkeeping rules guard the before-value and the timeline, not the reasoning. A company that complies fully can export a flawless history of who changed what and still hold no record of why, so reasons usually have to come from the records around the log. The five texts side by side:
| Rule | Applies to | What the trail must show | Reason required? |
|---|---|---|---|
| EU GMP Annex 11, section 9 (2011) | Computerised systems in medicine manufacturing | A risk-based record of GMP-relevant changes and deletions, regularly reviewed | Yes: the reason should be documented |
| FDA data integrity Q&A | Drug manufacturing records | Reconstruction of creation, modification and deletion; user, date and time | For reprocessing: a change justification |
| 21 CFR 11.10(e) | FDA-regulated electronic records | Time-stamped operator entries and actions; earlier information not obscured | No |
| SEC Rule 17a-4 audit-trail option | Broker-dealer records | All modifications and deletions, time of each action, identity if applicable | No |
| German Fiscal Code, section 146(4) | Bookkeeping and records kept for tax | Original content still determinable; no doubt whether a change came later | No |
What two open-source finance systems keep when a figure changes
Both keep enough to prove that a figure changed, and neither makes the reason a required, structured field. We read the entity definitions of Apache OFBiz and the accounting code of Apache Fineract at commits pinned on October 27, 2026.
OFBiz's generic change log, the EntityAuditLog entity, stores the changed entity and field, the record key, the old value, the new value, the change date, whatever is known about who made the change and the session. That covers the four change-log fields above, actor, timestamp, prior value and new value, with no reason, evidence link or approver. Logging is switched on field by field, though, and in the base data model only 10 of 5,366 fields across 30 entity-definition files carry the flag. All 10 sit in the order model: on order items (quantity, unit price and the user who changed them), ship groups (shipping method and carrier) and return items (reason, type, quantities and price). None of the 875 fields in the accounting model is flagged, and for attribution the accounting transaction entity carries a created-by and a single last-modified-by user with their dates, a field that can hold one editor at a time.
OFBiz does store reasons where its designers expected disputes. Its order item change entity pairs quantity and price changes with a reason code and comments, and 11 accounting fields across 10 entities are named for a reason or comment, among them a reason code on financial account transactions, a revision reason on budget revisions and comments on payments. None sits on the journal transaction or its entry lines.
Fineract treats a manual journal correction as a reversal, not an edit: the original entry stays, marked reversed and linked to the new entry that offsets it, and the reversal is refused if the branch's books are already closed for that date. The reversal takes an optional comment of up to 500 characters; when the comment is blank, the code writes a default description that names the reversed entry's ID and transaction ID. A dataset that counts non-empty reason fields would score every one of those defaults as explained. Fineract's command log records a maker and, in a column that may stay empty, a checker, each with a timestamp, and stores the request itself as JSON, with no column for a reason.
A filled reason field is not a reason: seven cases for the casebook
The casebook collects changes whose arithmetic is fine and whose reasoning is missing, vague, contradicted, late or unauthorized, because those are the cases a model must learn to flag. Every case below is Illustrative and invented to show a pattern; none describes a real company's records.
The label column uses a fixed set so that reviewers can agree, and the last column names the record that settles each case:
| Case (Illustrative) | What the log shows | What is wrong or missing | Label | Record that settles it |
|---|---|---|---|---|
| Default reversal text | A reversal whose comment is system text naming entry IDs | The text describes the act, not the cause | Reason missing | Request ticket or email dated before the reversal |
| One-word reason | An allocation percentage edited with the reason "correction" | Too generic to test against anything | Reason unspecific | Allocation policy version and the input that changed |
| Reason contradicts the change | Reason "duplicate removed", yet the balance rose | The direction does not follow from the reason | Reason inconsistent | Source documents showing which entry repeated which |
| Reason written after sign-off | Reason text saved after the approval timestamp | Possibly a justification written after the fact | Reason post hoc | System timestamps of change, reason and approval |
| Self-approved change | Maker and checker are the same account, or the checker is empty | The reason may hold; the authorization does not | Authorization failed | Authority matrix in force on the change date |
| One memo for a batch | 240 customer credit limits raised under a single reason | Valid if one decision covers all; risky if it does not | Batch reason, scope checked | Memo naming the policy, the scope and the approver |
| Overwritten editor | Only the latest editor survives in a last-modified-by field | Earlier edits cannot be attributed | History incomplete | Database logs or backups; otherwise exclude |
Reviewer rubric: six tests for a stated reason
Score each stated reason on six tests worth 0 to 2 points, for a maximum of 12, and keep the six scores rather than only the total. A total hides which test failed, and the failure type is the training signal.
Two independent qualified reviewers should score a sample of packets, with agreement reported per test and disagreements adjudicated and logged. Tests that compare timestamps or check for default text can run automatically; consistency and authorization need an accountant and the authority matrix that applied on the date. The rubric:
| Test | 2 points | 1 point | 0 points | Who scores it |
|---|---|---|---|---|
| Present | Reason code plus specific text | Code or text only | None, or system default text | Automated check |
| Specific | Names the input, document or rule that changed | Names a category only | A generic word | Qualified accountant |
| Evidenced | Linked evidence dated at or before the change | Evidence exists but is later or unlinked | No evidence | Date check plus reviewer |
| Consistent | Direction and size follow from the reason | Direction follows, size unexplained | Contradicts the reason | Qualified accountant |
| Authorized | Approver distinct from maker and within authority that day | Approver distinct, authority unverified | Self-approved or no approver | Reviewer with authority matrix |
| Timely | Reason saved with the change | Saved before the review sign-off | Saved after the sign-off | Automated timestamp check |
Rebuilding the reason when the log never stored it
Join each logged change to the records around it within a fixed window, and label what you find as a reconstructed reason, never as a recorded one. The distinction matters because a model trained on reconstructed reasons presented as contemporaneous learns hindsight.
The candidate sources are the ones finance teams already keep: request tickets, emails carrying dated approvals, close checklists, versioned policies, and the invoices, contracts or statements behind the figure. The admission rule is a date rule. Evidence dated at or before the change can support a reason; evidence dated afterward can only support a post hoc label.
Keep both fields in every packet: the recorded reason exactly as entered, which may be blank or a default, and the reconstructed reason with the evidence that supports it and the reviewer who inferred it. Packets should come from authorized, anonymized task material with the source evidence attached, and every label should come from a qualified accounting reviewer, with a second reviewer on a sample. Where no evidence can be found inside the window, the honest label is reason unknown, and those cases belong in the dataset too.
Why correct arithmetic does not settle the label
Because a change can add up and still be the wrong treatment, or be made by someone without authority. Arithmetic checks test the sum; they cannot test the judgment behind it.
Systems already enforce some rules mechanically. Fineract, for example, refuses a reversal dated inside a period its books have closed. But nothing in that method asks whether the comment explains the reversal, or whether reversing was the right treatment at all. A dataset that labels a change appropriate because its debits equal its credits and the system accepted it is grading the software, not the decision.
That is why the rubric splits its tests by who can score them. Presence, timing and evidence dates suit automated checks or a model-based grader. Specificity, consistency and authorization need a qualified accountant who knows the policy and the authority matrix in force on the date, and labels in those columns should not be published without that review.
Packaging change histories for an AI buyer
A licensable change history is a set of task packets, one per change, with identities replaced and relationships kept. Audit logs hold personal data by design: user accounts, session details and sometimes network addresses, as OFBiz's session field and Fineract's client IP column show. Replace each user with a stable role code so that the same actor stays linkable across changes, drop session and address fields, and keep the authority level rather than the name.
Buyers of reasoning data should specify the change types in scope, the minimum share of packets with evidence dated at or before the change, the label set, and the acceptance test they will run, for example rubric agreement on a sample they score themselves. Ownership of the records, permission to share them and contractual licensing rights are separate questions, and confidentiality terms with auditors, lenders or customers can limit what leaves a company.
SourceX sources datasets on request from businesses rather than holding stock, so a requirement written this way is the starting point: the change types, the fields, the intended use and the acceptance test. Whether any company's records can meet it is decided case by case, and nothing here implies that such records are available today.
Methods note: rule texts, code counts and limits
The rule comparison rests on five texts read through search excerpts from their official publishers on October 27, 2026: EU GMP Annex 11 (2011), the FDA's data integrity questions and answers, 21 CFR 11.10, SEC Rule 17a-4 and section 146 of Germany's Fiscal Code, with section 239 of the Commercial Code as a parallel. The comparison covers each text's audit-trail clause only; other sections of the same rules, such as electronic signatures or change control, were not assessed.
The code counts come from bin/audit_fields.py, which parses files and runs nothing from either repository. For OFBiz (apache/ofbiz-framework at commit d6dc409), it reads every XML file in an entitydef folder, 31 found, excludes the one test-fixture file whose name contains "_test", and counts fields of entity and extend-entity elements; a field is logged when its enable-audit-log attribute equals "true", and a field counts as a reason or comment field when its name matches "reason" or "comment", ignoring case. For Fineract (apache/fineract at commit 1c00e9a), it lists the @Column and @JoinColumn names of the command and journal entry classes and confirms the default reversal comment and the 500-character limit in the journal entry service.
Not measured: how often real companies fill reason fields, the share of changes whose reasons hold up, and reviewer agreement on the rubric. Those need authorized company records, and no results are reported here. Accounting and legal points are general information, not accounting or legal advice.
Frequently asked questions
What is an accounting change reasoning dataset?
It is a set of task packets, one per change to a recorded figure, holding the actor, time, prior and new values, the reason as recorded, evidence dated at or before the change, the approver and a qualified reviewer's label. It teaches or tests whether a revision was justified, not just what it was.
Do accounting audit trails record why a change was made?
Usually not as a required field. Bookkeeping and broker-dealer rules reviewed here protect the original value and the timeline, while only the EU's Annex 11 and the FDA's data integrity guidance for drug manufacturing ask for a reason. Many systems offer optional comment fields that are often blank or filled with default text.
How do you label the reason for a change the system did not store?
Link the change to tickets, emails, approvals, policies and source documents dated at or before it, and record the result as a reconstructed reason alongside the recorded one. Evidence dated after the change supports only a post hoc label, and changes with no evidence are labeled reason unknown.
Is a balanced, system-accepted entry enough to label a change appropriate?
No. Balanced debits and credits and a system's acceptance show the arithmetic and the configured controls passed, not that the treatment was right or the person was authorized. Those judgments need a qualified accountant and the authority rules in force on the date.
What personal data sits in audit trail records?
User accounts, session details and sometimes network addresses. Replace each user with a stable role code so links between changes survive, drop session and address fields, and keep authority levels instead of names before any change history is shared.
Sources
- EU GMP Annex 11 (2011), section 9, says that for change or deletion of GMP-relevant data the reason should be documented. Source
- The FDA's data integrity Q&A defines an audit trail as allowing reconstruction of events and asks for change justification when a run is reprocessed. Source
- 21 CFR 11.10(e) requires secure, computer-generated, time-stamped audit trails of operator entries and actions, and record changes must not obscure earlier information. Source
- SEC Rule 17a-4's audit-trail option covers modifications and deletions, the date and time of actions and, if applicable, the identity of the individual. Source
- Section 146(4) of Germany's Fiscal Code bars changing a booking so its original content can no longer be determined, or so it is uncertain whether a change came later. Source
- Section 239(3) of Germany's Commercial Code bars changing an entry so its original content can no longer be determined. Source
- OFBiz's EntityAuditLog entity stores entity, field, key, old value, new value, change date, changed-by and session information, with no reason field. Source
- OFBiz's accounting data model has 875 fields, none flagged for audit logging, and 11 reason or comment fields in 10 entities, none on the journal transaction. Source
- OFBiz's order data model holds all 10 audit-logged fields of the base data model and an order item change entity with a reason code and comments. Source
- Fineract reverses manual journal entries with an optional comment up to 500 characters, writes a default description when it is blank, and refuses reversals in closed periods. Source
- Fineract's command log maps maker and checker columns with timestamps, a nullable checker, the request as JSON and a client IP, and no reason column. Source
Tell us what data you need
Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.