Chapter 21 · Course 3 c21-m03
How can we change things without surprises?
Your goal Prepare a reviewed, tested, backed-up, gradual, reversible change.
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. The released dossier helps Luca distinguish the crashed shell from Noctis 01 and Imani verify the timeline. The real prototype has been recovered; payment and insurance documents suggest fraud, but Voss's personal decision is not yet established. A source link recently failed and the team opened an incident. Mara now wants to add a payment record without breaking access or losing versions that defended you.
This lesson stands alone. A data or page change follows a controlled path: another person reviews it, automated checks run, a backup is verified, and the new version reaches users in stages. If a defect appears, restore a known version. You will plan this path for timeline_v2.2 with a local simulation and no real deployment.
Before the lesson
Purpose of this course
Prepare a reviewed, tested, backed-up, gradual, reversible change.
Topics covered
Explain peer review and continuous integration in plain words.; Define source-link, privacy, and timeline checks before release.; Plan a verified backup and gradual exposure to the candidate.; Describe a tested rollback when the candidate has a defect.
What you will learn
- Explain peer review and continuous integration in plain words.
- Define source-link, privacy, and timeline checks before release.
- Plan a verified backup and gradual exposure to the candidate.
- Describe a tested rollback when the candidate has a defect.
PART 1 · THE LESSON
Understand step by step
Lesson · explanation
Why a useful change can cause another incident
You are Aster Motors' new data engineer. The dossier helps Luca understand that the crashed vehicle was a test shell and helps Imani inspect the Noctis 01 timeline. A false authorization in your name was found in one register version. The real prototype was later located, while payments and insurance documents opened a possible fraud lead. The dossier already exists as timeline_v2.1. Imani now brings a payment document to add, but an evidence link recently broke. This self-contained lesson explains how to change the page without repeating that problem.
Changing a service means altering something other people use. Imagine pushing a new piece into a puzzle hanging on a wall. If you force it, old pieces may fall. A new link could break Luca's page, expose financial details to the wrong person, or make a payment time look like the time of a vehicle trip. The new document may be genuine while its presentation is wrong.
Your goal is a controlled route for candidate timeline_v2.2. Another person reviews the plan; automated tests look for known errors; source links and permissions are checked; a copy of the old version is read; then the candidate reaches users gradually. If a defect appears, stop expanding and return to timeline_v2.1 using a tested plan. Preserve S100, S101, and CDC evidence throughout.
This course simulates decisions with small fictional data. It deploys no real service and does not promise that green test results cover every danger. Urgency belongs to the plot, not the exercise. Learn to ask what could break, how someone would notice, and how to regain a reliable state. Those questions guide a responsible change.
Pause and think
Why is it insufficient for the new payment document to be genuine?
See the explanation
Its link, meaning, access rights, and effects on existing information also need checking.
Lesson · explanation
Ask another person to review meaning and access
A peer review means another person examines the change before publication. For timeline_v2.2, the reviewer checks the document's authorized origin, identifier, date, explanatory text, and intended readers. Could someone confuse its payment date with the time a gate opened or the crash occurred? Nearby times can refer to different actions. A program can compare values yet miss that distinction in the story.
The reviewer also checks how strong the conclusion is. The payment may suggest fraud or strengthen a lead; it does not automatically prove who organized every act. Voss wants to present one document as a final answer. Mara prefers a careful sentence: this payment is linked to the dossier, its origin is checked, and its role must be compared with other evidence. Human review prevents a technical page from turning a clue into a verdict.
Review permissions at the same time. Luca needs an account of the car and crash; he does not necessarily need raw financial details. Imani may be authorized to use a richer investigation view. Check the page seen by each role and remove private information not needed for that purpose. Even a small disclosure can be serious when the page otherwise loads correctly. Record which audience sees which part.
Keep the candidate separate from timeline_v2.1 and older evidence. Record who proposed the change, which document version was used, and who approved the wording. Another reviewer can then repeat the check. Do not edit S100, S101, or archived CDC records to make the new page look coherent. A view may change; source evidence retains its versions and history.
Pause and think
What meaning error should the reviewer look for?
See the explanation
A payment date presented as another event's time, or wording that attributes guilt the document alone cannot prove.
Lesson · explanation
Pass five gates before showing the candidate
The simulation has five gates: peer review, CI tests, working source links, privacy checks, and a verified backup. CI means continuous integration: a program runs checks for each candidate version. Think of several quality checks before giving a game to children. Each gate looks for a different problem. If one fails, the candidate does not move forward. Four passes out of five are not enough when the fifth protects a person or evidence.
Automated tests can check that source identifiers exist, links point to intended documents, wording preserves 'human identity still unknown' where the dossier says so, and Luca's view contains no medical field. Use fictional or approved test data. A test may miss misleading wording or a case nobody anticipated. That is why peer review and observation of the candidate remain necessary.
Checking a link means more than seeing blue text. An authorized reader must open the correct document and confirm its identifier and version. A broken link stops Imani from checking the origin of a payment. A link to the wrong version can mislead even more. Privacy tests do the opposite: a person without the right must be refused. Check both authorized access and expected denial.
The fifth gate is a verified backup. 'There is a backup file' is not enough. Read timeline_v2.1 and its links from a copy, and rehearse restoration. Keep the flawed candidate for diagnosis rather than deleting it in a rush. The gates help people decide; they do not replace service owners and judgment.
Pause and think
If peer review and CI pass but the payment link fails, can the candidate be published?
See the explanation
No. All five gates must pass; the broken link prevents checking the payment evidence.
Lesson · explanation
Show the version to a small group before expanding
A gradual rollout first shows the candidate to a small authorized group, then to more people if checks stay good. The exercise uses 10%, 50%, then 100% of practice accounts. These percentages are teaching examples, not universal rules. At each stage, check the page, links, permissions, data freshness, and whether a source was lost. Record the result before moving to the next stage.
Imagine testing a new automatic door in an empty corridor before opening it to the whole school. If it blocks on the first passage, you can stop it with limited disruption. For timeline_v2.2, a small practice group may expose a link or role error while timeline_v2.1 stays the reference for others. Gradual rollout limits the effect of defects and gives concrete observations.
Choose the first group carefully. Members need a legitimate way to check the document; do not give extra permissions merely to make a test convenient. Practice accounts and approved data can represent the roles. If you test only with an administrator, you might miss that Luca sees the wrong summary or too many details. Examine the actual role views involved.
Move to the next stage only after criteria remain good for the decided observation period. If the payment link breaks at 10%, stop at 10%; do not move to 50% hoping the error disappears. Late data or a missing source also sends you back to diagnosis. The aim is not to reach 100% quickly; it is to deliver information Luca and Imani can verify.
Pause and think
What should happen if the payment link fails at the 10% stage?
See the explanation
Stop expansion, record the defect, and prepare to return to the known healthy view.
Lesson · explanation
Prepare and rehearse the return to v2.1
A rollback makes a known healthy version active when the candidate causes a defect. Here that version is timeline_v2.1. Write the plan before rollout: who decides, how the page points back, how long it takes, and how to verify the result. Otherwise, a broken link forces the team to invent a fix under pressure and may lead it to delete evidence or choose the wrong version.
In the guided example, tests passed but the candidate's payment link fails at the first stage. Stop the rollout; record v2.2, the link identifier, its effect on Imani, and the responsible person. Then direct the active view back to v2.1 under the approved plan and confirm its links, freshness, and rights. Preserve a copy of v2.2 and the defect to learn why earlier tests missed it.
Rollback is not time travel for evidence. Snapshots S100 and S101 and the CDC log remain in place; the active page version changes. If a new payment has been recorded in a protected source, returning to the older view does not erase it. Separate current presentation from historical data so a repair cannot remove material the investigation may later need.
After fixing the link in another candidate, pass all five gates again: review, CI, links, privacy, and backup. Then restart gradual rollout. Do not jump straight to 100% because the defect seemed small; the fix could have affected another item. Test the rollback itself on a copy, since an untried written procedure may fail when it is needed.
Pause and think
Should returning to timeline_v2.1 delete candidate v2.2?
See the explanation
No. Preserve the candidate and its logs for diagnosis while the active page returns to the healthy version.
Lesson · explanation
Explain a change decision without promising too much
In the mission, Imani brings a payment record, Voss urges everyone to treat it as the answer to the whole case, and Luca still opens the old summary. Tell Mara your plan: what a peer will review, the five gates, the practice rollout at 10–50–100, and the return to v2.1 if a link fails. Distinguish a document that suggests a lead from evidence sufficient to attribute responsibility. A page update should improve verifiability, not amplify an accusation.
Give each check an expected result. Review: correct source, date, meaning, and access. CI: identifiers and automatic rules pass. Links: the intended version opens. Privacy: Luca cannot see raw financial details. Backup: v2.1 can be read from a copy. During rollout, apply the same list at every stage. On failure, record the symptom and follow rollback. This precision lets another person reproduce your decision.
Acknowledge what the simulation cannot establish. Green boxes in a small program do not guarantee a safe real deployment. Actual work needs an owner, permissions, representative data, alerts, and a restoration trial. Nothing is deployed by this course. You are learning the order of decisions and checks. A learner who reads only this lesson can still understand the problem, controls, and mission.
This method remains useful after the investigation. Whenever a team adds a source to a data page, it can request review, test provenance, limit rollout, and keep a reliable return path. Here the method also protects versions that showed the authorization in your name was false. The next lesson measures what the service really provides, without treating speed or usage gains as evidence of guilt.
Pause and think
Which wording is safer: 'the link proves Voss guilty' or 'the sourced document must be compared with other evidence'?
See the explanation
The second: a verifiable link adds evidence, but cannot alone deliver a verdict about a person.
Visual guide
A controlled change path
- 1Proposal v2.2 → review meaning and access
- 2CI + links + privacy + verified backup
- 3Practice rollout 10% → 50% → 100% under observation
- 4Defect → stop rollout → return to v2.1
Each stage needs a check, while a known good version remains ready for rollback.
Code · read each line
Simulate gates and rollback
gates={"peer_review":True,"ci_tests":True,"source_links":True,
"privacy_check":True,"backup_verified":True}
print("gates_pass",all(gates.values()))
rollout=[10,50,100] if all(gates.values()) else []
print("planned_rollout_percent",rollout)
active="timeline_v2.2" if rollout else "timeline_v2.1"
print("active_candidate",active)
broken_source_detected=True
if broken_source_detected:
active="timeline_v2.1"
print("after_rollback",active)
print("backup_kept",gates["backup_verified"])Five checks permit fictional 10–50–100 progression. A broken link brings the active view back to v2.1; backup remains available.
PART 2 · WATCH IT WORK
A complete worked example
Follow each step, then the result
Worked example: a broken payment link
Candidate v2.2 passed tests, then a payment document link fails during the first stage.
- Stop rollout as soon as the broken link is detected.
- Record version, link, impact on Imani, and repair owner.
- Return to v2.1 under the plan, then verify its links and rights.
- Fix v2.2 on a copy and repeat review, CI, and tests before retrying.
A change is safe when it can be observed in stages and rolled back to a verified version.
How this helps with your missionThe guided example follows candidate timeline_v2.2, whose payment link breaks at the 10% stage. Stop expansion, record the link and its effect, return to timeline_v2.1, verify its rights and sources, and preserve the candidate for diagnosis. In the mission, use the same plan for Imani's new document: have meaning and permissions reviewed, pass the five gates of review/CI/links/privacy/verified backup, advance through fictional 10–50–100 practice stages, and rehearse rollback. The payment enriches the investigation; it does not alone deliver a verdict on Voss.
PART 3 · YOUR TURN
Use the lesson to solve the mission
Story scene · practical task
Mission: a new clue without a new trap
Imani brings a payment trace. Voss says it proves everything, but Mara wants careful wording. Luca still opens his previous summary. Add the clue without breaking the page, with a route back if its link fails. The fictional report is due soon; the exercise has no timer.
Your task
- Describe what a peer should review about the record and wording.
- List five gates and proof that the backup is useful.
- Plan a staged rollout with a check at each stage.
- Explain return to v2.1 if the new link fails.
How to know you have succeeded
- Source, meaning, time, access, and attribution limit reviewed.
- Review, CI, links, privacy, backup/restore verified.
- Practice 10–50–100 with criterion checks.
- Rollout stopped, v2.1 restored, incident recorded.
Try code or SQL and keep a local draft. The mission questions are checked separately below.
See the worked answer
- The peer checks source and ID, correct time interpretation, wording limited to 'suggests fraud', and Luca's view without unnecessary financial detail.
- The five gates are review, CI, links, privacy, and backup verified by reading or restoring a copy.
- Show the candidate to a small practice group, check links and roles, then expand only if controls hold.
- At the first broken link, stop rollout, point the active view to v2.1, test it, and keep v2.2 for diagnosis and repair.
The new version can be released without major surprise. The chapter's last lesson measures benefit without confusing correlation with proof of guilt.
Before you leave
Remember this
- A new fact can be correct while breaking a link, permission, or page meaning.
- A peer reviews source, date, wording, and access before publication.
- The five gates are review, CI tests, links, privacy, and verified backup.
- Roll out gradually to practice accounts and check every stage before expanding.
- Prepare a return to timeline_v2.1 first; preserve v2.2 for diagnosis if it fails.
- Green simulation boxes prove neither real deployment safety nor a person's guilt.
Continue with the integrated lessons
After the lesson and its mission, work through the additional lessons below in order. Each workshop supplies its own fictional data: do not merge identifiers or times from separate exercises into the story timeline.
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.
- Review
- Another person's critical check of a change before release.
- CI
- Continuous integration: a system running automatic checks on changes.
- Automated test
- A program-run check of a precise rule.
- Backup
- A preserved copy used to recover a known state.
- Progressive rollout
- Making a new version available in stages.
- Rollback
- Controlled return to a previous working version.
- Release gate
- A condition that must pass before the next stage.
- Candidate version
- A new version observed before full adoption.
Approfondissements de ce cours
Mettre un travail de côté et partager une branche
Des changements non committés peuvent suivre un changement de branche si les états sont compatibles, ou bloquer la bascule s'ils seraient écrasés. La règle du livre « tout committer avant de changer » est une discipline prudente, pas une condition absolue. Vérifie status et choisis un commit cohérent ou une mise de côté temporaire.
git stash push -m "déduplication en cours" enregistre par défaut les changements des fichiers suivis et nettoie les parties correspondantes du travail local. -u peut inclure les fichiers non suivis ; il n'inclut pas les ignorés. Un simple stash ne protège donc pas forcément tout ton dossier.
Après l'urgence, reviens sur la branche prévue, consulte stash list puis emploie stash apply pour réappliquer une entrée. apply la conserve ; pop essaie de l'appliquer puis la retire si l'opération réussit. Des conflits sont possibles et l'index n'est pas nécessairement rétabli exactement sans option adaptée. Vérifie le contenu avant de supprimer une entrée ; une pile de stash n'est pas une archive durable.
git branch -r affiche les références distantes connues localement, comme origin/main. C'est une vue issue des derniers échanges, pas une interrogation instantanée du serveur. origin/HEAD représente habituellement la branche distante par défaut. Plusieurs remotes restent possibles, même avec un dépôt commun.
Après fetch, git switch --track origin/dedup crée normalement une branche locale liée à cette référence. La forme historique git branch --track dedup origin/dedup crée sans nécessairement basculer. L'upstream influence certaines formes de pull et push : vérifie branche active et configuration avant d'échanger.
git push -u origin dedup publie la branche locale autorisée et fixe son upstream. Cela remplace les refspecs compliquées et l'édition manuelle de .git/config du livre. Une référence de branche distante normale se trouve sous refs/heads/ ; le nom du remote ne désigne pas à lui seul le commit local à publier.
Après accord de l'équipe, git push origin --delete dedup demande la suppression distante. Les autres clones peuvent conserver une référence obsolète jusqu'à git fetch --prune origin ou une suppression locale explicite. Tiens compte des travaux et demandes d'intégration dépendants : Git ne décide pas de leur utilité.
À toi de jouer
Un stash ordinaire inclut-il un nouveau fichier ?
Voir la correction expliquée
Non : il faut une option adaptée comme -u pour les non-suivis. Vérifie status, list et les fichiers après réapplication.
Références : Manuel git-stash · Manuel git-branch · Manuel git-fetch · Manuel git-push.
Adapté de Gérez vos codes source avec Git, Mathieu Nebra (Mateo21), pages 29–31. Consulter le PDF source et ses illustrations · Provenance. Creative Commons 6 2.0 (mention de l’archive ; autorisation OpenClassrooms déclarée par l’utilisateur)
Anticiper les changements et traiter les causes
Tous les défauts futurs ne sont pas prévisibles. Une communication continue, une gestion explicite des changements et une intervention à la source permettent toutefois d’en prévenir une partie. Rechercher la cause plutôt que multiplier les corrections temporaires ; par exemple un mauvais choix de séparateur doit être corrigé dans le contrat et le producteur, pas seulement dans chaque fichier reçu.
Recontacter régulièrement les utilisateurs permet de suivre l’évolution des données et des exigences. Examiner à l’avance les effets d’un changement de système sur les identifiants, formats, délais et mesures de qualité. Intégrer les contrôles dès la conception d’un nouveau système et maintenir une documentation et des métadonnées détaillées et à jour.
Le cadre donne trois liens d’études de cas : le Home Office pour la culture de qualité dans la police, le Cabinet Office pour la réforme des démarches de recensement électoral, et l’ONS pour la révision des méthodes de rapprochement de données. Ce sont des exemples historiques de mise en œuvre ; les cas complets sont externes au PDF principal. Dans notre formation, ils servent de pistes pour comparer responsabilité, communication et qualité à la source.
Avant de changer un champ, l’équipe peut inventorier les consommateurs, annoncer une période de transition, mesurer les anciennes et nouvelles versions et prévoir le retour arrière. Cette mise en pratique prolonge le principe d’anticipation : elle n’est pas présentée comme une procédure obligatoire imposée par le cadre britannique.
À toi de jouer
Un fournisseur remplace un identifiant numérique par un code texte. Prépare le changement.
Voir la correction expliquée
Identifier consommateurs et propriétaire, vérifier types et rapprochements, obtenir un contrat versionné, tester des lots représentatifs, annoncer la date et les limites, puis surveiller les défauts et documenter le plan de retour.
Références : Cadre officiel et guides associés.
Adapté de The Government Data Quality Framework, Government Data Quality Hub, gouvernement britannique, pages 11–13. Consulter le PDF source et ses illustrations · Provenance. Open Government Licence v3.0, © Crown copyright 2020 ; droits de tiers réservés lorsque signalés.