Brief
Build an event-time window, explain watermarks, and plan how to handle a late event.
Voss displays a graph without OPEN-18 and says the calculation is over. Imani places the 21:36 message on your screen. Mara asks you to rebuild the window and prepare a traceable correction before the meeting. The fictional scene is urgent; the exercise has no timer.
Your mission
- Name the ten-minute windows containing E2 and the crash signal.
- Explain what happens if the watermark is 21:15 or 21:22 when E2 arrives.
- Propose a late-event policy that preserves E2 and records a corrected report.
- State a limit concerning the clock and SUPPLIER-SVC's human user.
How to check your work
- E2 in [21:10,21:20); crash in [21:20,21:30).
- At 21:15 include it; at 21:22 flag it late and revise or send it for review.
- Keep report version and status; no silent loss.
- Confirm the clock independently; the human identity remains unknown.
Course example
from datetime import datetime, timezone
def t(s): return datetime.fromisoformat("2026-04-12T"+s+":00+00:00")
window_start, window_end=t("21:10"),t("21:20")
e2={"id":"E2","event_at":t("21:18"),"received_at":t("21:36")}
def decide(watermark):
if e2["event_at"] < window_start or e2["event_at"] >= window_end:
return "wrong window"
return "include E2" if watermark < window_end else "late: review or revise"
print("window", "21:10-21:20")
print("watermark 21:15", decide(t("21:15")))
print("watermark 21:22", decide(t("21:22")))
print("event before crash minutes", int((t("21:25")-e2["event_at"]).total_seconds()/60))