Why isn't an agent's log enough evidence for month-end close?

Why isn’t an agent’s log enough evidence for month-end close?

Why isn’t an agent’s activity log enough to sign off on a month-end reconciliation? Imagine a finance analyst reviewing a draft prepared from purchase orders, invoices and approved records. The screen shows when an event was recorded and which agent was involved. It cannot, by itself, establish that the invoice amount is right, that every source document was considered or that every action was reported. There is a narrower question that good audit design can help answer: have the events we can see been altered since they were recorded?

This is an illustrative workflow, not a customer story. An invoice can travel from procurement to finance with a change in amount or supporting documentation along the way. The agent might point out a mismatch, while a person remains responsible for checking the source documents and accepting the result. If that result is challenged later, the team needs more than the agent’s fluent explanation. It needs to distinguish the integrity of the record from the accuracy of the work described in that record. Those are related, but one does not prove the other.

What does the chain actually establish?

Accepted ADR-0006 in agentic-organization starts with the limits of a conventional audit table. Rows in an ordinary table can be edited or deleted after the event. The chosen design appends events to a separate chain for each company. An event carries the preceding hash, a sequence number and a hash computed from its own contents. The verify() function in backend/services/audit_chain.py walks the sequence to detect a broken link, a changed record or a gap. Human and agent actions use the same event type, so a review need not treat the agent’s activity as a separate, incomparable stream.

Keeping only the old audit table would make browsing straightforward, but a row appearing on a screen says little about whether the history was modified. The implementation still mirrors entries to that table for the existing interface; the chain serves a different purpose. Its cost is serialisation. Writes that depend on the previous hash must be ordered. On PostgreSQL, the append path takes a transaction-scoped advisory lock for the chain. On SQLite it relies on an in-process lock and database write serialisation for the common single-process case. An operator should not assume identical cross-process behaviour across database choices merely because the interface looks the same.

A verified chain does not prove that an invoice was legitimate or a document was read in full. If an agent reported an action inaccurately, a correct hash preserves that account. Finance still needs an approval record and the original documents. Cryptographic integrity supports review without replacing judgement.

What if the remaining history is perfectly consistent?

Suppose the end of a chain disappears and the remaining history still verifies. A check that knows only the surviving rows has no earlier reference point for how long the chain used to be. ADR-0006 therefore pairs verification with anchoring. The implemented audit_anchor.py periodically writes each chain’s latest sequence number and head hash to a local append log. When backup storage has been configured, it also attempts to copy that log to object storage. A later comparison can flag a live chain that is shorter than its last checkpoint, or a hash at the checkpoint that no longer matches.

That checkpoint needs operational scrutiny. The local log is on the same system by default. The remote copy is conditional on configuration, and the code can fall back to a non-locked upload if the bucket does not support Object Lock. Failed local writes or remote uploads generate warnings rather than a promise that work will halt. An anchor only speaks to the history up to the time it was taken. For a month-end review, the useful question is not simply whether anchoring exists in a feature list. Ask when the last successful checkpoint was made, where it lives and who can change or delete it.

There is another boundary before an event reaches the chain at all. Workstation-submitted events are labelled with client origin by the server. That helps readers tell them apart from events the backend observed itself. It does not make an unreported action appear. ADR-0006’s acceptance review is explicit that the intended fail-closed behaviour is not a guarantee today. record() may return no event when appending fails, without necessarily stopping the caller’s action. A healthy gateway connection between two checks cannot prove that every intervening event was durably stored. “Every action is guaranteed to be in the ledger” would overstate what the current implementation provides.

Which event deserves attention?

Finance cannot sensibly read every low-level event during a close. Accepted ADR-0013 adds optional severity scoring as a separate layer. The current background job selects interesting recent events, asks a model to score them and stores its verdict in a side table rather than rewriting the chain. Depending on global settings and company alert preferences, high-scoring events can produce an inbox message and a configured notification. Scoring takes time and can be wrong. It is a triage aid after the fact, not an instant block, and a high score is not evidence that an invoice was fraudulent or a colleague acted improperly.

Different departments will ask different follow-up questions. Procurement may want the approval step behind a supplier quote; finance needs the amount and its supporting document. Production may care about the order in which maintenance actions were recorded. HR must consider whether personal information is being carried in event payloads. ADR-0006 leaves retention and personal-data redaction open, so integrity should not be confused with permission to keep sensitive data indefinitely. IT, meanwhile, needs to test chain verification, checkpoint storage and the visibility of write failures. A single “audit enabled” label cannot answer all of these concerns.

A practical exercise starts with one draft reconciliation, not a grand claim about the entire month. Put the source documents, the human approval and the events the agent reported beside one another. Verify the relevant chain and compare it with the latest available checkpoint. In a safe test environment, find out what happens when an audit append fails. Treat a severity score as a prompt to investigate, not a substitute for an accounting decision. An earlier article on audit integrity looked at whether history can be changed; month-end close asks what that history can actually establish.

ADR-0006 and ADR-0013 in agentic-organization make this distinction tangible: can we trust the stored trail, and can we accept the work it describes? Keeping those questions separate helps finance use an agent’s contribution without mistaking a reliable event record for an approved reconciliation.

Verification note: The design and current limits were checked against ADR-0006, ADR-0013, backend/services/audit_chain.py, backend/services/audit_anchor.py and backend/api/workstation.py in the agentic-organization repository.