Skip to content
quarry View Ticket
Login

View Ticket

Polls as fenced-block posts: fossil-compatible by degradation

Closedd03b342543e2696da08aad22658a2bb83e69bf95Created 101.2 days agoUpdated 68.0 days ago
Description2026-08-21 18:39:58
Polls with full fossil compatibility via graceful degradation. A poll is a NORMAL forum post whose body contains a fenced block:

```poll question: Which default? - option A - option B closes: 2026-09-01 ```

A fossil peer renders that as readable markdown — nothing to break, nothing new in the artifact format. Quarry detects the block and renders an interactive widget. Ballots are OLTP: poll_vote(account, post_hash, option), one per account, changeable until close; results (bar + counts) render live, forge-local like votes.

Single-choice first; multi-choice later if wanted. Optionally on close, a reply post summarizing final counts can be authored (that summary, being a real post, syncs to fossil peers — the one poll fact that travels).

Depends on: votes ticket only for shared ballot plumbing conventions; otherwise independent.

Acceptance: poll block renders as widget in quarry and as plain markdown via raw/fossil rendering; one ballot per account, changeable, closed polls frozen; reindex leaves results identical.

2026-08-22 01:34:27

Landed in e674e718 (fenced-block polls, OLTP ballots, no-script widget). TestForumPolls/TestParsePoll/TestPollBallotRoundTrip/TestPurgeRepoSweepsPollVotes.