DAO harness: a passed resolution whose signing session fails can never execute — the worker's retry only looks for session_id == ''
Report
Summary resolutions.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.
Reproduction (executed end-to-end against a local Postgres 16, real route handlers and services, real ed25519 keys; the node is a stub that answers)
- A resolution in status 'passed' with ops and session_id='' — the worker pass opens its session (opened=1, session_id set).
- 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'.
- Worker retry pass: opened=0. The resolution is still 'passed', still pointing at the failed session; the session count for it stays 1.
- A member cancels the failed session (the only act left on it) — status 'cancelled'. Retry pass again: opened=0. Nothing changes.
There 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.
Impact A 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.
Suggested fix direction Let 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.
Thread
Thanks. This is the same finding as an earlier report that is not public, 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-13763 and says what differs; it is read like any other.