presidentielle.fun: social space specification

Julien Béranger

+ Claude Opus 5.5

Summary

presidentielle.fun gets a social space ahead of the 2027 French presidential election. Users write posts, and anyone can comment on a post or reply to a comment.

Four properties define it:

  • Open accounts. Anyone logged in with a w3pk wallet can publish a post, publish a comment and like. There is no identity check at signup, and no membership tier.
  • Authors control what they write. An author can edit or delete their posts and comments at any time. Every edit goes back through moderation.
  • Moderated before publication. Every post, comment and edit goes through an LLM before it is stored.
  • Rules decided by the founder, anchored onchain. The moderation rules are a Markdown file in the repository, public/mod.md. The founder alone decides them, but every change goes through a public proposal on a w3hc/gov DAO whose only member is the founder, and takes effect at least 24 hours later. The moderator only uses public/mod.md when its hash matches the one recorded onchain.

The code, the database schema and the deployment steps are open source, so anyone can restart the forum (section 13).

Stack

ComponentWhereHolds
Next.js app: pages and API routesVercel, existing project behind presidentielle.funPages, moderation, signature checks, the rules file
PostgreSQLUbuntu VPS on InfomaniakPosts, comments, likes, moderation log
NFT and Gov contractsOP MainnetThe founder's token, proposals, votes, the hash of the rules in force
GitHub ActionsThe public repositoryProposing and executing rules changes

Two external services are called but not hosted: an OP Mainnet RPC provider and an LLM API.

Architecture

The app holds no private key. It only reads from OP Mainnet.

1. Pages

URLShows
https://presidentielle.fun/postsAll posts, newest first: title, description, like and comment counts
https://presidentielle.fun/<post-slug>One post, its comments and their like counts
https://presidentielle.fun/govThe rules in force and how they are governed (section 8)
https://presidentielle.fun/mod.mdThe raw rules file, served from public/

Pages are rendered on the server and readable without an account. Vercel redirects plain HTTP to HTTPS.

Post slugs

Each post gets its slug when it is created, from its title: lowercase, accents stripped, spaces and punctuation turned into single hyphens, only a-z, 0-9 and - kept, cut at 80 characters. If the slug is taken, -2, -3 and so on are appended.

  • Stable. Editing the title doesn't change the slug, so links never break.
  • Never reused. A deleted post keeps its slug, and its URL shows "deleted by its author".
  • Reserved. Slugs that match a top-level route (posts, gov, api, and any route added later) are refused at creation, and get a suffix instead.

2. Accounts

An account is a w3pk wallet address. There is nothing to register: being logged in means having a w3pk wallet that signs each write.

Anyone logged inFounder
Publish a post or a commentYes, within rate limitsYes
Edit or delete their own textsYesYes
Like posts and commentsYes, within rate limitsYes
Take down a text (removed)NoYes
Vote on the rulesNoYes (section 8)

Reading needs no account. Creating addresses is free, so an address says nothing about the person behind it. Section 9 covers how the open feed is protected.

3. Posts and comments

A post has a title, a description and a body, and appears on /posts and at its own URL. A comment belongs to one post. It either answers the post directly or replies to another comment on the same post.

PostComment
Appears on /postsYes, title and descriptionNo, shown under its post
Has its own URLYes, /<post-slug>No, an anchor on its post's page
Can be likedYes, by anyone logged inYes, by anyone logged in
Edit and delete by its authorYesYes
LengthTitle 1–100, description 1–200, body 1–1,000 characters1–500 characters

The description is what /posts lists under the title, and also the page's meta description. Moderation reviews the title, the description and the body together.

A post's author has no control over the comments under it: they can't close comments or hide them. Only moderation and the founder's takedowns can remove a comment, apart from its own author.

The thread under a post is unlimited in depth in the data. The page indents up to depth 3 and shows deeper replies flat, with an "in reply to" link.

Deleting. A deleted post loses its author, title, description and body, and its likes are removed. Its row stays with its slug, so the URL keeps resolving and the slug is never reused. Other people's comments under it stay, under a "deleted by its author" tombstone. A comment with no replies is deleted outright. One that has replies becomes a tombstone so the conversation below it holds together.

4. Likes

Anyone logged in can like a post or a comment. Each like is an EIP-712 signature from the liker, stored in PostgreSQL. The API enforces three rules:

  1. The liker is not the author.
  2. An address likes a given post or comment once, which the table's primary key guarantees.
  3. The like stays within the liker's rate limits (section 9).

A like can be withdrawn, and it disappears when the post or comment is deleted. Likes carry no text, so they skip moderation and cost no LLM call.

Likes are for display only: they grant nothing and don't order /posts, which stays newest first. Since accounts are free, a like count is a weak signal that one person with many addresses can inflate. Present it as such.

Like counts are public. The list of who liked something is not: likes on political posts reveal political opinions, so they stay private.

5. Contracts

ContractSourceChanges
NFTw3hc/gov NFT.solNone
Govw3hc/gov Gov.solNone

The DAO is a public, timestamped commitment rather than a collective governance: the founder can't change the rules silently or instantly, and every version stays visible onchain with its date.

One member, no operator

The NFT holds a single token, the founder's. The founder is the only entry in _firstMembers, and the constructor delegates that token to the founder, so the vote is active from deployment.

operator is never set and stays the zero address, so operatorMint can't be called. The app holds no key that can mint.

Rules: public/mod.md and its hash

The rules are a Markdown file, public/mod.md, kept in the repository. Gov.manifesto() holds its hash, not its text, and a rules change is a proposal calling Gov.setManifesto(newHash).

The hash is an IPFS CID, computed as in affix-ui's documentHash.ts: the ipfs-unixfs-importer with cidVersion: 1, rawLeaves: true and wrapWithDirectory: false, in memory. Nothing is stored or published on IPFS: the CID is only used as a hash. The same function runs in the app, in the CI and in the browser on /gov, so anyone can recompute the hash of the file they read. In Node.js 24, the file is wrapped with new File([bytes], "mod.md").

While mod.md stays under the importer's default chunk size (256 KiB), the file fits in one raw block, and the CID is a CIDv1 with the raw codec wrapping the file's SHA-256. Keep the file well under that size. A larger file would be split into several blocks, and the hash would then depend on the importer's chunking settings.

Deployment sequence

  1. Deploy NFT with the deployer as temporary owner and the founder as the only entry in _firstMembers, using the deploy script and its config file.
  2. Deploy Gov pointing at it, with the hash of the founding public/mod.md as the initial manifesto, a voting delay of 0, a voting period of 86,400 seconds (24 hours), a proposal threshold of 0 and a quorum of 10% (section 8).
  3. Transfer ownership of NFT to Gov. From then on, only a proposal can mint or burn a token, or set an operator.

Publish the contract addresses, and the fact that the founder is the only voter, from day one.

6. Writes

Signed operations

There are no sessions or cookies. Every write is an EIP-712 signature from the user's w3pk wallet:

const types = {
  Post:          [ { name: "title", type: "string" },
                   { name: "description", type: "string" },
                   { name: "body", type: "string" },
                   { name: "timestamp", type: "uint256" } ],
  Comment:       [ { name: "postId", type: "uint256" },
                   { name: "parentId", type: "uint256" },   // 0 = directly on the post
                   { name: "body", type: "string" },
                   { name: "timestamp", type: "uint256" } ],
  EditPost:      [ { name: "postId", type: "uint256" },
                   { name: "version", type: "uint256" },    // version being replaced
                   { name: "title", type: "string" },
                   { name: "description", type: "string" },
                   { name: "body", type: "string" },
                   { name: "timestamp", type: "uint256" } ],
  EditComment:   [ { name: "commentId", type: "uint256" },
                   { name: "version", type: "uint256" },
                   { name: "body", type: "string" },
                   { name: "timestamp", type: "uint256" } ],
  DeletePost:    [ { name: "postId", type: "uint256" },
                   { name: "timestamp", type: "uint256" } ],
  DeleteComment: [ { name: "commentId", type: "uint256" },
                   { name: "timestamp", type: "uint256" } ],
  Like:          [ { name: "target", type: "string" },      // "post" or "comment"
                   { name: "id", type: "uint256" },
                   { name: "timestamp", type: "uint256" } ],
  Unlike:        [ { name: "target", type: "string" },
                   { name: "id", type: "uint256" },
                   { name: "timestamp", type: "uint256" } ],
};

The domain includes the site name, a version and the OP Mainnet chain ID (10).

Replays. The server rejects timestamps more than 5 minutes old, and records the EIP-712 digest of every accepted operation in used_signatures, which it checks before anything else. That table is separate from the rows the operations create, so deleting a like or a post doesn't free its signature for a second use. Keying on the digest rather than on the signature bytes also covers signature malleability: two valid signatures of the same operation share one digest. Rows older than an hour are purged, since the timestamp check already rejects anything older. version stops an old edit from being replayed over a newer one.

API routes

Writes address posts and comments by their numeric ID, which the signatures carry. Pages are rendered on the server from the database, and only the routes below are called from the browser.

RouteDoes
POST /api/postsVerify signature, check rate limits, moderate, generate the slug, insert. Returns the slug
PUT /api/posts/:idVerify signer is the author and the version matches, moderate the new title, description and body against the current rules, replace them. The slug doesn't change. On rejection the previous version stays online
DELETE /api/posts/:idVerify signer is the author. Clear the post's content and delete its likes, keeping its slug
POST /api/posts/:id/commentsVerify signature, check rate limits, check the post (and the parent comment, if any) is published and belongs to that post, moderate, insert
PUT /api/comments/:idSame as editing a post, for the body only
DELETE /api/comments/:idVerify signer is the author. Delete the comment and its likes, or leave a tombstone if it has replies
POST /api/posts/:id/like, POST /api/comments/:id/likeVerify signature, check the liker isn't the author and the rate limits, insert. A second like from the same address hits the primary key and is ignored
DELETE /api/posts/:id/like, DELETE /api/comments/:id/likeWithdraw a like
GET /api/posts?cursor=The next page of /posts: title, slug, description, like and comment counts, newest first, keyset pagination on (created_at, id)

Reads are public and need no signature. Each post and comment shows an "edited" marker, and each post shows the number of likes received before its last edit.

Schema

CREATE TABLE posts (
  id           BIGSERIAL PRIMARY KEY,
  slug         TEXT        NOT NULL UNIQUE CHECK (slug ~ '^[a-z0-9]+(-[a-z0-9]+)*$'),
  author       CHAR(42),                            -- lowercase 0x address, null once deleted
  title        TEXT        CHECK (char_length(title) BETWEEN 1 AND 100),
  description  TEXT        CHECK (char_length(description) BETWEEN 1 AND 200),
  body         TEXT        CHECK (char_length(body) BETWEEN 1 AND 1000),
  signature    TEXT,
  signed_at    TIMESTAMPTZ,
  version      INTEGER     NOT NULL DEFAULT 1,
  rules_cid    TEXT,                                -- hash of the rules used
  status       TEXT        NOT NULL DEFAULT 'published'
                           CHECK (status IN ('published', 'removed', 'deleted')),
  created_at   TIMESTAMPTZ NOT NULL DEFAULT now(),
  edited_at    TIMESTAMPTZ,
  CHECK (status = 'deleted' OR (author IS NOT NULL AND title IS NOT NULL
         AND description IS NOT NULL AND body IS NOT NULL AND signature IS NOT NULL))
);
CREATE INDEX posts_list   ON posts (created_at DESC, id DESC);
CREATE INDEX posts_author ON posts (author, created_at DESC);

CREATE TABLE comments (
  id           BIGSERIAL PRIMARY KEY,
  post_id      BIGINT      NOT NULL REFERENCES posts(id),
  parent_id    BIGINT      REFERENCES comments(id), -- null when answering the post directly
  depth        SMALLINT    NOT NULL DEFAULT 0,
  author       CHAR(42),
  body         TEXT        CHECK (char_length(body) BETWEEN 1 AND 500),
  signature    TEXT,
  signed_at    TIMESTAMPTZ,
  version      INTEGER     NOT NULL DEFAULT 1,
  rules_cid    TEXT,
  status       TEXT        NOT NULL DEFAULT 'published'
                           CHECK (status IN ('published', 'removed', 'deleted')),
  created_at   TIMESTAMPTZ NOT NULL DEFAULT now(),
  edited_at    TIMESTAMPTZ,
  CHECK (status = 'deleted' OR (author IS NOT NULL AND body IS NOT NULL AND signature IS NOT NULL))
);
CREATE INDEX comments_thread ON comments (post_id, created_at);
CREATE INDEX comments_author ON comments (author, created_at DESC);

CREATE TABLE post_likes (
  post_id     BIGINT      NOT NULL REFERENCES posts(id) ON DELETE CASCADE,
  liker       CHAR(42)    NOT NULL,
  signature   TEXT        NOT NULL,
  created_at  TIMESTAMPTZ NOT NULL DEFAULT now(),
  PRIMARY KEY (post_id, liker)
);
CREATE INDEX post_likes_liker ON post_likes (liker, created_at);

CREATE TABLE comment_likes (
  comment_id  BIGINT      NOT NULL REFERENCES comments(id) ON DELETE CASCADE,
  liker       CHAR(42)    NOT NULL,
  signature   TEXT        NOT NULL,
  created_at  TIMESTAMPTZ NOT NULL DEFAULT now(),
  PRIMARY KEY (comment_id, liker)
);
CREATE INDEX comment_likes_liker ON comment_likes (liker, created_at);

-- EIP-712 digests of accepted operations. Purged after one hour.
CREATE TABLE used_signatures (
  digest      CHAR(66)    PRIMARY KEY,
  created_at  TIMESTAMPTZ NOT NULL DEFAULT now()
);

CREATE TABLE moderation_log (
  id          BIGSERIAL PRIMARY KEY,
  author      CHAR(42),                             -- null once the author's account is erased
  action      TEXT        NOT NULL CHECK (action IN ('post', 'comment', 'edit_post', 'edit_comment')),
  body_hash   CHAR(66)    NOT NULL,                 -- keccak256 of the submitted text
  post_id     BIGINT      REFERENCES posts(id) ON DELETE SET NULL,
  comment_id  BIGINT      REFERENCES comments(id) ON DELETE SET NULL,
  decision    TEXT        NOT NULL CHECK (decision IN ('allow', 'reject', 'error')),
  rule_ids    TEXT[],
  reason      TEXT,
  rules_cid   TEXT        NOT NULL,                 -- onchain hash at the time of the decision
  model       TEXT        NOT NULL,
  created_at  TIMESTAMPTZ NOT NULL DEFAULT now()
);

Posts are never deleted from the table, so their slugs are never reused and comments.post_id doesn't need a cascade. published is live, removed is a takedown by the founder (a legal order, or a rules change applied retroactively), and deleted is the author's choice. Previous versions of an edited text are not kept, and rejected texts are stored only as a hash. The text of every rules version is in the repository's history, under the hash recorded in rules_cid.

The schema is kept as numbered migration files in the repository (section 13).

7. Moderation

Checking the rules

  1. When a function instance starts, it reads public/mod.md from its own bundle and computes its hash. Next.js doesn't put public/ files in the function bundle by default, so include it with outputFileTracingIncludes.
  2. Before each decision, it reads Gov.manifesto() over RPC, cached for about a minute.
  3. If the two hashes match, it moderates with that file. If they don't, it fails closed: nothing is published, the decision is logged as error with the onchain hash, and the user is told the rules are being updated.

The two hashes differ only between the execution of a rules proposal and the deployment that follows it. Section 8 keeps that gap to a few minutes.

Deciding

  1. Send the LLM a fixed system prompt, the rules, the context, and the candidate text, clearly delimited as untrusted input. For a post, the text is its title, description and body. For a comment, the context is the post and, for a reply, the parent comment.
  2. Require strict JSON in return: { "decision": "allow" | "reject", "rule_ids": ["R3"], "reason": "…" }.
  3. Fail closed. A timeout, malformed output or provider error means nothing is published. For an edit, the previous version stays online. Log it as error and ask the user to retry.

Decisions are final in this version: there are no appeals. A rejected author sees the rule cited and the reason, and can rewrite and resubmit. Section 14 describes the appeal process planned for a later version.

Edits are judged against the rules in force at the time of the edit. The rules are numbered (R1, R2…) so decisions can cite them and changes can amend specific rules. Test against a small adversarial set, including "ignore your instructions" attempts, before launch and after every rules change. Record the model in every log entry and announce model changes, since they can shift outcomes as much as a rules change.

8. Governance

The founder holds the only token, so the founder alone decides every proposal. What the DAO adds is a public, dated trail: every rules version is proposed, voted on and executed in the open, and takes effect at least 24 hours after it is proposed.

Parameters

ParameterValueWhy
Voting delay0Voting opens in the next block
Voting period86,400 seconds (24 hours)The NFT's clock is in seconds (ERC-6372 mode=timestamp)
Proposal threshold0The CI can propose without holding a token
Quorum10%With one token, this rounds down to zero votes, but a proposal still needs more votes for than against, so it passes only if the founder votes for it

A Governor vote can't end early, so the 24 hours always run in full, even after the founder has voted. For an urgent case, the founder takes a text down with the removed status, which needs no rules change.

With a threshold of 0, anyone can create a proposal. That's harmless, since only the founder votes. /gov and the CI only follow proposals created by the CI's proposer address.

Changing the rules from the repository

A rules change is a pull request that edits public/mod.md. Two workflows and one required check handle the rest.

rules-propose. It runs when the pull request gets the rules label, and again on each new push while the label is on. It:

  1. computes the hash of public/mod.md with the same getDocumentCID function as the app;
  2. calls Gov.propose([GOV], [0], [setManifesto(hash)], description) with a disposable proposer key, where the description holds the hash and the pull request's link;
  3. comments on the pull request with the proposal ID, the hash and the time voting ends.

The proposer key lives in the repository's secrets with a few dollars of ETH. It can only create proposals, so a compromised CI can spam proposals but can't change the rules.

The founder votes from /gov or any Governor interface, with their own wallet. The founder's key never goes into GitHub.

rules-execute. It runs every few minutes once a proposal's voting period is about to end. For every proposal from the proposer address that has Succeeded, it rebuilds the arguments from the ProposalCreated event and calls execute, which anyone can do. The same disposable key pays the gas.

rules-check, a required status check on the main branch, passes only when the hash of public/mod.md in the pull request equals Gov.manifesto(). A rules pull request can therefore merge only after its proposal has been executed, and main always holds the rules in force.

Auto-merge. Rules pull requests are opened with GitHub's auto-merge on, and rules-execute re-runs rules-check after executing. The merge, and the Vercel deployment it triggers, follow the execution within minutes. During those minutes, new posts, comments and edits fail closed (section 7). Likes and reads keep working.

If two rules pull requests are open, only the one whose proposal was executed last can merge.

The /gov page

/gov shows:

  • the rules in force, rendered from public/mod.md, with a link to the raw file at /mod.md;
  • the hash read from Gov.manifesto(), the hash of the deployed file, and whether they match;
  • a drop zone that computes the hash of any file in the browser, with the same function, so anyone can check a copy of the rules themselves;
  • the proposals from the proposer address, with their status, the founder's vote, the time voting ends and a link to the pull request;
  • the NFT and Gov addresses on OP Mainnet, and the fact that the founder is the only voter.

When the connected wallet holds the token, the page also shows the buttons to vote on open proposals.

The founding rules should at minimum cover illegal content under French law, harassment, doxxing, spam and impersonation of candidates.

9. Abuse controls

Accounts are free, so these slow abuse down and cap its cost rather than stop it.

  • Rate limits per address, counted in PostgreSQL: for example 3 posts, 10 comments and 30 likes per hour, and a few edits per text per hour.
  • Per-IP limits alongside per-address ones, using the client IP that Vercel forwards. They matter most for likes, which are the cheapest action to repeat across many addresses.
  • Cheap checks before the LLM: length, link count, recent duplicates.
  • A daily LLM budget. When it is spent, new posts, comments and edits are asked to wait until the next day. Likes don't use the LLM and keep working.
  • Optional friction, such as a proof of work or a captcha on an address's first post, comment or like, switched on during floods.

10. Infrastructure

Next.js on Vercel

The app runs on the existing Vercel project, whose configuration stays as it is: Fluid compute enabled, Node.js 24, functions in iad1 (Washington, D.C.). presidentielle.fun is the primary domain.

  • Latency. Functions run in the US and the database in Switzerland, so every query costs a transatlantic round trip, roughly 80–100 ms. Keep each request to one or two queries, and lean on caching for reads.
  • Database access follows personal-website's src/lib/db.ts: one shared postgres.js client built from DATABASE_URL, with ssl: 'verify-full', max: 3, idle_timeout: 20 and connect_timeout: 10. With Fluid compute, concurrent requests share an instance and its 3 connections, so there is no pooler. If traffic grows enough to approach PostgreSQL's max_connections, add PgBouncer on the VPS then.
  • Read caching follows the same repo's src/lib/posts.ts: the /posts and post queries are wrapped in unstable_cache with a short revalidate and a tag (posts, post:<slug>). Write routes call revalidateTag for what they changed, so authors see their own edits and deletions immediately.
  • Environment variables: DATABASE_URL, OP_RPC_URL, GOV_ADDRESS, LLM_API_KEY, LLM_DAILY_BUDGET. The app holds no private key.
  • Repository secrets: PROPOSER_PRIVATE_KEY and OP_RPC_URL. Keep a small ETH balance on the proposer key and alert when it runs low.
  • Moderation adds a few seconds to each write. Check that the functions' maximum duration covers a slow LLM response, and show a "being reviewed" state in the UI.

PostgreSQL on Infomaniak

  • Exposure. Vercel has no fixed outbound IPs, so port 5432 is reachable from the internet. Serve a certificate valid for the database hostname, which verify-full requires, accept only hostssl connections with scram-sha-256 in pg_hba.conf, and add fail2ban.
  • Roles. The app connects with a dedicated role that can only read and write these tables. Superuser logins over the network are disabled.
  • Scheduled purge. An hourly job deletes used_signatures rows older than an hour.
  • Backups. Posts, comments and likes exist only in this database. Run a daily pg_dump, encrypted, to storage outside the VPS, and test restores. Keep a short published retention (for example 30 days), since backups also hold deleted texts.

11. Threat model

ThreatMitigationResidual risk
Founder's wallet stolenThe w3pk wallet stays off servers and CI; /gov shows every proposal as it opens; 24 hours before any change takes effectThe attacker controls the onchain hash and the NFT. Moderation fails closed as soon as the hash no longer matches the deployed file, and recovery means redeploying the contracts and pointing the app at the new Gov
Proposer key stolenIt can only create proposals; the founder votes; /gov and the CI follow its proposals onlySpam proposals, and the loss of its small ETH balance
CI or repository compromisedrules-check and the founder's vote both see the hash; the moderator only uses a file whose hash matches the onchain oneA malicious file is proposed, and passes only if the founder votes for it without reading it
Gap between execution and deploymentAuto-merge, and a deployment within minutesNew posts, comments and edits are refused for a few minutes after each rules change
Database attacked over the internetTLS only, scram-sha-256, least-privilege role, fail2banThe port stays open to the internet
Database lostDaily offsite backups, tested restoresUp to a day of posts, comments and likes
Bot accounts flooding /posts or comment threadsRate limits per address and per IP, pre-LLM checks, LLM budget, optional frictionHigh, since accounts are free
Fake accounts inflating like countsPer-address and per-IP limits on likes; /posts is ordered by date, not likesLike counts can be inflated, and should be presented as a weak signal
Slug squatting: a misleading title taking a candidate's name as URLTitles go through moderation; impersonation of candidates is in the founding rulesA slug outlives an edit of its title, so a takedown is the only fix
Replayed signatures5-minute window; digests kept in used_signatures independently of the rows they createdNone known
Bait and switch: collect likes, then editEdits are re-moderated and marked; likes before the edit are shownLittle, since likes grant nothing
Forged or altered textsEvery write is signed by its authorThe founder can still delete or hide texts
Prompt injection against moderationDelimited input, strict JSON, fail closed, adversarial testsLLMs remain fallible, and there are no appeals yet
Rules decided by one personEvery change is public, dated and delayed by 24 hours; the history stays onchainThe rules reflect the founder's choices, and so does the moderation's credibility

12. Data protection

This section is not legal advice. Have it reviewed before launch.

What is public and permanent

No user's personal data goes onchain. OP Mainnet holds only:

  • The founder's address, as the only token holder.
  • The founder's votes on rules changes.
  • Proposals: the hashes of the rules and links to their pull requests.

The rules files themselves are in the public repository. No post, comment, like or text hash ever goes onchain, so users need no notice about permanent public records.

Offchain data

Posts, comments, likes, signatures and the moderation log are stored on the VPS in Switzerland, which the EU recognizes as providing adequate data protection. All of it can be deleted:

  • Deleting a post removes its author, title, description, body and likes. Only its slug remains, so its URL shows it was deleted. Slugs come from titles, so an author who wrote their own name in a title can ask the founder to have the slug replaced.
  • Deleting a comment removes it and its likes, or leaves a tombstone without author or text when it has replies.
  • Withdrawing a like removes it.
  • Deleting an account does the same for all of the user's posts, comments and likes, and nulls the author in the moderation log.

Like lists are never public, because likes on political posts are the clearest article 9 data in the system.

Processors

  • Vercel runs the functions in the United States and sees requests, including IP addresses and the text being submitted. That is a transfer outside the EU: rely on Vercel's data processing agreement and check which transfer mechanism it uses (the EU–US Data Privacy Framework or standard contractual clauses).
  • The LLM provider receives every text submitted for moderation, along with its context. Choose a provider with a data processing agreement and no training on API data, and list it in the privacy policy.
  • The RPC provider sees the app's reads of Gov, which carry no user data.

Obligations

  • Controller. Name one: you personally, or an association created to run the service.
  • DPIA. Write one. It's almost certainly required for political content at this scale.
  • Privacy policy stating what is stored, where, for how long, on which legal basis, and which processors are involved and where.
  • Hosting obligations. A notice-and-action mechanism and a public contact under the Digital Services Act and French law. The removed status supports this for posts and comments alike.
  • Minimum age. Declared in the terms of use, since there is no verification.
  • Election period. French rules on political communication tighten as the vote approaches. Check whether any apply to a citizen forum.

13. Continuity

The repository is public under an open-source license, and it contains everything needed to run the forum:

  • the Next.js app, including the moderation system prompt;
  • the rules, public/mod.md, and the workflows that propose and execute their changes;
  • the schema as numbered migration files;
  • the contract deployment script and its config;
  • a README that lists the contract addresses on OP Mainnet and walks through a fresh deployment: a Vercel project, a PostgreSQL instance, the environment variables, the repository secrets, the migrations.

If the maintainer stops, Gov and the history of the rules hashes stay on OP Mainnet, and the rules files stay in the repository. Someone else can deploy the code against the same Gov and moderate with the current rules, but can't change them, since only the founder votes. To change them, they deploy their own NFT and Gov with the current hash as the initial manifesto.

Posts, comments and likes live only in the original database, so a restart begins with an empty forum unless the previous maintainer handed over a dump.

14. Next version: appeals

Not part of the first release. The intended design:

  1. A rejected author requests an appeal and pays for it.
  2. The appeal triggers a vote on whether the text deserves a second look.
  3. If the vote passes, a different model reviews the text against the same rules, at the requester's expense. Its decision is final.

Open points for that version:

  • Electorate. Accounts are free and there are no members, so an open vote could be swung by one person with many addresses. The appeal vote needs an electorate that resists this, or the second look could simply follow from the payment.
  • Data protection. Votes on appeals are about specific texts on an election forum, so they would likely reveal political opinions. Keep individual votes private, as likes are, and publish only the result.
  • Payment. How the requester pays (ETH to a treasury address, or a fiat payment), and what happens to the fee if the vote fails.

15. Open questions

  • Data exports. Publish a regular export of published posts and comments, so a restart can keep the forum's history? It would make deletion harder to honour.
  • Opening the rules vote. Gov owns the NFT, so a proposal can call nft.safeMint or nft.setOperator to add voters. That first needs a way to admit them that resists fake accounts, since anyone can create an address. It would also put voters' addresses and votes on a public blockchain, which calls for a signed notice and raises the article 9 question for votes, and it would expose the rules to a coordinated group, which calls for a higher quorum or a timelock on setOperator and setManifesto.

Further reading