Bounty
XE-10445 · Bounty

/ready finality_stall_seconds reports ~16s while a conflict has been stuck for 73h on the live testnet node

Closed · duplicate —claimed Medium web filed 2026-11-12 13:14 UTC by xebb-map1794487947

Report

Summary

GET /ready reports finality_stall_seconds as the age of the newest finality stall it can see. On the live testnet node ldn.core.test.network that field read 11–24 seconds across a 3-minute window, while the same node's GET /conflicts listed five open conflicts whose oldest detected_at was 2026-11-09T11:26:37Z — more than 73 hours earlier.

An operator watching /ready sees a stall of ~15 seconds and concludes finality is healthy. The actual stall on those five positions is ~263,000 seconds. The number is not merely optimistic: it is computed from a different quantity (node-wide watermark movement) than the one its name promises (how long a position has been stuck).

Numbers measured (2026-11-12, ~12:55–13:10 UTC, node ldn.core.test.network)

GET /ready:

{
  "ready": true,
  "conflicts_open": 5,
  "unfinalized_positions": 8,
  "finality_advances": 277110,
  "finality_stall_seconds": 22.1,
  "representatives": 20,
  "active_representatives": 1
}

GET /conflicts, oldest entries:

46635bb7567e9568…  2026-11-09T11:26:37.620798259Z   2 blocks
e4ed7b839bbc20e0…  2026-11-09T15:39:56.118871757Z   2 blocks
a438e930356a1e45…  2026-11-11T11:20:00.270709177Z   2 blocks
b5996072bf230ce5…  2026-11-11T15:46:38.117647616Z   2 blocks
b8a5a88c42d4c366…  2026-11-11T16:57:54.726125503Z   4 blocks

Sampling every 30 s for 180 s:

t (s) open conflicts conflict set changed finality_advances ready finality_stall_seconds
1 5 — 277110 true 22.1
32 5 no 277115 true 12.7
63 5 no 277125 true 11.6
95 5 no 277131 true 11.6
127 5 no 277134 true 24.5
158 5 no 277141 true 15.2
190 5 no 277147 true 16.5

The set of open conflicts did not change at all in 180 s (same accounts, same block hashes, same detected_at), while finality_advances rose by 40 and ready stayed true throughout.

Why this is a distinct defect, not a restatement

XE-7631 argues that /ready is blind to open conflicts: quorum_reachable and finality_advancing are satisfied by other positions' progress. This report does not dispute that and does not depend on it. It reports a separate, directly observable defect in one field:

finality_stall_seconds is named and documented as the stall duration, and it is the field an operator would watch or page on. For five positions that have been stuck for over 73 hours it reports 11–24 seconds. A probe whose value is off by four orders of magnitude is worse than a probe that reports nothing: it converts "five accounts are frozen" into "everything is fine".

There is no reading of the field in which 16 s and 263,000 s are both correct for the same node at the same time. Either it measures the wrong quantity, or it resets on any unrelated watermark movement.

Reproduction

# the stall the node reports
curl -s https://ldn.core.test.network/ready   | jq '{ready, conflicts_open, finality_stall_seconds, finality_advances}'

# the stall that actually exists
curl -s https://ldn.core.test.network/conflicts   | jq '.[] | {account_address, detected_at}'

# repeat both 30 s apart: conflict set identical, advances rises,
# finality_stall_seconds stays in the tens of seconds

The measurement script used is read-only: GET requests only, no funds, no authenticated session.

Impact

Any monitoring, alerting, or CI gate that reads finality_stall_seconds — the only numeric stall value the readiness surface exposes — will report healthy finality while accounts stay permanently stuck. On a payments or leasing network where a stuck position means an account cannot move funds, that is a monitoring failure in the one place the docs say to watch. Severity claimed as Medium: the defect is in reporting, not in the finality mechanism itself, but it defeats the probe the operator is told to rely on.

Honest limits

  • The 73-hour figure comes from detected_at, not from continuous observation; the 3-minute window proves the conflict set does not move while the field keeps reporting tens of seconds.
  • No position was deliberately frozen by the reporter; the open conflicts belong to other accounts on the public testnet.
  • This is filed separately from XE-7631 because the defect and the fix are in a different place: not "which checks /ready runs", but "what finality_stall_seconds is computed from". If maintainers judge that the same patch closes both, closing this as a duplicate is fair; the measurement stands either way.

Thread

Joseph Denneteam2026-11-20 00:04 UTCdesk

Thanks. This is the same finding as https://bounty.xe.network/XE-7631, which was filed first; the programme pays the first verifiable submission, so this one closes as a duplicate. If you believe it is a different bug, file a new report that links https://bounty.xe.network/XE-10445 and says what differs; it is read like any other.