Open lesson

Mission: the version Voss did not show

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

Compare old and current states of a versioned table to find an authorization added later.

In the investigation room, Voss displays the current register with your name. Imani hands Mara S100, an older snapshot ID. In the story you have minutes to prepare a comparison before Voss demands a decision. The exercise itself has no timer.

Your mission

  1. Explain what S100 and S101 represent and what time travel does.
  2. List the old and new authorization values and commands.
  3. Write a limited conclusion about the register change.
  4. Name what must be retained to keep the comparison checkable.

How to check your work

  • Snapshots correctly described as retained coherent states.
  • False → true and added OPEN-18 identified.
  • Change demonstrated, writer not identified by snapshots alone.
  • IDs, metadata, queries, exports, and retention documented.

Course example

from copy import deepcopy
original={"vehicle":"SHELL-02","authorized_by_recruit":False,"command_ids":["OPEN-17"]}
history={"S100":deepcopy(original)}
changed=deepcopy(original)
changed["authorized_by_recruit"]=True
changed["command_ids"].append("OPEN-18")
history["S101"]=deepcopy(changed)
old=history["S100"]
current=history["S101"]
print("S100",old["authorized_by_recruit"],old["command_ids"])
print("S101",current["authorized_by_recruit"],current["command_ids"])
print("authorization_changed",old["authorized_by_recruit"]!=current["authorized_by_recruit"])
print("new_commands",sorted(set(current["command_ids"])-set(old["command_ids"])))
print("S100_still_false",history["S100"]["authorized_by_recruit"] is False)

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.

# Explain what S100 and S101 represent and what time travel does.
# List the old and new authorization values and commands.
# Write a limited conclusion about the register change.
# Name what must be retained to keep the comparison checkable.

exemple.py

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

from copy import deepcopy
original={"vehicle":"SHELL-02","authorized_by_recruit":False,"command_ids":["OPEN-17"]}
history={"S100":deepcopy(original)}
changed=deepcopy(original)
changed["authorized_by_recruit"]=True
changed["command_ids"].append("OPEN-18")
history["S101"]=deepcopy(changed)
old=history["S100"]
current=history["S101"]
print("S100",old["authorized_by_recruit"],old["command_ids"])
print("S101",current["authorized_by_recruit"],current["command_ids"])
print("authorization_changed",old["authorized_by_recruit"]!=current["authorized_by_recruit"])
print("new_commands",sorted(set(current["command_ids"])-set(old["command_ids"])))
print("S100_still_false",history["S100"]["authorized_by_recruit"] is False)