sync-returns-structured-diff-counts
IN premise
`sync_agent` returns a dict with `beliefs_added`, `beliefs_updated`, `beliefs_unchanged`, and `beliefs_removed` counts that accurately reflect the diff between remote file and local state — no double-counting across sync cycles.
Summary
When the sync agent finishes importing beliefs from a remote file, it reports exactly how many were added, updated, left alone, or removed. These counts are reliable and consistent — running sync multiple times won't inflate the numbers or misreport what changed.
Details
| Source | entries/2026/05/05/tests-test_sync_agent.md |