Course map
Stage 1: Foundations
Stage 2: Data Integration
Stage 3: Building & Shipping
Stage 4: Customer Engagement
Stage 5: Specialization

Part 15 / Topic 2 of 7

Decision logs

Engagements run on decisions made in hallways and calls, and six weeks later nobody remembers why the sync polls instead of replicating. The decision log is the memory:

# examples/02_a_decision_log_record_what_was.py
import json

decisions = [
    {"id": "D-001", "date": "2025-03-10", "decision": "Sync via Acme's API every 15 minutes, not database replication",
     "why": "IT will not open database access; API is supported", "rejected": ["Nightly CSV export (too stale)", "Direct DB replica (not allowed)"],
     "owner": "FDE + Meena (IT)"},
    {"id": "D-002", "date": "2025-03-18", "decision": "Run the AI model inside Acme's cloud region",
     "why": "Data residency requirement from discovery", "rejected": ["Vendor-hosted endpoint in another region"],
     "owner": "FDE + Priya"},
]
for d in decisions:
    print(json.dumps(d))
# {"id": "D-001", "date": "2025-03-10", "decision": "Sync via Acme's API every 15 minutes, not database replication", "why": "IT will not open database access; API is supported", "rejected": ["Nightly CSV export (too stale)", "Direct DB replica (not allowed)"], "owner": "FDE + Meena (IT)"}
# {"id": "D-002", "date": "2025-03-18", "decision": "Run the AI model inside Acme's cloud region", "why": "Data residency requirement from discovery", "rejected": ["Vendor-hosted endpoint in another region"], "owner": "FDE + Priya"}

The rejected options are the valuable half: when someone proposes database replication in month four, D-001 answers in one link — including whether the rejection reason still holds. Five fields, every time: decision, why, rejected (with reasons), owner, date. Log it the same day; a decision log written from memory is fiction with timestamps.

🧪 Quick quiz

  1. What belongs in a decision log entry?
Show the answer

The decision, why, the options rejected, the owner and the date. D-001 records why API sync was chosen and why CSV export and DB replication were rejected. (verified against the example output above)

Done here? The practice set for Part 15 — 4 exercises with solutions — is on the part page.

Search the guide