Open lesson

Mission: the result Voss wants to freeze

Command palette

This mission workspace keeps code and notes in this browser tab. Export them before closing it. Running code is practice, not an automatic grade for the mission.

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

  1. Name the ten-minute windows containing E2 and the crash signal.
  2. Explain what happens if the watermark is 21:15 or 21:22 when E2 arrives.
  3. Propose a late-event policy that preserves E2 and records a corrected report.
  4. 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))

Code

Use Tab to leave the editor. Ctrl+Enter runs the source. The lines beginning with # are task reminders. Python ignores them. Write your code beneath them.

Python console

Loading laboratory…

Explore Python or SQL here; this is not an operating-system shell.

This is a disposable browser experiment. The code run here is not recorded as a completed mission.

Each command starts a fresh disposable worker: it runs a captured copy of your current source, then your command with the lesson fixtures. Changes are discarded afterward. Commands never save source or award XP. Ctrl+Enter executes the command.

Virtual workspace files

Source and declarative assets are readable here without JavaScript. Python input files are created at runtime; SQL setup initializes the disposable database.

source.py

Current editor source. Inspection shows your current edits.

# 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.

exemple.py

Declarative lesson asset; this is not a file created in the Python filesystem.

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))