Chapter 22 · Course 4 c22-m04
How do we finish cleanly?
Your goal Close the transfer with verified export, reviewed rights, rotated secret, retention, and documented final state.
The lesson, the vocabulary, the worked example and the mission are separate blocks. You can follow them in order or return to the one you need.
Video explanation
This English explanation has English subtitles. Its examples may use a separate practice dataset; use the data stated in the written mission for your answers.
Story · optional context
The story so far
You are Aster Motors' data recruit. Luca was hurt when a shell resembling Noctis 01 crashed; register versions contradicted the false authorization used against you. The real prototype was found, while Imani still examines payment and insurance evidence. After Voss's personal access was revoked, a suspect line reappeared. Noor followed the runbook, preserved P0/42, and observed a replay task under SUPPLIER-SVC. She passed a supervised intervention without yet identifying the human who arranged it.
This lesson stands alone. Closing a handover means checking what was exported, who holds access, how the service key changes, how long evidence remains, and what will be removed later. You will order these decisions in a simulation. This page displays no real secret and performs no actual revocation or deletion.
Before the lesson
Purpose of this course
Close the transfer with verified export, reviewed rights, rotated secret, retention, and documented final state.
Topics covered
Prepare a controlled evidence export before changing access or a task.; Order rotation: new secret, test, then revoke old one.; Separate required retention from data eligible for later authorized deletion.; Describe final state, owner, and questions still open for investigators.
What you will learn
- Prepare a controlled evidence export before changing access or a task.
- Order rotation: new secret, test, then revoke old one.
- Separate required retention from data eligible for later authorized deletion.
- Describe final state, owner, and questions still open for investigators.
PART 1 · THE LESSON
Understand step by step
Lesson · explanation
Why does a handover need a real ending?
You reach the last handover day at Aster Motors. Luca was injured when a test shell resembling Noctis 01 crashed. Imani is examining the register and payments. After Voss's personal access was removed, a suspect row appeared again because a replay task used the technical account SUPPLIER-SVC. Noor now operates the service but does not yet know who scheduled that task. You must leave her a dossier she can use independently. This context is enough to understand the lesson.
Finishing a data project does not mean closing the laptop and declaring victory. Imagine lending someone a house. The new occupant needs to know where the keys are, which appliances work, which documents to keep, and which problems remain unresolved. A data handover is similar, with an added danger: changing a key or deleting a file too soon can interrupt the service or destroy investigation evidence.
The aim is a checkable final state. It should say which evidence copies were handed over, whether somebody tested reading them, which access rights remain, which new service key replaces the old one, what must be retained, and which temporary copies may be considered for later deletion. It should also name the service owner and open questions. A pretty checklist is insufficient if nobody can repeat its checks.
This is a paper simulation. S100, S101, and P0/42 identify fictional case items, and SUPPLIER-SVC is a fictional technical account. No real password is requested. The urgency belongs to the narrative, not to a real exercise timer. The next blocks show why the order of actions matters as much as the actions themselves: evidence, access, and service continuity depend on one another.
Pause and think
Why can Noor not receive only a list saying everything is finished?
See the explanation
She must be able to read evidence, operate the service, know which access remains, and see what is still unresolved.
Lesson · explanation
Export evidence another person can actually read
An export is a copy prepared for an approved recipient. The useful package here contains register snapshots S100 and S101, CDC events describing their changes, the P0/42 replay-task log, and Noor's report. Give every item a stable identifier, version, capture date, source, and digital digest. A digest is a comparison mark: if the file's bytes change, comparing with the recorded digest reveals that the copy is no longer identical.
Suppose you give Imani a folder called final-evidence.zip. The name proves little. If the log is missing or a file cannot be opened, she cannot reconstruct the timeline. The required check asks another authorized person to open the files, find S100, S101, and P0/42, compare their digests with a manifest, and record the result. A manifest lists what was supposed to be in the package and helps reveal omissions.
Export before changing a key, access rights, or replay task. Those actions can alter future records. To show the state observed at handover, capture items and context first. Keep this export distinct from the originals, which remain under their own preservation rules. Luca's personal medical details that are unnecessary for the technical package belong in a separate protected process, not in every investigator's copy.
Even a matching digest does not prove that the original content told the truth. It checks consistency between the copy and a recorded reference state. Investigators must still compare sources, versions, and times. A reproducible export helps people discuss evidence but cannot name who created the task under SUPPLIER-SVC. Record who performed the read test and when, so the next person can verify the handover.
Pause and think
What check is missing if an export has a digest but nobody can open P0/42?
See the explanation
An authorized read test is missing; a digest alone does not show the package is usable.
Lesson · explanation
Place evidence on hold without saying keep everything forever
Retention is the rule describing which data stay available and for how long. An evidence hold is an approved decision preventing removal of useful items during an investigation. In this story, S100, S101, relevant CDC events, and P0/42 remain accessible under that decision. Record who requested the hold, its scope, who approved it, and when it will be reviewed. The lesson does not invent one universal legal retention period.
Picture four boxes on a table: original case records, a verified export, temporary working copies, and unrelated files. 'Delete all old boxes' is dangerous because it may discard the first two. 'Keep every box forever' creates clutter and can unnecessarily retain sensitive data. Classify each box by purpose before deciding its fate. Age alone is not a reliable measure of evidential value.
The hold concerns records to preserve, not a person suspected of wrongdoing. Even if Voss demands quick cleanup, that demand does not bypass Imani and authorized decision-makers. Conversely, holding a file does not grant everyone permission to read it. Preservation and access are separate decisions. A file may be kept for a long approved period while only a small group is allowed to open it.
Give each item a simple row: identifier, retention reason, approved storage location, owner, review date, and copy status. A test copy can become a deletion candidate after the useful export is verified and obligations reviewed. Candidate does not mean deleted immediately. Approval, timing, and a deletion log come later. This separation protects both the investigation and the people whose data appear in it.
Pause and think
Why cannot S100 be removed just because a temporary copy seems bulky?
See the explanation
S100 is case evidence subject to the retention decision; a temporary working copy is a different category.
Lesson · explanation
Rotate a service key in a safe order
SUPPLIER-SVC is an identity used by software. A technical account is not a human being: seeing its name in a log does not tell us who gave an instruction. Yet an old key for that account may let a task continue running. To renew it without breaking Noor's timeline view, first identify the programs that use it, then prepare a replacement value in an approved vault. Never put a real key value in homework or course logs.
Imagine three people using one door key. Destroying the old key before distributing and testing a new one could lock everyone out. Leaving both active indefinitely lets a former holder keep entering. Rotation follows a controlled sequence: create the new key, install it in a test copy, verify the service works with the intended rights, obtain switch-over approval, withdraw the old key, and confirm it no longer works.
The lesson's code has a list named steps. A function before(a,b) finds the positions of two step names and reports whether the first comes earlier. For example, verify_new_key must precede revoke_old_key. This program creates no key and contacts no vault; it checks only the plan's ordering. Move steps in the practice list and one condition can become False. That small experiment explains the procedure without touching production.
Reviewing former team members' personal rights is nearby but separate work. Noor receives rights needed for her role; the team reviews old accounts and records each decision. Do not remove a right merely because a name appears in a story: identify role, service needs, and authorization. After rotation, check the timeline produced by the new operation. If the suspect row stops appearing, that is an operational observation, not automatic proof of who scheduled P0/42.
Pause and think
What must happen before the old key is revoked?
See the explanation
Create, install, and successfully test the new key in an authorized setting, then obtain switch-over approval.
Lesson · explanation
Delete only after a traceable decision
Deletion removes data from a location under an authorized decision. It differs from revoking access: withdrawing a key prevents future use, while deletion removes a copy. It also differs from archiving: an archive preserves a copy under a retention rule. In the mission, keep these three verbs apart. 'Turn everything off and erase everything' is a false solution because each item has a different purpose and decision path.
Suppose a test folder contains a temporary CSV already replaced by a verified export. The CSV may be proposed for deletion, but only after review of obligations and explicit approval. S100, S101, and P0/42 cannot join that list while their evidence hold applies. An old creation date is not enough to decide removal. The date and the reason for retaining a file answer different questions.
A deletion log should answer what was removed, when, by whom, and under which decision. Check that the operation targeted the intended copy and that retained items are still accessible. 'Deletion done' without a file identifier is hard to audit. If approval is missing, leave the copy in its required state and record the decision still needed instead of improvising.
Nothing is actually deleted in this simulation. Classify each item as held evidence, verified export, working copy to review, or item outside the technical package. Then name the next permitted action. This resembles sorting a library before discarding drafts: check borrowed books and archived copies before clearing a desk. The classification lets Noor act tomorrow without destroying Imani's ability to investigate.
Pause and think
Does marking a working copy as a deletion candidate allow immediate removal?
See the explanation
No. Obligations, approval, and a precise deletion log are still required.
Lesson · explanation
Write a final state Noor and Imani can use
A final-state note says what works now and what remains to do. Start with the service: Noor can open the timeline view, expected data appear, and checks were rerun after the switch. Then access: Noor has the intended role, former personal rights were reviewed, the new key was tested, and the old one withdrawn under approval. Mark done only actions genuinely verified in the scenario; planned work needs a different status.
Add the evidence package next: it includes S100, S101, relevant CDC events, P0/42, and Noor's report. Another authorized reader opened files and compared identifiers and digests. Record the hold, owner, and review date. Working copies proposed for future deletion remain 'decision pending' until the decision is made. That nuance lets somebody continue the work without assuming a planned action already happened.
End with unknowns. A replay task linked to SUPPLIER-SVC was observed; the log does not name the human who requested it. Pausing the replay may prevent another suspect line from appearing in a copy, but does not solve attribution. Imani's investigation of payments and insurance proceeds separately. Keeping these findings apart prevents a technical improvement from becoming a verdict about Voss or anybody else.
Tell Mara the order as a final scene: Imani opens the evidence pack, Noor tests the new key, the old key is withdrawn after approval, held records are protected, and temporary copies wait for review. Give each stage its check. If Mara asks who launched the replay, answer that the handover preserves leads for that question, while a technical account alone cannot name the person. That is an honest ending.
Pause and think
Which is more accurate: 'the culprit is known' or 'the technical task was seen, but its human requester is unknown'?
See the explanation
The second. A technical-account log shows a task, not by itself the person who ordered it.
Visual guide
Controlled handover close
- 1Export and verify evidence; establish hold
- 2Give Noor rights; new key in vault
- 3Test new key → revoke old → review accounts
- 4Keep what is required; delete later by decision
Correct order protects service operation and the ability to repeat the investigation.
Code · read each line
Check order without touching real accounts
steps=[
"export_verified_evidence","record_retention_hold",
"grant_Noor_role","rotate_service_key_on_copy",
"verify_new_key","revoke_old_key","review_old_personal_access",
"schedule_authorized_deletion",
]
def before(a,b): return steps.index(a)<steps.index(b)
print("export_before_rotation",before("export_verified_evidence","rotate_service_key_on_copy"))
print("verify_before_revoke",before("verify_new_key","revoke_old_key"))
print("hold_before_deletion",before("record_retention_hold","schedule_authorized_deletion"))
print("real_secret_values",False)
print("final_owner","Noor")The simulation checks export before rotation, new-key test before revocation, and hold before deletion. It changes no real secret.
PART 2 · WATCH IT WORK
A complete worked example
Follow each step, then the result
Worked example: old key still active
Noor can open the view with new rights, but the old supplier key still works on a copy.
- Confirm logs and snapshots have been exported and placed under hold.
- Identify all old-key consumers without writing its value in the dossier.
- Create and test a new key in the vault and authorized copy.
- After success and approval, withdraw the old key; check final status and decision log.
Closing a handover means more than disabling an account: preserve evidence, test replacement, and record what remains.
How this helps with your missionIn the worked example, Noor already has her rights but the old supplier key still works on a copy. First prepare a read-tested export of S100/S101, CDC changes, and P0/42. Then apply the evidence hold, create and test the new key, withdraw the old one after approval, and check final status. For the mission 'return the keys without closing the case,' narrate that order with who verifies each step. Separate temporary copies from held records. Name Noor as service owner and leave the human origin of the replay task open.
PART 3 · YOUR TURN
Use the lesson to solve the mission
Story scene · practical task
Mission: return the keys without closing the case
Noor returns the handover notebook. Imani needs P0/42 traces to remain readable; Mara wants the old supplier key retired. Voss wants immediate deletion of old files. Propose an order protecting both service and investigation. The fictional scene is urgent; the exercise has no timer.
Your task
- Describe the export pack and how to confirm it can be read.
- Order creation, test, and revocation of the service key.
- Separate held evidence from copies eligible for authorized deletion.
- Write final state and remaining uncertainty.
How to know you have succeeded
- S100/S101, CDC, P0/42 log, report with IDs and digests.
- New key tested before withdrawing old; no plaintext secret.
- Approved evidence retention; later deletion logged.
- Noor owns service; replay's human origin still open.
Try code or SQL and keep a local draft. The mission questions are checked separately below.
See the worked answer
- Export snapshots, CDC, logs, and report with IDs, versions, dates, and digests; have an authorized person read them.
- Identify consumers, create new vault value, test on a copy, then revoke old after approval and verify access.
- Hold S100/S101 and P0/42 for the decided period; remove only unneeded copies after review and a deletion log.
- Noor has required rights, view is checked, old access reviewed, and secret rotated under plan. The task's human origin remains for investigators.
The service is transferred without destroying clues. The final chapter shows how to defend the work as conditions change and finally link the scheduled task to a signed request.
Before you leave
Remember this
- A complete handover states what works, who owns it, and what remains uncertain.
- Export evidence before changing access or tasks; have another authorized person open the package.
- An evidence hold names records, approval, and review date; it does not mean keeping every copy forever.
- Create and test a new key before revoking the old one, without writing a real secret in the lesson.
- A temporary copy is deletable only after review, approval, and a deletion log.
- SUPPLIER-SVC identifies a technical account; the human who ordered replay remains unknown.
Part of the lesson · keep nearby
New words, explained
These are the names of ideas used in the lesson above. Return here whenever a word feels unfamiliar.
- Export
- A copy delivered to an approved recipient with sources and checks.
- Revocation
- Removal of a right or key that should no longer work.
- Secret rotation
- Controlled replacement of a key followed by removal of the old one.
- Retention
- A rule saying what is kept and until when.
- Evidence hold
- An approved decision preventing removal of material still needed for investigation.
- Deletion
- Approved removal of data after planned checks and periods.
- Final state
- Record of what works, who owns it, and what remains open.
- Digest
- A numeric summary helping check an export has not changed.