ADR 0403: Records for the same post and place are reconciled into one row, and an unknown never counts as reached
Context#
The same post can appear more than once for the same destination: a Pin attempted, refused and sent again, a
community link confirmed twice, a social announcement retried after an unknown. Records also name the same post
three ways (posts/a.md, content/posts/a.md, source:content/posts/a.md). Counting rows would count a post
twice, and counting an unknown as delivered would claim a post went somewhere it may not have.
Decision#
- One key: the source path reduced to the part every record agrees on (no
source:, no content folder, forward slashes), the destination and the place. - One row per key. Of several records, the newest settled outcome (
delivered,by-hand,not-delivered) wins; anunknownnever overrules a settled outcome; a settled outcome replaces an unknown even when the unknown has no time; otherwise the newest wins. Attempts are added up and the first attempt is the earliest. - Counts: each row counts once. Only
deliveredandby-handcount as reached;unknownis its own count, so the report says how many need a person to check. - Settling stays where it was. An unknown is settled with the adapter's own command (
openblog pinterest pin --reconcile,openblog video --settle, I posted it in Admin's Share this job, or recording the outcome of an announcement that needs checking on the Announcements screen); the report shows the result the next time it is read.
Consequences#
The rules live in openblog_core::outcome::reconcile and Admin's reconcileRows, with the same tests.