---
title: "alcohol.zinc's real contexts"
description: 25 modules become 8 bounded contexts.
source: map.dh.md
---
<!-- Made by dh llm from the source; nobody edits this file. -->

# alcohol.zinc's real contexts

**25 modules become 8 bounded contexts, and no loop of calls is left.** Today 23 of the 25 sit in loops (the largest holds 21). MEASURED (the links) + REASONED (the lines).

| Context | What it means |
|---|---|
| habit | what a person committed to, and whether each day was kept |
| proof | the ways a day is proven: tap, NFC, Strava |
| plan | what a person pays for and what it allows |
| donation | a missed stake becomes money that reaches a charity |
| payment | the card and its mandates |
| friend | friends, and telling them when you miss |
| notification | messages to a person |
| account | the person's identity and its deletion |

| Link between contexts | Count | Becomes |
|---|---|---|
| a real question to another context | 14 | a contract call |
| "this happened" | 8 | an event through the outbox |
| accidental | 9 | deleted |

| Map, replayed on 50 real changes | Changes inside one context | Also touching nothing shared |
|---|---|---|
| today, 25 modules | 40% | 26% |
| finer, 14 | 46% | 28% |
| **proposed, 8** | **54%** | **32%** |
| coarser, 4 | 58% | 34% |

- **These are not the 24% from the answer:** 54% touch one context but may also touch shared files; 24% touch one folder and nothing else.
- **Two counts, both right:** the .NET scan merges three Habit modules into one (23 modules, a loop of 19). The map keeps them apart (25, a loop of 21).
- **The coarser map scores a little better (2 changes of 50).** I keep 8: its "money" would mix three meanings of "charge". REASONED
- The 8 names are product words. They are yours to rename when zinc moves; nothing here waits for that.
- **A folder does not fix a wrong boundary.** In zinc 46% of changes would still cross contexts with the best of these names. The map and the contracts matter as much as the layout.

## The eight

```filetree
contexts/
  habit/  # what a person committed to
  proof/  # how a day is proven
  plan/  # what a person pays for
  donation/  # a missed stake becomes a donation
  payment/  # the card
  friend/  # friends
  notification/  # messages to a person
  account/  # identity
```
