At midnight, North had three Wednesday orders. At 7:45 the next morning, it still had three. A team checking its new staffing report against the midnight total could tick “passed” and move on. It would have missed a canceled order and the sale that took its place.
Those counts come from a local replay of a fictional order ledger. You can repeat it on paper. It illustrates a question worth settling before you spend a sprint on a reporting change. When somebody opens yesterday’s report, what should “yesterday” include?
Reproduce the count
At the fictional store’s 8 a.m. staffing meeting, the manager assigns people to Wednesday’s orders. Sales can enter corrections through 7:45:00 a.m. Thursday, Eastern time. After that, two people opening the report a few minutes apart should see the same list.
Start with three active Wednesday orders at North, N1, N2 and N3. Make the following changes in the order shown. Keep the order’s business date separate from the time someone entered the change.
- At 7:30, cancel N2.
- At 7:45 exactly, enter N4, a Wednesday sale the store had missed.
- At 7:50, cancel N3. The cancellation also belongs to Wednesday.
For each line below, cover the later entries and cross out the canceled orders. A South store sale from Wednesday and a North sale from Thursday are in the test ledger too. Neither belongs on North’s Wednesday list.
Thursday cutoff (Eastern) Active Wednesday orders at North Count
- Midnight N1, N2, N3 3
- 7:44:59 a.m. N1, N3 2
- 7:45:00 a.m. N1, N3, N4 3
- 7:50:00 a.m. N1, N4 2
- 8:00:00 a.m. N1, N4 2
The local replay produced those five rows. Compare midnight with 7:45 by order ID. Someone working from the midnight list would assign staff to N2 and leave N4 uncovered. Now open a current-status report at 8. It drops N3, although N3 was still active at the agreed cutoff.
For this meeting, either save the 7:45 result or calculate it when the page opens from records that preserve the 7:45 state. Both designs can honor the same rule. The replay establishes which orders belong. It supplies no timing evidence for choosing between those designs.
Seven checks for an engineering lead or founder
- Get agreement on the boundary case. Put N4 and N3 in front of the manager. Does a sale entered at the cutoff count? Does the cancellation five minutes later change the meeting list? Keep the answers with the work item. If the warehouse also needs a current list for packing, give that view its own label. The two teams have different reasons to open the report.
- Find the records that let you reconstruct one answer. Ask an engineer to show how they know N3 was active at 7:45 after it was canceled at 7:50. A current status of “canceled” alone cannot establish when the change happened. For your own review, use a permitted test order and trace its store, business date, status and recorded time. If history is missing, decide who could capture a reference list at the next cutoff.
- Compare membership before checking the total. Hand the engineer the three IDs you expect at 7:45. Ask which IDs are missing from the candidate report and which extra IDs appear. Both lists of differences should be empty. The row at exactly 7:45 catches another mistake: a rule that uses “before 7:45” drops N4. Keep order-level comparisons in the authorized test environment. A founder can review the differences using fictional IDs.
- Try the saved report as the wrong user. In staging, open North’s result as North’s manager, then try the same saved result as South’s manager. Record the allowed and denied outcomes. Filtering South’s sale out of the ledger checks what North’s report contains. It tells you nothing about who can open that report.
- Measure the wait you are asking engineering to fix. Time from opening the page to seeing a usable list. For the saved option, also record when the complete 7:45 list becomes available. A result that opens instantly at 8:05 misses the meeting. Try both designs with the same store, cutoff and representative load. If an on-open history query already meets the team’s needs, it avoids assigning someone to maintain a scheduled refresh.
- Interrupt the refresh and read the screen. If you trial a saved result, stop the test run before it finishes. Have the manager read the label aloud. On a successful run it should say which Wednesday the orders belong to and give Thursday’s 7:45 a.m. Eastern cutoff. A previous complete report may be useful if it is clearly dated and flagged as stale. Rerun for the original cutoff after the late cancellation. The expected list still contains N3. Write down who gets the warning and how they check the recovered list. Google’s SRE guidance includes the case where a request succeeds but returns the wrong content. Here, check the date and the orders a manager receives. Monitoring Distributed Systems
- Agree on the smallest decision the evidence supports. The fictional engineering lead approves a one-store staging comparison. The reporting engineer can write a separate test result and switch it off without changing order entry. Production rollout stays open. If the manager later needs a packing list that reflects the 7:50 cancellation, revisit the requirement before reusing the staffing report.
A finding you can put in a work item
Finding. North’s midnight total matched the meeting total, but the two lists differed by N2 and N4. At 8, counting current orders also lost N3. Use the store, business date and inclusive correction cutoff as the reference for both candidates.
Decision and owner. In this example the lead agrees to test both a saved cutoff list and an on-open history query. Before the next staffing meeting, the reporting engineer will compare their IDs with N1, N3 and N4, record when each list becomes usable, and show the manager what appears after a missed refresh. A wrong order, an unauthorized view or stale data presented as current stops the trial. If both candidates pass, the lead and manager can choose using measured wait time and the work required to keep the report available.
For your own work item, link the evidence and name the proposed action, who has agreed to it, who owns the next check, and what result would reopen the decision. Michael Nygard’s decision records keep a choice alongside its status and consequences, so the next engineer can see what the team actually approved. Documenting Architecture Decisions
If the business rule is settled and the team still cannot reconstruct one order at the agreed time, that is a specific question to bring to an independent software architecture review. Bring the order history and the two lists that disagree.
