A sales digest that only posts when the checks pass
Every night Aisha rebuilds the numbers and runs her checks. On Monday at 08:00 she posts the digest, or says why she did not.
- Verification checks per run
- 14
- Numbers rebuilt
- every night
- Digest posted
- Monday 08:00
- Figures with a definition
- all of them
Built from how Aisha works today; no customer is named.
The whole job, as a Slack thread
Read it top to bottom. Every line is something Aisha did or something a person decided.
Terms in this thread
@Aisha post the sales digest here every Monday at 08:00, and tell me if the numbers do not check out.
Scheduled. Every night I rebuild the numbers and run 14 checks. The digest goes out on Monday at 08:00 with its definition and a data-as-of time. If a check fails, I tell you that instead of posting a number.
Weekly sales digest, posted. One row per paid subscription, refunds netted, staff excluded. It shows orders by product, orders by region and what changed since last week.
Thanks. The region table is the one I needed.
Two weeks later. I am not posting this week's digest. Check 9 failed: the order count is 3 rows lower than the count in the billing system. I compared both and listed the 3 rows. Nothing was published.
Those three were test orders from the staging store.
Thanks. I rebuilt with those 3 rows set aside for this week, and the digest is posted with a note saying so. Making that a permanent exclusion is a new rule, so it waits for one yes.
The job in five parts
Numbered because the order matters: each part waits for the one before it.
The request
Jonas asks in the sales channel for a digest every Monday at 08:00. He adds one condition: tell him if the numbers do not check out. Aisha confirms the schedule, the checks and what the digest will contain.
What she worked out
Each night she fetches the data, rebuilds the tables and runs 14 checks against the source, against yesterday and against known totals. Every figure in the digest carries its definition and the time its data was built. She posts only if every check passes.
What a person decided
When check 9 failed, Aisha did not guess which side was right. She listed the three rows that differed, and Jonas recognised them as test orders. Whether those orders should always be set aside is a rule, so it goes to Omar as a proposal.
What shipped
On a normal Monday the digest appears at 08:00 with its definition, its data time and the check count. On the bad Monday it appeared later, with a note about the three rows she set aside. In both cases the number that went out had passed its checks.
What she learned
The three test orders are noted against the sales channel as a proposed exclusion. If he says yes, the check passes without anyone looking next time. If not, she keeps stopping and asking, which is the safe default.
The rule that kept it safe
A failed check stops the digest, and she says so instead of posting a wrong number.
A rail is a rule that holds without anyone having to remember it. Every action Aisha takes runs under one, and each module moves from Practice to Shadow to Live only when a person says so.
What is not done yet
Every example ends with what is still open, and who closes it.
- The digest says what was ordered, not why.
- The test-order exclusion is a proposal until someone agrees it.
- Anyone who needs refund or payment detail still opens the billing system, and the digest says which definition it used.
Run a job like this one at your company.
Your Digital Director is going public soon. Companies on the waitlist are onboarded first, by hand.
