Repository source: docs/plans/pledges_checklist.md
Pledges Checklist
Working checklist for pledge campaigns on v3: a thread states a goal, replies pledge toward it, and no money moves through the site. It is not a Railspike artifact and approves no implementation. Each item below is its own staged Railspike cycle, following AGENTS.md. Record progress, checks and limitations here.
Requested by the maintainer on 2026-11-15. Design: pledges_spec.md. No matching item was found in docs/feedback/items/.
Everything ships behind one site flag, pledges, added in the first cycle and off by default.
Reuse inventory
Found on a first read at 9e5aa010. Each cycle re-checks its own part before planning.
src/ForumRewrite/Support/ThemeDirective.php,EventStatusDirective.phpandTitleDirective.phpread akey: valueline from a post body, skip quoted lines and take the first match.goal:andpledge:should follow them.src/ForumRewrite/View/ThreadTheme.phpandsrc/ForumRewrite/Calendar/EventStatus.phpderive a thread's state from its posts when read and store nothing.EventStatus::forThreads()does it for many threads at once, which board rows will need.Tagsets (
resources/tagsets.txt,src/ForumRewrite/ReadModel/PostResolution.php,templates/partials/post_unlocked_tags.php) give replies an exclusive state set by a reaction record. Candidate for withdrawn, delivered, confirmed and disputed.Retraction deletes a post's prose and leaves a notice (
docs/concepts/post_retraction.md). It makes a pledge stop counting but cannot show it as withdrawn.The deploy celebration (
docs/plans/deploy_celebration/) already has confetti and a banner.Feature flags are defined in
src/ForumRewrite/Support/FeatureFlags/FeatureFlagRegistry.php.The shared composer (
docs/concepts/shared_composer.md) is where a pledge box belongs.
Cycles
Status: built on
feat/pledge-campaigns, PR #268 merged 2026-11-16. Steps 2 and 3 were approved by Claude under the maintainer's one-time delegation. Pending: the maintainer's review and the release check on zenmemes.com from an iPhone SE. Step 1 · Step 2 · Step 3 · Step 4 · conceptDecided in Step 2 (self-approved; open to the maintainer's overrule): unverified and unnamed pledges show their amount and stay out of the sum; approval is not required; decimals to two places.
A pledge made without JavaScript has no name, so it is shown and not counted. Since 2026-11-16 the flag "Count pledges with no name" (
FORUM_PLEDGES_COUNT_UNNAMED_ENABLED, off by default) lets an instance count them. RecordChecks:
PledgeCampaignTest(7 tests) with the smoke set, andtests/browser/pledge_campaign.mjsin 17 themes at 375 and 1280 px. The full suite was not run. Outbox and offline sending were not exercised.Left out: no field on the separate Reply page or in paned layouts; the Pledge/Reply switch from the mock-up became one optional field.
Status: built on
feat/pledge-withdraw(fromorigin/mainatb9ffa6b8, after PR #268 merged), PR #275 merged 2026-11-16. The maintainer approved Steps 1 (Option A), 2 and 3 on 2026-11-16. Pending: the maintainer's review and the release check on zenmemes.com from an iPhone SE. Step 1 · Step 2 · Step 3 · Step 4 · conceptDecided: a
withdrawline in a reply to the pledge, read when the thread is shown; retracting that reply undoes it. A bare withdraw reply folds into the pledge; one with a note or an answer stays. Only the pledger withdraws; operators can still retract. The line takes no number. Nothing was built for part-filled pledges.For review first: "the pledger" is the same key, so a pledge made with one key cannot be withdrawn with another key of the same username. A counted pledge with no name cannot be withdrawn by anyone. Undo has no button: open the withdraw reply from "Withdrawn" and retract it.
Checks:
PledgeCampaignTest(12 tests) andWithdrawLeafFilterTestwith the smoke set;tests/browser/pledge_campaign.mjsin headless Chrome, including a failed first press, in 17 themes at 375 and 1280 px. The full suite was not run. The signed retraction used for undo, Outbox and offline sending were not exercised.Left out: no button on the separate Reply page or in paned layouts; the text output and agent API do not report the withdrawn state (cycle 6).
Status: built on
feat/pledge-fills(fromorigin/mainatc98b5221) in five stages. The maintainer approved Steps 1 (Option B), 2 and 3 on 2026-11-16. Pending: the maintainer's review and the release check on zenmemes.com from an iPhone SE. Step 1 · Step 2 · Step 3 · Step 4 · conceptScope (Option B): a
filledreply line from the pledger, the author or an operator; partial amounts add up to the pledge; a filled total and a confirmed share. Confirm and dispute moved to cycle 8,pledge_fill_review.Decided in Step 2 (approved): withdrawing a part-filled pledge withdraws only the unfilled part; a fill larger than what is left counts up to what is left; a bare
filledreply folds like a barewithdraw; "Delivered" for the pledger, "Filled" for the author or an operator; Released goes to cycle 8.Answered: who may mark when the pledger's key is not approved. A reply line needs no approval, only counted attribution.
Built: fills are read before withdrawals, so reply order never changes the result. A fully filled pledge loses Withdraw and the fill button. The block shows "filled" only once something is filled. "Mark filled" for operators uses the page's
viewerCanRetractOtherstest.Checks:
PledgeCampaignTest(17 tests) andWithdrawLeafFilterTest(2) with the smoke set;tests/browser/pledge_campaign.mjsin headless Chrome, including a failed first press, in 17 themes at 375 and 1280 px. The full suite was not run. Outbox and offline sending were not exercised.Found and fixed:
WithdrawLeafFilterTestfrom cycle 2 was never on the runner's list intests/run.php, so it had never run.Left out: no buttons on the separate Reply page or in paned layouts; the text output and agent API do not report fills (cycle 6).
Status: built on
feat/pledge-fill-review(fromorigin/mainat6bdc52d7) in four stages, PR #305 merged 2026-11-17. The maintainer approved Step 1 (Option A) on 2026-11-16, and Steps 2 and 3 on 2026-11-17. Pending: the maintainer's review and the release check on zenmemes.com from an iPhone SE. The maintainer approves every step. Step 1 · Step 2 · Step 3 · Step 4Scope (Option A):
confirmanddisputereply lines from the author or an operator, answering a pledger's fill reply. Buttons sit on the pledge's fill line, since a bare fill reply is folded.Released: dropped by the maintainer at Step 1 approval; not planned for the near future.
Built: reviews are read before fills, so a disputed fill takes no room and its part of the pledge is open again (the pledger can mark it delivered again or withdraw it). The latest counting review decides. A bare confirm folds; a dispute and the fill it answers stay as cards. Buttons sit on the pledge's fill line and show only on an unreviewed pledger fill, for the author or an operator.
Checks:
PledgeCampaignTest(22 tests) andWithdrawLeafFilterTest(3) with the smoke set;tests/browser/pledge_campaign.mjsin headless Chrome, with a second visitor as pledger and a failed first Confirm press, in 17 themes at 375 and 1280 px, plus--count-unnamed. The full suite was not run. Outbox and offline sending were not exercised.Left out: no review buttons on the separate Reply page or in paned layouts; the text output and agent API do not report reviews (cycle 6).
Replan, 2026-11-17
The maintainer: "this epic is getting out of control, it was supposed to be an mvp, and the frontend still looks like crap. let us prioritize the frontend and replan the epic, cut any unnecessary features."
The MVP is cycles 1 to 3 and 8, which are built, plus cycle 9, which makes the thread look right. Nothing else is planned.
Status: built on
feat/pledge-frontend(fromorigin/mainatf381052a) in five stages. The maintainer chose Option C at Step 1 and approved Steps 1, 2 and 3 on 2026-11-17. Pending: the maintainer's review and the release check on zenmemes.com from an iPhone SE (read the first screen; post and withdraw a pledge from the new form). Step 1 · Step 2 · Step 3 · Step 4 · conceptBuilt: the totals block under the title, with "Goal reached" or "Complete", a bar with delivered over pledged in the theme's ink, and "3 pledges · 15 delivered"; a pledge form there (the reply composer with an amount, a note and Post pledge, its own draft, no Options); used lines left out of the thread page's text; any action reply that is only its line folds, except a fill counted in part; each pledge card leads with its amount and Open, Part delivered or Delivered.
Checks:
PledgeCampaignTest(25 tests),WithdrawLeafFilterTest(3) andOfflineOutboxComposeTestwith the smoke set;tests/browser/pledge_campaign.mjsin 17 themes at 375 and 1280 px, plus--count-unnamed, with new checks for the pledge form's failed first press, separate drafts, the Reply link and unsent replies; a local replay of the demo thread at 375 by 667 px with and without JavaScript. The full suite was not run.Left out: no pledge form offline, on the Reply page or in paned layouts (a typed
pledge:line still works). There is no thread.txtview yet (cycle 6, parked).
Status: built on
feat/pledge-cards(fromorigin/mainat6e82449d) in four stages; Steps 1 (Option A), 2 and 3 approved by the maintainer 2026-11-17. Pending: the maintainer's review, whether the "claude" key is approved on zenmemes.com (otherwise the demo's pledges wait), and the release check from an iPhone SE (see the list, open a row, confirm a delivery from "More"). Step 1 · Step 2 · Step 3 · Step 4Built: only approved members' pledges, fills, withdrawals and reviews count, read when shown; others are "Waiting for approval" rows.
FORUM_PLEDGES_COUNT_UNNAMED_ENABLEDremoved. Each pledge is a closed one-line row; adjacent rows form a list and never merge into a same-author run. Every reply on a campaign thread has the list byline and its buttons in "More".Checks:
PledgeCampaignTest(31),WithdrawLeafFilterTest,FeatureFlagEvaluatorTestwith the smoke set;tests/browser/pledge_campaign.mjsin 17 themes at 375 and 1280 px with closed-row checks, an approval step and presses inside "More"; a local replay at 375 by 667 px with and without JavaScript. The full suite was not run.Left out: the opening post's action row; compact cards on other threads. Word97 and Bubblegum keep rows as separate windows.
Correction after merge (PR #317): approving someone now clears the baked pages of the threads they posted in, so their "Waiting for approval" rows go on the next view.
Status: built on
feat/pledge-board-rowsfromorigin/mainat1446b8a5(after PR #319 merged) in four stages and pushed as a PR. The maintainer approved Steps 1 (Option A), 2 (Liked rule unchanged) and 3 on 2026-11-17. Pending: the maintainer's review and the release check on zenmemes.com from an iPhone SE (find the demo campaign's row on the board, under All if it has no like, and compare it with its thread page). The maintainer approves every step. Step 1 · Step 2 · Step 3 · Step 4 · ledgerBuilt (Option A):
PledgeCampaign::forRows()runsfromPosts()for campaign rows on the shown page only; a page with no campaign reads nothing extra. One line under the title on thelistboard (/and/threads/); the excerpt leaves out the goal line. Approval and replies also clear the baked/index.html,/threads.htmland/threads/index.html.Checks:
PledgeCampaignTest(3 new cases),UserAccessTest(approval clears the board),BoardListTest,BoardSearchTestwith the smoke set;tests/browser/pledge_campaign.mjsin 17 themes at 375 and 1280 px with board checks, a long unit and no JavaScript; a local replay as a visitor with no cookies at 375 by 667 px, before and after an approval. The full suite was not run.Left out: card-layout and QDB boards, tag pages, profile, search and Recent; showing campaigns in Liked without a like. Not exercised: a campaign row with a thumbnail.
Notes for later cycles from cycle 8: PledgeCampaign::fromPosts() gains reviews, and a reviewed fill_list entry carries review, review_by and review_post_id, which cycle 6 can report. Cycle 4's "Complete" can read confirmed as it is.
Notes for later cycles from cycle 3: PledgeCampaign::fills() gives each fill a role (pledger, author, operator), which is what cycle 8's confirm and dispute need; fills and withdrawals carry the reasons; the fold and the button script take a new line by adding to their maps and roles.
Notes for later cycles from cycle 2: reply lines are read in PledgeCampaign::withdrawals(), with a reason for each one that does not take effect; WithdrawLeafFilter is the fold; pledge_withdraw.js shows how a button posts a signed reply line. A filled: line can follow all three.
Notes for later cycles from cycle 1: PledgeCampaign::fromPosts() is the one place that decides what counts, so withdrawal and fills extend it; pledge_amount.php is where a state badge goes; the amount field should also reach the separate Reply page.
Cycles 2 and 3 need 1. Cycle 8 needs 3. Cycle 9 needs 8. Cycle 10 needs 9.
Still open in the design
Since the 2026-11-17 replan, nothing below is planned; each stays as it is unless a real campaign shows the need.
Quiet campaigns: suggested answer is to show the last activity date and build nothing else.
Closing a campaign to new pledges.
Whole numbers only, or decimals. Cycle 1 Step 2: decimals to two places (self-approved under delegation).
Whether an unverified or unapproved post's pledge counts. Cycle 1 Step 2: unverified and unnamed pledges do not count, unapproved keys do (self-approved under delegation).
The plain theme drawn for the mock-ups: cut 2026-11-17.
Log
2026-11-15: design discussion; spec and mock-ups drafted outside the repository.
2026-11-16: spec copied to
docs/plans/pledges_spec.mdwith a code check; this checklist created; cycle 1 Step 1 written.2026-11-16: at the maintainer's request, the Step 1 draft, this checklist, the spec, the debug log and the ledger entry were committed on branch
plan/pledge-campaignsbefore Step 1 approval, so a new session can resume. This is an explicit exception to keeping Steps 1 to 3 uncommitted. Step 1 is still awaitingApproved Step 1.2026-11-16: maintainer approved cycle 1 Step 1 (Option A). Step 2 written with answers to the two Step 1 questions; awaiting
Approved Step 2. Mock-ups are on the design canvas.2026-11-16: the maintainer delegated step approval to Claude for cycle 1 only, as an experiment. Steps 2 and 3 approved on that basis; plans moved to
docs/plans/pledge_campaigns/; implementation started onfeat/pledge-campaigns.2026-11-16: cycle 1 built in four stages and pushed as a PR. Release check on zenmemes.com pending.
2026-11-16: cycle 2 Step 1 written and pushed on
plan/pledge-withdrawfor a new session to resume. Cycle 1's delegated approval does not apply to cycle 2.2026-11-16: new session. PR #268 checked: open, not merged, so
plan/pledge-withdrawneeded no update (0 commits behindorigin/main). Maintainer approved cycle 2 Step 1 (Option A). Step 2 written, shared and approved. Step 3 written in five stages, shared and approved; plans moved intodocs/plans/pledge_frontend/. Cycle 9 built in five stages onfeat/pledge-frontendfromorigin/mainatf381052aand pushed as a PR. Release check on zenmemes.com pending. Nothing else is planned. Spec's withdrawal lines reworded.2026-11-16: maintainer cut Step 2's part-filled groundwork by review comment, then approved Step 2. Step 3 written in four stages and shared as a file, then approved. PR #319 merged meanwhile; cycle 5 built in four stages on
feat/pledge-board-rowsfromorigin/mainat1446b8a5and pushed as a PR. Release check pending.2026-11-17: maintainer approved cycle 8 Step 3. Plans moved into
docs/plans/pledge_fill_review/; building onfeat/pledge-fill-reviewfromorigin/mainat6bdc52d7.2026-11-17: cycle 8 built in four stages and pushed as a PR. Release check on zenmemes.com pending. Cycle 4 is next.
2026-11-17: PR #305 merged. Demo thread posted on zenmemes.com as claude, showing cycles 1 to 3 on prod: Pledge campaigns demo: 50 coffees (60 of 50 pledged, a withdrawal, a full and a partial delivery, an unreadable pledge). Confirm and dispute need a second key, so the thread asks the maintainer to try them once cycle 8 is deployed; that is the release check for cycles 3 and 8.
2026-11-17: PR #309 merged. New session on
origin/mainatfc368349. Cycle 4 Step 1 was written, then dropped before approval: the maintainer asked to prioritize the frontend and cut unnecessary features. Epic replanned: cycle 9pledge_frontendis next; cycles 4 and 7 cut; 5 and 6 parked. Cycle 9 Step 1 written (recommends Option B) and shared as a file. The maintainer chose Option C; Step 1 revised and shared again, then approved. Step 2 written and shared as a file; awaitingApproved Step 2.2026-11-17: PRs #317 and #318 merged. The maintainer asked for the small polish fixes as one-shots; three built on
feat/pledge-polish. Next planned: cycle 5pledge_board_rows, to be started in a new session from a prompt block.2026-11-17: PR #316 merged. The maintainer reported "Waiting for approval" rows staying after approval until reload; a baked-page defect, fixed as a cycle 10 correction in PR #317. The maintainer asked to move the pledge form below the essay and frame it; cycle 11
pledge_form_placebuilt as a one-shot. Updating rows in place without a reload was answered with costs and not chosen.2026-11-17: PR #313 opened for cycle 9. The maintainer asked to iterate on the reply cards, which look busy. Cycle 10
pledge_cardsadded; Step 1 written (recommended Option B) and shared as a file. PR #313 merged. The maintainer asked to hide the less relevant buttons until a card is opened; Step 1 revised (Option D, a "More" disclosure) and shared again. The maintainer asked to collapse pledges to the bare minimum; Step 1 revised again (recommends Option F, one row per pledge) and shared. The maintainer decided Reply goes inside "More" and ordinary replies get compact cards, and asked that only approved users' pledges appear; Step 1 revised a third time (adds the approved-only rule and removes the count-unnamed flag). After a review of the choices, the maintainer chose waiting rows; Step 1 rewritten clean (recommends Option A, 0.65), shared and approved. Step 2 written, shared and approved. Step 3 written in four stages, shared and approved; plans moved intodocs/plans/pledge_cards/. Cycle 10 built in four stages onfeat/pledge-cardsand pushed as a PR. Release check pending.2026-11-16: maintainer approved cycle 2 Step 3. PR #268 had merged by then, so cycle 2 was built in four stages on a new branch from
origin/mainand pushed as a PR. Release check on zenmemes.com pending.2026-11-16: PR #275 merged. Cycle 3 Step 1 written and pushed on
plan/pledge-fillsfor a new session to resume.2026-11-16: new session.
plan/pledge-fillswas 0 commits behindorigin/main, so it needed no update. Maintainer approved cycle 3 Step 1 (Option B). Cycle 8pledge_fill_reviewadded. Step 2 written and shared as a file; awaitingApproved Step 2.2026-11-17: maintainer approved cycle 8 Step 2. Plan moved onto
origin/mainat4a6c8bd0(unrelated PRs only). Step 3 written in four stages and shared as a file; awaitingApproved Step 3.2026-11-16: maintainer approved cycle 3 Step 3. Built in five stages on
feat/pledge-fillsfrom a freshorigin/mainand pushed as a PR. Release check on zenmemes.com pending.2026-11-16: maintainer approved cycle 3 Step 2. Two unrelated PRs had landed, so
plan/pledge-fillswas rebased ontoorigin/mainlocally. Step 3 written in five stages and shared as a file; awaitingApproved Step 3.2026-11-16: PR #282 merged. New session on a fresh
origin/main(f13ed676);plan/pledge-fillsis stale and not used. Cycle 8 Step 1 written (recommends Option A) and shared as a file; awaitingApproved Step 1. Cycle 2's Withdrawn noted as a reply line, not a reaction.2026-11-16: maintainer approved cycle 8 Step 1 (Option A) and dropped Released. Step 2 written and shared as a file; awaiting
Approved Step 2.2026-11-17: new session on
origin/mainatd33114d2; PR #319 still open, so not included. The maintainer unparked cycle 5pledge_board_rows. Step 1 written (recommends Option A, 0.35) and shared as a file. The maintainer asked whether it is only a display change and for a brief A/B comparison, then approved Step 1 (Option A). Step 2 written and shared as a file; it asks whether campaigns should show in the Liked view without a like. The maintainer approved Step 2; the Liked question went unanswered, so the Liked rule stays. Step 3 written in four stages and shared as a file; awaitingApproved Step 3.
— Claude · 2026-11-16 UTC · Model: Claude Fable 5.2 — Claude · 2026-11-16 UTC · Model: Claude Opus 5.5 (cycle 8 entries)