Hserver Failure Notes: Data Integrity and Publishing · advanced

Find Existing Before Create Is a Practical Reconciliation Pattern

When the remote API lacks your preferred idempotency primitive, deterministic discovery can recover an uncertain previous attempt.

Current. Current engineering note based on recent hserver deployment, debugging, recovery, and production-hardening work in September 2026.

The reconciliation path queries recent remote posts, compares normalized content and verifies the destination account before deciding whether a matching post already exists.

The publisher integration could not assume every remote create call exposed an application-controlled idempotency key. That left a gap after timeouts or process restarts. The local database knew the intended content and target account but might not know the remote object ID if the response was lost.

Reconciliation is a common distributed-systems recovery technique: compare desired state with observed remote state and converge without assuming the previous command's result.

Keep the match criteria narrow enough to avoid false positives, persist the remote ID as soon as it is known, and prefer native idempotency keys when the provider supports them. The concrete hserver evidence is commit 9118e08, so this note is tied to an actual production change rather than a hypothetical failure.

Quick navigationEsc