
# Hub-First Editing and Conformance

## The hub is the source of truth

In MDM, a golden value changes in one place only: **in the hub**. If a vendor's bank account changes, you update it in MDM, not in the ERP or the payments tool.

When a connected app holds a different value, MDM treats **the app as wrong**. It doesn't ask which app "owns" the field or try to merge the app's value back in. The flow goes one way:

```
golden value changes in MDM → each app is corrected to match → MDM confirms the app now matches
```

The price is discipline: changes must be entered in MDM. In return, there's never a question about which value is right.

## Conformance contracts

Not every app needs every field. Email may matter to the purchase-order tool but not to payments, and bank IFSC the other way round. So for each **(app, field)** pair, a conformance contract says:

| Setting | Meaning |
|---|---|
| Must match | This app's copy of the field must equal the golden value |
| Enforcement | `auto`: MDM pushes the golden value to the app through its API. `ticket`: MDM opens a ticket for the app's owner to fix it |

## Checking and fixing drift

MDM compares each app's current value with the golden one for every contract. Each (app, field) pair ends up in one of three states:

| Status | Meaning |
|---|---|
| Conformant | The app's value equals the golden value |
| Failed | The app's value differs |
| Pending | A fix has been pushed or a ticket opened, and MDM is waiting to see the app's value change |

A fix isn't done when the push is sent or the ticket opened. It's done when MDM reads the app again and the value matches.

> **Through the API and CLI, with simulated apps:** Connecting apps, contracts and the check-and-fix loop work through the API and the `fob-mdm` CLI today: see [Check and Fix Drift](/docs/guide/conformance-loop). Apps are simulated until real connections are built, and there are no screens for this yet. A record's page already shows each connected app's value next to the golden value, with mismatches in red.

## Related

- [Golden Records](/docs/concepts/golden-record)
- [Objects and Fields](/docs/concepts/objects-and-fields): identity fields, which link app records to golden records
