delta-sync poison-node: follow-ups from PR #86 review
Non-blocking observations from sage's review of #86 (poison-node resilience). All deferred as nice-to-haves.
-
Poison-cluster visibility — adjacent poison nodes each trigger independent bisection (~7 fetches each;
MAX_PAGE_ITERATIONScaps pathological cases). Add an escalated log line whenpoisonNodesSkipped > 3in a single cycle to surface unexpected Tana API degradation early. -
Watermark-after-poison-only-cycle trade-off — advancing to
Date.now()when only poison nodes were skipped (zero real nodes found) means a node changed between the old watermark and now won't reappear in the next delta unless it changes again. Low risk (poison is rare + fullsync indexrecovers). Add a code comment acknowledging the trade-off for future readers. -
getFailureState()test — add a lightweight poller-test assertion thatconsecutiveFailuresresets to 0 after a successful cycle.
Source: PR #86 review by sage (cortex).