{"id":"XE-10445","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":2135,"title":"/ready finality_stall_seconds reports ~16s while a conflict has been stuck for 73h on the live testnet node","area":"node-api","claimed_tier":"medium","assessed_tier":null,"verdict":"duplicate","duplicate_of":"XE-7631","tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-12T13:14:49.331677+00:00","updated_at":"2026-11-20T00:04:38.501808+00:00","source_created_at":null,"told_at":"2026-11-20T00:04:38.529231+00:00","status_changed_at":"2026-11-20T00:04:38.509972+00:00","url":"https://bounty.xe.network/XE-10445","body":"## Summary\n\n`GET /ready` reports `finality_stall_seconds` as the age of the newest finality\nstall it can see. On the live testnet node `ldn.core.test.network` that field\nread 11–24 seconds across a 3-minute window, while the same node's\n`GET /conflicts` listed five open conflicts whose oldest `detected_at` was\n`2026-11-09T11:26:37Z` — **more than 73 hours** earlier.\n\nAn operator watching `/ready` sees a stall of ~15 seconds and concludes finality\nis healthy. The actual stall on those five positions is ~263,000 seconds. The\nnumber is not merely optimistic: it is computed from a different quantity\n(node-wide watermark movement) than the one its name promises (how long a\nposition has been stuck).\n\n## Numbers measured (2026-11-12, ~12:55–13:10 UTC, node ldn.core.test.network)\n\n`GET /ready`:\n\n```json\n{\n  \"ready\": true,\n  \"conflicts_open\": 5,\n  \"unfinalized_positions\": 8,\n  \"finality_advances\": 277110,\n  \"finality_stall_seconds\": 22.1,\n  \"representatives\": 20,\n  \"active_representatives\": 1\n}\n```\n\n`GET /conflicts`, oldest entries:\n\n```\n46635bb7567e9568…  2026-11-09T11:26:37.620798259Z   2 blocks\ne4ed7b839bbc20e0…  2026-11-09T15:39:56.118871757Z   2 blocks\na438e930356a1e45…  2026-11-11T11:20:00.270709177Z   2 blocks\nb5996072bf230ce5…  2026-11-11T15:46:38.117647616Z   2 blocks\nb8a5a88c42d4c366…  2026-11-11T16:57:54.726125503Z   4 blocks\n```\n\nSampling every 30 s for 180 s:\n\n| t (s) | open conflicts | conflict set changed | finality_advances | ready | finality_stall_seconds |\n| --- | --- | --- | --- | --- | --- |\n| 1 | 5 | — | 277110 | true | 22.1 |\n| 32 | 5 | no | 277115 | true | 12.7 |\n| 63 | 5 | no | 277125 | true | 11.6 |\n| 95 | 5 | no | 277131 | true | 11.6 |\n| 127 | 5 | no | 277134 | true | 24.5 |\n| 158 | 5 | no | 277141 | true | 15.2 |\n| 190 | 5 | no | 277147 | true | 16.5 |\n\nThe set of open conflicts did not change at all in 180 s (same accounts, same\nblock hashes, same `detected_at`), while `finality_advances` rose by 40 and\n`ready` stayed `true` throughout.\n\n## Why this is a distinct defect, not a restatement\n\nXE-7631 argues that `/ready` is blind to open conflicts: `quorum_reachable` and\n`finality_advancing` are satisfied by *other positions'* progress. This report\ndoes not dispute that and does not depend on it. It reports a separate, directly\nobservable defect in one field:\n\n`finality_stall_seconds` is named and documented as the stall duration, and it is\nthe field an operator would watch or page on. For five positions that have been\nstuck for over 73 hours it reports 11–24 seconds. A probe whose value is off by\nfour orders of magnitude is worse than a probe that reports nothing: it converts\n\"five accounts are frozen\" into \"everything is fine\".\n\nThere is no reading of the field in which 16 s and 263,000 s are both correct for\nthe same node at the same time. Either it measures the wrong quantity, or it\nresets on any unrelated watermark movement.\n\n## Reproduction\n\n```bash\n# the stall the node reports\ncurl -s https://ldn.core.test.network/ready   | jq '{ready, conflicts_open, finality_stall_seconds, finality_advances}'\n\n# the stall that actually exists\ncurl -s https://ldn.core.test.network/conflicts   | jq '.[] | {account_address, detected_at}'\n\n# repeat both 30 s apart: conflict set identical, advances rises,\n# finality_stall_seconds stays in the tens of seconds\n```\n\nThe measurement script used is read-only: GET requests only, no funds, no\nauthenticated session.\n\n## Impact\n\nAny monitoring, alerting, or CI gate that reads `finality_stall_seconds` — the\nonly numeric stall value the readiness surface exposes — will report healthy\nfinality while accounts stay permanently stuck. On a payments or leasing network\nwhere a stuck position means an account cannot move funds, that is a monitoring\nfailure in the one place the docs say to watch. Severity claimed as Medium: the\ndefect is in reporting, not in the finality mechanism itself, but it defeats the\nprobe the operator is told to rely on.\n\n## Honest limits\n\n- The 73-hour figure comes from `detected_at`, not from continuous observation;\n  the 3-minute window proves the conflict set does not move while the field\n  keeps reporting tens of seconds.\n- No position was deliberately frozen by the reporter; the open conflicts belong\n  to other accounts on the public testnet.\n- This is filed separately from XE-7631 because the defect and the fix are in a\n  different place: not \"which checks `/ready` runs\", but \"what\n  `finality_stall_seconds` is computed from\". If maintainers judge that the same\n  patch closes both, closing this as a duplicate is fair; the measurement stands\n  either way.","patch_refs":[],"thread":[{"id":12800,"source":"desk","source_ref":"reply:10822","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as https://bounty.xe.network/XE-7631, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, file a new report that links https://bounty.xe.network/XE-10445 and says what differs; it is read like any other.","created_at":"2026-11-20T00:04:38.501808+00:00"}]}