Skip to content

Systems and records

Chronology vs causality in a business dataset: audit the implied story

By SourceX Editorial · Updated

10 sections

Short answer

A business dataset can be in perfect chronological order and still teach a false story, because a sorted log implies three things at once: that events happened in that order, that each actor knew what came before, and that earlier events caused later ones. Test each claim in its own layer, fix a time zero for every outcome label, and mark what the records cannot support as unknown.

Checklist

Chronology

This page covers chronology vs causality in a business dataset: audit the implied story.Illustrative

Key takeaways

  • A sorted log implies order, actor knowledge and cause at once; test the three separately.
  • Logs merged from several systems promise no order across sources, so keep ordered, tied and not comparable as distinct statuses.
  • Knowledge is per actor: record when the deciding person could first see each earlier event.
  • Causal fields need an author, a writing time and a kind; adjacency alone is never a cause.
  • State the time zero for every outcome label, or timing alone will manufacture an effect.

What story does a sorted business dataset tell without saying so?

It tells three stories at once: that the events happened in the order shown, that each person who acted could see what came before, and that earlier events led to later ones. Only the first is what sorting by timestamp was meant to express. The other two arrive uninvited, because readers and models alike read 'and then' as 'and so'.

For a dataset built to teach or test business decisions, the uninvited claims do the damage. A support log sorted by time can show a discount offered the day after a cancellation, and a model trained on it learns that discounts answer cancellations, even if the person offering the discount had not yet seen the cancellation. The order was right and the story was wrong.

This guide treats chronology and causality in a business dataset as three separate layers, order, knowledge and cause, plus a fourth check for outcome labels called time zero. Each layer gets its own evidence and its own status in the task packet, so the sort stops speaking for evidence it does not have.

Order: did the events happen in this sequence, or did the sort decide?

Treat order as established only where one event could have influenced the other, or where clocks of known precision separate them clearly; everywhere else, record the pair as tied or not comparable. Leslie Lamport's 1978 paper in Communications of the ACM showed that the happened-before relation among events in a distributed system defines a partial ordering, not a total one. A business is a distributed system of CRMs, inboxes, billing tools and people.

Event platforms document the same limit. Apache Kafka's Streams documentation says a merged stream keeps relative order only within each input stream, with no assurance of order between records that came from different streams. Stripe's webhook documentation says Stripe does not promise to deliver events in the order they are generated, and that event timestamps are recorded to the second, so distinct events can share one.

Merging exports from several systems into one timeline produces a merged stream with that assurance removed. Ties at second or day precision get broken by whatever the sort does with equal keys, often the row order of the file. Clock normalization is covered in the guide to temporal alignment across email, CRM and tickets; the point here is narrower. After normalization, keep three order statuses, ordered, tied and not comparable, instead of one confident sequence.

Knowledge: what could the person deciding see at that moment?

Record, for the actor whose decision is the task, when each earlier event became visible to that person and through which channel. Event time says when something happened in the world; the knowledge layer says when it reached the person who acted, and the two can be days apart.

Email shows the gap in its own standard. RFC 5322 defines the Date field as the moment the message's creator indicated it was complete and ready to enter the mail delivery system, and says the field is specifically not intended to convey the time the message is actually transported; its example is a message queued while the sender is offline. Sort a shared mailbox by Date and a message written on Monday sits ahead of a colleague's Tuesday decision, even if it reached the inbox on Wednesday.

Software histories carry two clocks as well. The Pro Git book explains that the author is the person who originally wrote the work, whereas the committer is the person who last applied the work, and each has a date. When a patch written earlier is applied weeks later, ordering by author date can place the fix ahead of the bug report that prompted someone to apply it. Payments repeat the pattern: a merchant's systems learn about Stripe events in delivery order, which Stripe says need not match the order of generation.

Knowledge is also per actor. Finance may see a cancellation on Wednesday while the account manager sees it on Friday. A packet for the account manager's decision needs the account manager's horizon, which differs from the system's own recording time covered in the guide to keeping event, observation and export time apart.

A causal link belongs in a packet only as an assertion with an author, a time of writing and a source record, never as an inference from adjacency. Sorting puts the price notice before the cancellation; it says nothing about whether the notice caused it.

Written causes in business records come in three kinds that deserve different weight. A reason stated by the party who acted, such as a customer's own cancellation email, is first-hand but self-reported. A reason recorded by a third party, such as a loss code picked from a short list by the clerk who processed the cancellation, is second-hand. A reason written after the outcome was known, such as a postmortem, may be careful but carries hindsight. Store the author, the writing time and the kind with every causal field.

Where no assertion exists, the cause status is none, and the packet says so plainly. The guide to grading causes in industrial event sequences covers stronger evidence such as interventions and inspected mechanisms; business records rarely reach that level, which is a reason to label honestly rather than a license to guess.

Time zero: when does the outcome window open?

Open the outcome window at the moment every record in a comparison became eligible for the action, not at the moment the action happened. A misplaced time zero turns pure timing into a causal-looking effect.

Epidemiologists know one version as immortal time bias. In a 2016 paper in the Journal of Clinical Epidemiology, Hernán and colleagues describe how biases of this kind arise when the start of follow-up, eligibility and treatment assignment are not aligned, and argue that specifying the target trial an observational analysis tries to emulate prevents them.

Business data reproduces the trap easily. Suppose accounts that received a six-month success review renewed more often than accounts that did not. Accounts that cancelled in month four could never have received the review, so the comparison credits the review with survival that came before it. Starting every account's window at contract signature, and counting the review only from the day it happened, removes the manufactured effect. Any outcome label in a packet should state its time zero and the eligibility rule behind it.

The story audit: turning a timeline into claims you can check

Write down the story the sorted packet implies, split it into single claims, and test each claim in the layer it belongs to. The audit replaces arguments about whether a timeline looks right with a ledger anyone can recheck.

Steps

The story audit: turning a timeline into claims you can check

Steps for one packet:

  • Narrate: write the sentence a reader would naturally take from the sorted packet, including any label already attached, such as 'retention discount failed'.
  • Split: break the narrative into atomic claims and tag each as then (order), knew (knowledge), because (cause) or after (an outcome counted from a time zero).
  • Gather evidence per tag: clock source and precision for then; the channel and time the deciding actor first saw the event for knew; author, writing time and kind for because; the eligibility rule for after.
  • Assign a status: ordered, tied or not comparable; seen, not yet visible or unknown; first-hand, third-party, hindsight or none; aligned or misaligned.
  • Rewrite: replace any label that rests on a failed claim, and move unsupported causal wording into the gap log rather than the label.
  • Ship the ledger with the packet, so a buyer can see which claims were tested and what evidence each status rests on.

Worked ledger (illustrative): a cancellation that sorts like a failed save

In this illustrative packet the sorted log supports the label 'retention discount failed', and the audit removes it. The customer, dates and percentages are invented for the example and describe no real company.

The events in event-time order: a price-change notice emailed to all customers on March 2; the customer's support ticket about an export bug on March 3; the customer's cancellation email, dated March 4 by its Date field and sent to a billing alias; the account manager's reply in the bug ticket on March 5 offering 15 percent off the next term; finance logging the cancellation on March 6 with reason code Price and forwarding the email to the account manager that afternoon; the subscription ending on May 31.

Read in that order, the story writes itself: the price rise drove a cancellation, the account manager tried to save the account with a discount, and the save failed. The ledger tests each piece of that story:

Worked ledger (illustrative): a cancellation that sorts like a failed save
Claim the sorted log impliesOrderKnowledgeCausePacket verdict
The price notice preceded the cancellationOrdered: two days apart on recorded clocksDelivered to the customer; whether it was read is unknownThird-party Price code from finance on March 6; the customer's email cites tool consolidation after an acquisitionKeep the order; record both reasons with authors; no price-caused label
The discount answered the cancellationOrdered by Date field: email March 4, offer March 5Not yet visible: the account manager first saw the email in the March 6 forwardNone: the offer sits in the bug thread and mentions the bugRelabel the offer as a concession on the bug ticket
A retention save attempt failedNot applicableRests on the claim above, which failedNoneDrop the label; no save attempt is evidenced
The export bug contributed to the cancellationOrdered: ticket a day before the emailThe customer knew of the bugNone: the cancellation email does not mention itKeep both events; cause unknown
Auto-renew was switched off before the cancellation was loggedTied: both stamped 14:02:11 on March 6One finance user did bothWorkflow rule, not a decisionRecord as tied; infer no sequence
Accounts offered discounts churn lessNot a packet-level claimNot applicableMisaligned time zero: only accounts still active and in contact could get offersKeep out of labels; any cohort claim starts every window at the notice date
Two rows of the same five events from an illustrative cancellation: the top row in event-time order, the bottom row in the order the account manager could see them, with crossing connectors showing the cancellation email moving behind the discount offer, and verdicts for order, knowledge and cause.
Event order versus what the account manager could see. Illustrative: dates and events are examples, not a real company.

A completeness map for the three layers and time zero

Every element in a packet gets one status per layer, and each status limits what the model input may say. A missing status is itself a finding: if nobody recorded when the decider saw an event, the knowledge layer is unknown and no label may depend on it.

The map is short on purpose. Four rows cover what a sorted dataset silently asserts, and a packet that fills all four honestly can be reused for different tasks without re-auditing the timeline.

Statuses, evidence and permitted wording for each layer:

A completeness map for the three layers and time zero
LayerStatuses to recordEvidence that sets the statusWhat the model input may say
OrderOrdered, tied, not comparableClock source, precision and offset per event, or a link showing one event could influence the other'Then' only for ordered pairs; tied events listed together without a sequence
KnowledgeSeen, not yet visible, unknownDelivery, forward, view or read times for the deciding actor, and the channel each event arrived throughOnly events the actor could see appear before the decision point
CauseFirst-hand, third-party, hindsight, noneA written reason with its author, writing time and source recordStated reasons, attributed to their authors; never 'because' from adjacency
Time zeroAligned, misaligned, not applicableThe eligibility rule and window start for every record in a comparisonOutcome rates only with the stated window and eligibility rule

Would joining more systems settle the story?

Only when a join answers a specific failed or unknown claim in the ledger. Joining more systems adds events, and with them more clocks, more ties and more chances to link the wrong records, so a bigger timeline can tell a more confident wrong story.

In the worked packet, the claim that changed the label needed one extra record: the time the cancellation email was forwarded to the account manager. Adding the account manager's calendar, the full billing history and every marketing email would have produced a longer packet, the same verdict and more personal data to review.

When a claim stays unknown after its targeted join, leave it unknown. An honest unknown is a usable training signal, because it teaches a model to withhold a cause the records cannot support; a guessed cause is a defect that looks like data.

Asking for order, knowledge and cause in a data request

Name the layers in the request: clock source and precision for each event, the deciding actor's visibility times, authored reasons with their writing times, and a time zero for every outcome label. Then make the story audit the acceptance test: sampled packets arrive with their ledgers, and no label rests on a claim whose status failed or is unknown.

Describe candidate data by the properties the layers need rather than by volume: systems that keep forwarding or assignment events, reason fields with an author and timestamp, and history long enough to see when a record first appeared to each team.

SourceX looks for business records among U.S. companies after an AI buyer describes the need, rather than keeping a catalog, so a request that spells out these layers determines what candidate companies are asked to show from the start. Whether any company's records meet it is settled in review and is not promised in advance. Submit the requirement, its intended use and the ledger test through the request form.

Frequently asked questions

Can a correctly sorted event log still mislead a model?

Yes. Sorting establishes at best the order in which events were recorded, but readers and models also infer that each actor knew about earlier events and that earlier events caused later ones. If the person acting had not yet seen an earlier event, or no record asserts a cause, the sorted log teaches a story the evidence does not support.

What is the difference between when an event happened and when someone knew about it?

Event time is when something occurred, such as when a customer wrote a cancellation email. Knowledge time is when a specific person could first see it, such as when that email was forwarded to the account manager. In a decision dataset, the second clock decides what belongs in the input at the moment of decision.

How should a dataset handle events with identical timestamps?

Record them as tied instead of letting the sort pick an order. Timestamps kept to the second or the day collide often, and a sort breaks ties by whatever order the file happens to have. If the true order matters to a label, look for a link showing one event depended on the other, or leave the order unknown.

What is immortal time bias in a business dataset?

It is an effect created by where the outcome window starts. If customers must stay active until month six to receive a review, comparing reviewed with unreviewed customers credits the review with survival that came before it. Starting every record's window at the same eligibility point removes the bias.

Should a dataset keep the reason someone recorded for an outcome?

Keep it, attributed. Store who wrote the reason, when it was written relative to the outcome, and whether the author acted, observed as a third party or reviewed afterward. A loss code chosen by a clerk and a customer's own explanation can disagree, and the dataset should show both.

Sources

  • Lamport's 1978 Communications of the ACM paper shows that the happened-before relation among events in a distributed system defines a partial ordering. Source
  • Apache Kafka's Streams documentation says a merged stream preserves relative order only within each input stream, not between records from different streams. Source
  • Stripe's webhook documentation says event delivery may not follow the order in which events are generated and that event timestamps are recorded to the second. Source
  • RFC 5322 defines the Date field as when the message's creator indicated it was complete and ready to enter the mail delivery system, not the time it is transported. Source
  • The Pro Git book explains that the author is the person who originally wrote the work and the committer is the person who last applied it, each with a date. Source
  • Hernán and colleagues (Journal of Clinical Epidemiology, 2016) describe how immortal time bias and related biases arise when start of follow-up, eligibility and treatment assignment are misaligned, and how specifying a target trial prevents them. Source

Tell us what data you need

Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.

See if your company qualifies