Brief
Preserve a raw response and checkable provenance record to distinguish a content change from the still-open question of who made it.
In the story, Imani must preserve page 2 before Voss presents an empty report. Mara gives you A bytes {"events":["TRANSFER-7"],"next":3} received from https://api.example.test/events?page=2 at 20:30 UTC, and B bytes {"events":[],"next":3} in a report lacking a reliable creation time. Both versions must stay available to investigators.
Your mission
- List the provenance fields for A and distinguish byte size from event count.
- Give the Python method for fingerprinting A without rewriting its JSON.
- Compare sizes and fingerprints given in the lesson and describe the change.
- Explain what the fingerprints establish and what must still be checked to attribute that change.
How to check your work
- The record has URL, UTC time, response code if known, size 34 and fingerprint; 34 is not an event count.
sha256(raw).hexdigest()uses A’s bytes.- A has 34 bytes and contains TRANSFER-7; B has 22 and does not; fingerprints differ.
- The copy difference is established; B’s author and source remain to be found in other logs.
Course example
from datetime import datetime, timezone
from hashlib import sha256
source_url = 'https://api.example.test/events?page=2'
raw = b'{"events":["TRANSFER-7"],"next":3}'
received_at = datetime(2026, 10, 12, 20, 30, tzinfo=timezone.utc)
record = {
'source_url': source_url,
'received_at_utc': received_at.isoformat(),
'byte_count': len(raw),
'sha256': sha256(raw).hexdigest(),
}
print(record['byte_count'])
print(record['sha256'])