Open lesson

Mission: draw the map before the switch

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

Design a safe delivery plan covering data flow, threats, tests, and rollback.

Imani lays out the three sources. Luca waits for his summary; Voss watches for an error that could discredit the dossier. Mara asks you to draw the path and prepare for a realistic failure before the new page is visible. The story's presentation is near; the exercise has no timer.

Your mission

  1. Map sources, working copy, checks, and the two views with access.
  2. Name three concrete threats and a check for each.
  3. Describe v1-to-v2 migration without touching original snapshots.
  4. State the signal and rollback action for a missing source link.

How to check your work

  • Path and roles clear, sources read-only.
  • At least three risks tied to testable controls.
  • Candidate v2 checked before switch; v1 and evidence retained.
  • Broken link detected, rollback to v1, incident recorded.

Course example

checks={
 "source_copy_read_only":True,
 "medical_fields_excluded":True,
 "roles_tested":True,
 "snapshot_S100_retained":True,
 "rollback_copy_ready":True,
}
print("checks",list(checks.items()))
print("release_ready",all(checks.values()))
old_view="timeline_v1"
candidate_view="timeline_v2"
active_view=candidate_view if all(checks.values()) else old_view
print("active_before_problem",active_view)
reported_problem="source_link_missing"
if reported_problem:
    active_view=old_view
print("active_after_rollback",active_view)
print("evidence_retained",checks["snapshot_S100_retained"])

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.

# Map sources, working copy, checks, and the two views with access.
# Name three concrete threats and a check for each.
# Describe v1-to-v2 migration without touching original snapshots.
# State the signal and rollback action for a missing source link.

exemple.py

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

checks={
 "source_copy_read_only":True,
 "medical_fields_excluded":True,
 "roles_tested":True,
 "snapshot_S100_retained":True,
 "rollback_copy_ready":True,
}
print("checks",list(checks.items()))
print("release_ready",all(checks.values()))
old_view="timeline_v1"
candidate_view="timeline_v2"
active_view=candidate_view if all(checks.values()) else old_view
print("active_before_problem",active_view)
reported_problem="source_link_missing"
if reported_problem:
    active_view=old_view
print("active_after_rollback",active_view)
print("evidence_retained",checks["snapshot_S100_retained"])