← Complete program

Chapter 23 · Course 2 c23-m02

How do we prove a claim?

Your goal Build a reproducible link between a signed request and scheduled work while separating that link from physical presence.

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.

01

Story · optional context

The story so far

You are Aster Motors' data recruit. Luca was hurt when a shell resembling Noctis 01 crashed; a changed register falsely accused you. The real prototype has been found, and payment and insurance traces support the investigation. Noor isolated a scheduled replay under SUPPLIER-SVC: a false line returned after Voss's personal access was revoked. Voss says he was travelling at 03:10 and could not have run the program. Imani then finds change request REQ-27, signed by Voss at 20:40 before his 22:00 departure, scheduling that exact REPLAY-6 job.

This lesson stands alone. Proving a technical claim means providing data, code version, reproducible steps, explanation, and limits. Link the signed request to the REPLAY-6 log and build a counterexample to 'absent at 03:10, therefore impossible to be involved.' Imani must verify the signature and source; the exercise copy is fictional.

02

Before the lesson

Purpose of this course

Build a reproducible link between a signed request and scheduled work while separating that link from physical presence.

Topics covered

Name versions, sources, and steps another person needs to repeat the check.; Compare job ID, technical identity, and UTC dates.; Build a counterexample to an overbroad assertion.; State what the signed request supports and what it still does not prove.

What you will learn

  • Name versions, sources, and steps another person needs to repeat the check.
  • Compare job ID, technical identity, and UTC dates.
  • Build a counterexample to an overbroad assertion.
  • State what the signed request supports and what it still does not prove.

PART 1 · THE LESSON

Understand step by step

1

Lesson · explanation

What counts as evidence in data work?

You are Aster Motors' data recruit. Luca was injured in a shell resembling Noctis 01. A false authorization in your name appeared in a register, and the actual prototype was found elsewhere. Job REPLAY-6 made the row return after Voss's personal rights were removed. Voss shows a ticket: he was traveling at 03:10, the replay time. Imani found request REQ-27 attributed to him at 20:40 the previous evening before departure. You will learn what those items can and cannot establish.

In ordinary life, saying 'I am right' is not evidence. If a friend claims a box contains four cards, open it, count, and show the cards. For a technical claim, show data sources, code version, calculation steps, result, and a way to repeat the check. Someone who has never met you should be able to follow that path. They should also understand which question the comparison does not answer.

The lesson's goal is narrow: build a reproducible connection between REQ-27 and the execution of REPLAY-6, then explain why absence at 03:10 does not rule out an earlier request for automation. It is not a solo judgment on the entire fraud. These are fictional exercise copies. Authenticating a signature and approval workflow belongs to Imani and the story's investigators.

Think of a cooking recipe. 'The cake succeeded' tells nobody which ingredients or method you used. Ingredients, quantities, steps, and a result let somebody repeat the cake. Data evidence similarly needs a checkable recipe. REQ-27, the REPLAY-6 log, register versions, and comparison method are its ingredients. A convincing presentation makes each ingredient findable and names its limits.

Pause and think

What is missing from 'my program proves everything'?

See the explanation

Sources and versions, reproducible code and method, observed result, and limits of the claim.

2

Lesson · explanation

Keep the right version of every item

REQ-27 has an identifier and retained copy. The REPLAY-6 log records reading P0/42. S100 and S101 are two register states. Cite the version of the script comparing fields and dates as well. A request can be edited, a script corrected, and a view rebuilt. If two readers unknowingly use different versions, they may get different answers while both believe they repeated your test.

Prepare a small manifest: item name, identifier, version or digest, capture date, approved reading location, and custodian. For example: 'REQ-27, retained copy R1, captured before interview, digest checked by Imani.' A digest is a digital comparison mark that helps reveal changes to a copy. It does not by itself establish who authored the original. The manifest should let another team find the exact same inputs.

S100 and S101 place the false authorization in the register's history. P0/42 tracks replay. REQ-27 addresses who requested the task. A final dashboard screenshot cannot replace these different roles. It might show a row but not when the row was added, removed, or republished. Source versions are therefore part of the argument rather than a filing detail.

The local lesson code can read fields from a fictional copy and compare job_id, technical identity, and dates. It cannot verify a cryptographic signature. If Imani does not confirm REQ-27's origin and integrity, the human connection remains a hypothesis. State this condition openly: 'If this request is authenticated, our comparison shows...' A strong claim does not hide its dependencies.

Pause and think

Why preserve the script version beside the data versions?

See the explanation

Another script version may apply different rules; repeating the check requires the same inputs and method.

3

Lesson · explanation

Compare a job ID, a service key, and three times

In the copy, REQ-27 attributed to Voss names job REPLAY-6 and technical identity SUPPLIER-SVC. The request is dated 20:40 UTC on April 12. His departure is at 22:00 UTC. The log reports REPLAY-6 reading P0/42 at 03:10 UTC on April 13 under SUPPLIER-SVC. All times use UTC, one common clock convention; a Z suffix indicates that reference. Without a shared time zone, comparing events across midnight can reverse their apparent order.

Draw a timeline: request at 20:40, departure at 22:00, execution at 03:10 the next day. Link REQ-27 and the log on REPLAY-6, then link them again on SUPPLIER-SVC. Matching two fields says more than a vague resemblance of names. The job ID connects request to the same named task; the service identity connects the requested and observed access. P0/42 identifies the message read. Give each field its own role.

A service key is not a person. SUPPLIER-SVC tells us which technical access was used, not who sat at a keyboard at 03:10. Likewise, execution time alone does not reveal when somebody scheduled the work. Imagine setting a timer at 20:40 and leaving at 22:00. It rings at 03:10. Ringing during your absence cannot refute that you set it earlier. The request and log let us test this possibility.

Still check that another task with the same name did not replace REPLAY-6 between request and run. Examine parameter versions and approval history. An equal identifier does not guarantee unchanged code or instructions throughout the interval. The practice copy suggests a strong link, but a defensible report says which intermediate changes were examined and which remain to be verified.

Pause and think

How do you order 20:40 on the 12th, 22:00 on the 12th, and 03:10 on the 13th?

See the explanation

Request at 20:40, departure at 22:00, then execution at 03:10 the next day, using UTC for all.

4

Lesson · explanation

Build a counterexample to an overly broad alibi

Voss says: 'I was traveling at 03:10, so I could not be involved in the run.' The first part may be true. The second turns physical absence into a universal impossibility. A counterexample is a possible case that shows such a broad rule is false. A task requested at 20:40 can run automatically at 03:10. The ticket does not prevent that. It answers where Voss was during replay, not what he requested beforehand.

Use an example without computers: mail a letter Monday and leave town Tuesday; the addressee receives it Wednesday. Your absence Wednesday does not prove you never mailed it. REQ-27 resembles a receipt for mailing, while the REPLAY-6 log resembles a delivery trace. Comparing the two is better than accusing someone simply because a name appeared in Wednesday's log.

This counterexample does not declare the ticket fake. It says the ticket cannot rule out an earlier request. If REQ-27's signature is authenticated and logs are intact, the match between REQ-27 and REPLAY-6 supports involvement in scheduling. Investigators still need the exact request contents and parameter history to know what the task was expected to do.

In the mission, use a conditional conclusion: 'The copy shows a request attributed to Voss before departure, targeting the job executed later. Subject to authentication of the request and logs, his absence at 03:10 does not exclude earlier scheduling.' This answers the objection without inventing a keyboard action at 03:10 or issuing a verdict about all of the fraud.

Pause and think

Must the counterexample say Voss's travel ticket is false?

See the explanation

No. Travel can be real while an earlier requested job runs during the trip.

5

Lesson · explanation

Look for objections that could change the conclusion

A solid defense does not ask an audience to take your word for it. Imani may ask, 'What if someone changed REPLAY-6 after the request was signed?' That is possible. Check code versions, job parameters, intermediate approvals, and deployment logs. If a major change occurred, the original request might not explain everything the later job did. A shared identifier is still a lead, but its meaning depends on the intervening history.

Another question is, 'What if REQ-27 was fabricated afterwards?' A text comparison cannot answer. Imani checks signature, originating workflow, dates, and copy integrity. The course program has no access to those checks. If they fail, remove any sentence attributing the request to Voss. An unauthenticated document bearing a name does not identify its author.

A third question is, 'Does the job prove Voss wrote every false authorization?' No. A task can republish a row created earlier by another operation. Attributing the initial write needs other logs, permissions, register versions, and independent case evidence. Imani studies sale instructions, insurance, recovered prototype, and Luca's testimony. Your calculation links request to execution; it does not settle all acts and intentions.

List objections next to planned checks. That does not weaken your work; it makes it testable by another team. If new evidence arrives, you can say which conclusion remains and which must change. A report allowing no conceivable challenge has often hidden its assumptions. Build a route for verification, not a phrase nobody is allowed to question.

Pause and think

What check addresses 'the job may have changed after REQ-27'?

See the explanation

Compare job code and parameter versions, approvals, and deployment history between request and execution.

6

Lesson · explanation

Make a short claim another person can reproduce

Your final mission dossier can have four parts. First inventory REQ-27, the REPLAY-6/P0/42 log, S100/S101, and script version. Next explain how job ID, technical identity, and UTC times are compared. Third draw the 20:40, 22:00, and next-day 03:10 timeline. Finally state a limited conclusion and remaining checks. A ten-year-old can understand the difference between setting an alarm and hearing it ring later.

To make the test repeatable, include fictional inputs, comparison rule, and expected result. For example, job_id is REPLAY-6 in both items; the technical identity is SUPPLIER-SVC in both; the times place request before execution. Another reader can verify those equalities without seeing a real secret. If a different version fails to match, revise the conclusion rather than hiding the mismatch.

State attribution limits too. A match supports a link between an authenticated request and a scheduled task. It does not alone prove fraudulent intent, creation of every false row, or the entire financial arrangement. Imani and investigators compare documents, prototype, payments, insurance, and testimony. Your data engineering role is organizing traces so those comparisons rest on checkable facts.

Mara asks you to answer Voss without exaggeration. You can say, 'Your ticket shows absence at 03:10. Yet the authenticated 20:40 request targets REPLAY-6, which the log shows running at 03:10. Being away during replay does not exclude your earlier request.' Then let Imani present other evidence and decide what follows. The next lesson diagnoses why the row technically reappears, again separating mechanism from responsibility.

Pause and think

What short conclusion answers the alibi without giving a full verdict?

See the explanation

An authenticated pre-trip request can schedule a job that runs during travel; absence at execution does not exclude the earlier request.

Visual guide

Request, departure, execution

  1. 112 April 20:40 UTC: REQ-27 attributed to Voss for REPLAY-6
  2. 212 April 22:00 UTC: Voss's stated departure
  3. 313 April 03:10 UTC: REPLAY-6 reads P0/42 under SUPPLIER-SVC
  4. 4Same job and identity → presence alibi insufficient

Scheduling before travel permits execution during absence; authenticity still needs verification.

Code · read each line

Compare fictional request and log

from datetime import datetime
request={"id":"REQ-27","signed_by":"Voss",
         "signed_at":"2026-04-12T20:40:00Z",
         "job_id":"REPLAY-6","identity":"SUPPLIER-SVC"}
departure="2026-04-12T22:00:00Z"
run={"job_id":"REPLAY-6","ran_at":"2026-04-13T03:10:00Z",
     "source_position":"P0/42","identity":"SUPPLIER-SVC"}
def instant(value): return datetime.fromisoformat(value.replace("Z","+00:00"))
print("same_job",request["job_id"]==run["job_id"])
print("same_identity",request["identity"]==run["identity"])
print("request_before_departure",instant(request["signed_at"])<instant(departure))
print("run_after_departure",instant(run["ran_at"])>instant(departure))
print("signed_request",request["id"],request["signed_by"])
print("human_at_console","unknown")

The script compares job ID, technical identity, and UTC instants. It shows request before departure and run after, while human presence at the keyboard remains unknown.

PART 2 · WATCH IT WORK

A complete worked example

Follow each step, then the result

Worked example: counterexample to the alibi

Voss says he could not be involved at 03:10 because he was travelling. REQ-27 is attributed to him at 20:40 the previous day.

  1. Verify authenticity of REQ-27 and REPLAY-6 log separately.
  2. Compare job and key IDs: they match in the copy.
  3. Place signature before 22:00 and execution afterwards in UTC.
  4. Conclude absence at 03:10 does not rule out earlier scheduling, without claiming to prove the whole fraud.
What this shows

Strong evidence links verified sources, handles alternative explanations, and states its limits.

How this helps with your mission

The example follows REQ-27 attributed to Voss at 20:40, departure at 22:00, and REPLAY-6 under SUPPLIER-SVC reading P0/42 at 03:10 the next day. Inventory versions, match job and technical identity, place times on one UTC line, and give the example of a task scheduled before an absence. In the mission, reproduce these steps and mention Imani's signature check and job-parameter history. Answer the travel alibi without calling the ticket false or deciding the entire fraud alone; this technical link remains one piece of the investigation.

PART 3 · YOUR TURN

Use the lesson to solve the mission

Story scene · practical task

Mission: answer the alibi without overclaiming

Before Imani, Voss points to his travel ticket. Mara gives you REQ-27, the P0/42 log, and register versions. Present the comparison while leaving official attribution to investigators. The countdown belongs to the story; the exercise has no timer.

Your task

  1. List sources and versions needed to repeat the calculation.
  2. Show REQ-27 ↔ REPLAY-6 and timestamp order.
  3. Give a counterexample to the presence alibi.
  4. Name two checks and a limit of the conclusion.

How to know you have succeeded

  • Request, log, snapshots, and code version identified.
  • Same job and key; request before departure, run after.
  • A scheduled job can run while its requester is absent.
  • Signature/log and parameter history to verify; total guilt not asserted.
Open this mission in the browser workspace

Try code or SQL and keep a local draft. The mission questions are checked separately below.

Check the facts in your mission

Answer each factual question, then write your report in your own words. The program checks the choices; compare the report with the worked answer below.

1. Which items are needed to repeat the alibi comparison?
2. What is the order of the three UTC moments in the copy?
3. Which fields link REQ-27 to the replay log in the copy?
4. What can Voss's ticket at 03:10 establish?
5. What must Imani still check before attributing REQ-27 to Voss?
See the worked answer
  1. Keep REQ-27 copy and signature check, REPLAY-6/P0/42 log, S100/S101, and script version with UTC times.
  2. REQ-27 cites REPLAY-6 and SUPPLIER-SVC at 20:40 on the 12th; Voss leaves at 22:00; the same job reads P0/42 at 03:10 on the 13th.
  3. Absence at execution does not prevent an earlier request. That counters the alibi as a complete explanation.
  4. Verify signature and log integrity, then check intermediate job changes. The link alone does not prove fraudulent intent or authorship of every write.

The presence alibi no longer erases the scheduled job. The next lesson diagnoses an unexplained defect in the evidence chain before the final case presentation.

Before you leave

Remember this

  • Defend a technical claim with sources, versions, reproducible method, result, and limit.
  • REQ-27, REPLAY-6/P0/42, S100/S101, and the script have different roles; preserve their versions.
  • The 20:40 request precedes 22:00 departure and next-day 03:10 execution, all in UTC.
  • A technical account is not a person; Imani must authenticate signature and logs.
  • Absence during automatic execution does not rule out an earlier request.
  • The request-execution link alone proves neither every write nor the whole fraudulent intent.

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.

A–Z

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.

Claim
A sentence whose truth we check against specific evidence.
Reproducible protocol
Exact inputs and steps letting another person get the same result.
Code version
A specific program state used for a calculation.
Data version
An identified source state, such as S100 or an archived log.
Counterexample
A concrete case showing a general statement is false.
Change request
A document describing work to install and its approval.
Verified signature
Independent check of the origin and integrity of a signed document.
Alibi
An explanation that a person was elsewhere when an event occurred.

Justifier les garanties d’une architecture distribuée

Les systèmes distribués apparaissent dans les sites Web, applications, bases et infrastructures de calcul. Leurs objectifs récurrents sont disponibilité, passage à l’échelle et performance ; leurs difficultés sont concurrence, fautes partielles et latence non bornée. Réplication, diffusion et consensus constituent des abstractions utiles pour organiser ces difficultés. Il n’existe pas un protocole universel optimal : les garanties et les coûts dépendent du besoin.

Le point de départ reste l’absence de réponse : elle ne révèle ni l’état exact du réseau, ni celui du service, ni l’issue métier. Même une réponse décrit un état qui a pu changer pendant son transport. Les procédures et les algorithmes doivent rester cohérents malgré cette connaissance partielle. Distinguer sécurité, progrès, mesure de performance et expérience utilisateur permet de donner des engagements compréhensibles.

Pour défendre une livraison data, décrire le modèle de panne, les informations persistées, la frontière de déduplication, l’ordre des messages, le contrat de lecture et les conditions de reprise. Un essai sur quelques nœuds n’est pas une démonstration de toutes les exécutions ; une preuve sous un modèle ne couvre pas un matériel ou un code qui viole ce modèle. Associer raisonnements, tests d’incidents et mesures rend l’argument plus solide sans confondre ces preuves.

La bibliographie des pages 91–93 est conservée intégralement dans le PDF. Elle permet d’approfondir les incidents temporels, ABD, les réseaux imparfaits, les détecteurs de défaillance, Dynamo, la synchronie partielle, REST, FLP, CAP, Paxos Commit, la hiérarchie du consensus, la linéarisabilité, Paxos et Raft, les horloges hybrides et vectorielles, les CRDT, Jupiter et les limites de la transparence des appels distants. Les liens d’une ancienne publication peuvent changer ; préférer DOI et pages des auteurs quand on poursuit une référence.

Les exemples Python de ces leçons sont des simulations locales sans modification d’un cluster réel. Ils rendent visibles des propriétés ciblées, et ne remplacent ni une implémentation complète de consensus ni une certification de tolérance aux fautes. Les hypothèses et limites des essais sont données avec la source, pour que le lecteur sache précisément ce qu’il peut déduire du résultat.

Exemple appliqué aux données

garanties = {
 'nœuds': 'crash-recovery, membres fixes',
 'réseau': 'pertes équitables, reprise éventuelle',
 'cohérence': 'à préciser par objet/opération',
 'durabilité': 'à vérifier avant accusé',
 'reprise': 'identifiants et versions persistés',
}
assert all(garanties.values())
# Ce dictionnaire organise une revue, il ne démontre pas ses affirmations.

Simulation Python locale à exécuter séparément. Les assertions vérifient les cas présentés ; ce code ne constitue pas une implémentation distribuée de production.

À toi de jouer

Un rapport affirme : « trois copies, TLS et NTP garantissent zéro perte, exactement une fois et un état toujours actuel ». Réécris cette affirmation en une liste de garanties vérifiables.

Voir la correction expliquée

Préciser le nombre et type de pannes tolérées, les domaines de panne communs, le protocole de réplication et le quorum, la persistance, le contrat de déduplication atomique, le modèle de cohérence, le comportement pendant une partition et les limites de synchronisation. TLS protège le canal selon sa configuration ; NTP réduit un décalage estimé ; aucun des deux ne remplace ces contrats applicatifs.

Références : Notes originales de Martin Kleppmann — Cambridge 2025/26.

Adapté de Distributed Systems — notes de cours 2025/26, Martin Kleppmann, University of Cambridge, pages 91–93. Consulter le PDF source et ses illustrations · Provenance. Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) — adaptation française et exemples modifiés