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