pushChanges marked the whole outbox as synced once every POST answered
200, so an operation the server refused (skipped with an error) was lost.
It now reads the results: applied and skipped-without-error entries are
marked, a refusal is replayed at every push for 30 days, among the 100
most recent, until a newer entry of the same entity goes through. A
failed batch no longer hides the results of the batches before it.
The batch loop moves to syncRules.ts (sendInBatches), tested under node:
pushChanges sends 8 batches at most and stops at a 429, initialMerge
sends every batch and waits for the Retry-After of a 429 (60 s at most,
3 resends), so a first sync no longer fails at its eleventh batch.
Server side, comments only, plus a test of the results contract.
Refs #151
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>