{"id":"XE-13763","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":2416,"title":"DAO harness: a passed resolution whose signing session fails can never execute — the worker's retry only looks for session_id == ''","area":"dao-harness","claimed_tier":"minor","assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"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-15T04:22:14.857543+00:00","updated_at":"2026-11-15T10:27:05.245120+00:00","source_created_at":null,"told_at":"2026-11-15T10:27:34.211035+00:00","status_changed_at":"2026-11-15T10:27:34.203200+00:00","url":"https://bounty.xe.network/XE-13763","body":"Summary\r\nresolutions.open_deferred_sessions (dao/dao/services/resolutions.py:215-226) is the worker's only retry for a passed resolution still owed its execution session, and it selects only resolutions with session_id == ''. Once open_session writes a session id (resolutions.py:179) nothing ever clears it. If that session reaches a terminal non-submitted state, the resolution stays 'passed' forever and its ops can never execute.\r\n\r\nReproduction (executed end-to-end against a local Postgres 16, real route handlers and services, real ed25519 keys; the node is a stub that answers)\r\n1. A resolution in status 'passed' with ops and session_id='' — the worker pass opens its session (opened=1, session_id set).\r\n2. Both keyset members approve (block built) and sign; the node refuses the block for a block-level reason (non-transient XeError 400, chain unmoved, keyset still met) — sessions._refused sets the session to 'failed', its designed terminal state for 'building the same ops again would draw the same refusal'.\r\n3. Worker retry pass: opened=0. The resolution is still 'passed', still pointing at the failed session; the session count for it stays 1.\r\n4. A member cancels the failed session (the only act left on it) — status 'cancelled'. Retry pass again: opened=0. Nothing changes.\r\n\r\nThere is no fallback creation path: sessions.create is called for a resolution only from open_session, and the members' manual session routes cover only the registry/anchor record kinds. Recovery is a brand-new resolution — a different instrument with a different number, decided again — while the record keeps showing the original as passed, with its session link leading to a dead session.\r\n\r\nImpact\r\nA governance decision that passed can silently lose its execution to a single node refusal at submit time, with no error, no event on the resolution, and no path short of re-deciding the matter under a new number. Distinct from XE-4148 (a session marked failed whose block had in fact landed — a wrong status): here the failure is real; what is lost is the resolution's execution.\r\n\r\nSuggested fix direction\r\nLet the deferred-session pass also select passed resolutions whose named session is in a terminal non-submitted state (failed/cancelled) — or clear session_id when such a session ends — so the owed execution is retried under a fresh session, with the retry on the resolution's record.","patch_refs":[],"thread":[{"id":5403,"source":"desk","source_ref":"reply:4080","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as an earlier report that is not public, 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-13763 and says what differs; it is read like any other.","created_at":"2026-11-15T10:27:05.245120+00:00"}]}