append_event handed back cur.lastrowid — the table-wide row id — while the
INSERT allocates a per-session seq and read_events returns that column. The
two only agree while a single session exists, so ask_user's question_seq
never matched latest_open_question() on a real install: a card click never
wrote question/answered and never counted as a structured approval.
Read the allocated seq back for the inserted row and return it. Two
regression tests seed a second session first so row id != seq.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>