Contoso runs a scheduled reconciliation pass over each shopper's active facts in the memories container of an Azure Cosmos DB for NoSQL account. For one shopper, the pass returned the two pairs shown in the exhibit. Requirements:
- Each distinct piece of knowledge about the shopper must have exactly one active fact.
- Recall must reflect the shopper's current state.
- The team must be able to reconstruct how a belief changed and undo a reconciliation that the model got wrong.
- The recall query already excludes records with
WHERE IS_NULL(c.supersededBy)and does not filter on confidence.
| Pair | id | content | confidence | createdAt |
|---|---|---|---|---|
| A | f-101 | Prefers components that fit a carbon frame | 0.92 | 2026-03-02 |
| A | f-214 | Wants parts compatible with a carbon frame | 0.74 | 2026-09-18 |
| B | f-118 | Headlight budget is at most 40 dollars | 0.95 | 2026-04-11 |
| B | f-307 | Headlight budget has been raised to 60 dollars | 0.80 | 2026-10-05 |
Complete the reconciliation decision for this shopper.
For pair A, keep active. For pair B, keep active. Retire each other record in a pair by .
- Blank 1: f-101 (correct answer)
Pair A states the same fact in different words, so it is a duplicate and the higher-confidence record (f-101, 0.92) is kept. f-214 is newer but recency is the rule for conflicts, not duplicates. Keeping both leaves two active records for one fact.
- Blank 2: f-307 (correct answer)
Pair B is a genuine conflict, a change of state, so the newer record (f-307) is kept even though its confidence is lower. Keeping f-118 because of its higher confidence would recall an outdated budget. Keeping both leaves two conflicting active facts.
- Blank 3: setting supersededBy to the kept fact's id (correct answer)
Setting
supersededByto the kept fact'sidexcludes the obsolete fact from recall and preserves the link for auditing and reversal. Usingdelete_itemremoves the obsolete fact and loses its history. Settingconfidenceto 0 leavessupersededBynull, so recall still returns the obsolete fact.
The same reconciliation pass finds two different problems that need different rules. Duplicates only waste space, so the higher-confidence wording is kept; contradictions mean the shopper changed their mind, so the newer record wins whatever its confidence. In both cases the other record is retired, not deleted, by pointing supersededBy at the kept record, which removes it from recall while preserving an auditable, reversible history.