Files
solon/.env.example
T
CatoandClaude Opus 5.5 2829402aa0 feat(law,amend,contested): propose in Russian, Russia's register and routes, a pseudonym per proposal (#528)
* feat(contested,amend): a South Ossetian reader can propose a change in Russian

- Amend pages (write a change, support it, the official route) translated
  into Russian, French and Italian; AMEND_LOCALES now holds every language.
- "Propose terms" on a contested place led to the primary organization's
  form ("you are not a member of OrangeCat"). It now opens each side's law
  to pick the article, where amendments are filed and supported.
- The claimant's quotes, published only in English, read in the reader's
  language from the config catalog; their labels too. The coverage test
  holds them to every language.
- Roadmap: a scenario side (as a subject of the Russian Federation), "my
  life under each", Georgia's budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k

* feat(law,amend): Russia's register, its official routes, and a pseudonym per proposal

- Pseudonyms: a signed-in person is named in the public amendment record by
  anon:<HMAC(key, proposal, account)>, never actor:<id>, so their proposals
  cannot be linked to each other or to them. Rows written earlier keep their
  name and are recognised as the same person. The filing rate limit moves
  into the process, so no lasting list of who filed is kept to count it.
  SOLON_PSEUDONYM_SECRET (falls back to the session secret).
- Russia: one reader over the official publication portal's JSON API
  (PRAVO_GOV_RU), one entry per authority: federal Constitution, laws on its
  amendment, federal constitutional and federal laws (8,012 acts), and North
  Ossetia–Alania's constitutional laws and laws (1,095). The portal's
  robots.txt disallows /File, where the scanned texts are, so the register
  only. Laws are not objects of copyright (Civil Code Art. 1259(6)).
- Routes: federal bills (Constitution Art. 104, citizens hold no initiative)
  and the Russian Public Initiative, federal and regional bars, each from the
  page opened; in Russian. An act page shows its official routes whether or
  not Solon holds its text.
- Authorities may carry their own names per language (North Ossetia–Alania).
- docs/research/2026-11-russia-sources.md; roadmap and changelog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k

* test(law): count only this file's acts in the South Ossetian dry-run check

Another integration file registers the Parliament's acts at the same time,
so counting every parliamentrso act raced it (CI: expected 8 to be 5).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-10 19:34:05 +01:00

90 lines
4.1 KiB
Bash

# Copy to .env and fill in. Nothing here is a real secret.
# --- Required ---------------------------------------------------------------
# PostgreSQL. `npm run db:migrate` creates the schema against this.
DATABASE_URL="postgresql://solon:solon@localhost:5432/solon"
# Signs session cookies (@bitbaum/accountkit/auth). At least 32 characters in
# production. Generate with: openssl rand -base64 32. BETTER_AUTH_SECRET wins
# when both are set.
AUTH_SECRET=""
# Names a signed-in person in the public record of law proposals by a
# pseudonym per proposal (src/lib/law/amend/pseudonym.ts). Unset, the session
# secret above is used. Never change it once proposals exist: a new key gives
# everyone new names. Set it before first use if the session secret may rotate.
SOLON_PSEUDONYM_SECRET=""
# The app's own public origin. Same-origin checks on one-click acts compare
# against it, so pin it in every deployed environment.
AUTH_URL="http://localhost:3000"
NEXT_PUBLIC_APP_URL="http://localhost:3000"
# --- Continue with OrangeCat (optional) ---------------------------------------
# One way in among several; without the pair the button is not shown.
ORANGECAT_OAUTH_ISSUER="https://orangecat.ch"
ORANGECAT_OAUTH_CLIENT_ID=""
ORANGECAT_OAUTH_CLIENT_SECRET=""
# --- Account mail: password recovery and sign-in by link (optional) ----------
# Sent through @bitbaum/mail-kit (Resend). With no usable key, the sign-in
# screen shows no "Forgot your password?" and no sign-in link, only the ways
# back in that work without email (passkey, OrangeCat, writing to us). A
# placeholder key, or a sandbox sender (@resend.dev) in production, counts as
# not set.
RESEND_API_KEY=""
# Sender, `Name <addr>` or a bare address, on a domain verified in Resend.
# Unset: the fleet-conventional sender, Solon <solon@fleetcrown.orangecat.ch>.
RESEND_FROM=""
# The origin every account link is built on and must match. Unset: the
# production origin, https://solon.orangecat.ch.
NEXT_PUBLIC_SITE_URL=""
# --- Founder of a seeded organization ---------------------------------------
# An organization founded through /orgs/new seats its founder in the same step.
# Organization #1 was seeded by a migration with no human seat; its founding
# seat may be claimed ONLY by this account id (shown at /account once signed
# in; for someone whose first way in was OrangeCat it is their OrangeCat actor id). Unset, the seat is closed to everyone, /join says so in plain
# words, and /api/health lists the organization under "warnings".
SOLON_FOUNDER_ACTOR_ID=""
# --- Optional ---------------------------------------------------------------
# Watch-only treasury balances are read from a mempool.space-compatible API.
# Defaults to the public instance when unset.
MEMPOOL_API_BASE="https://mempool.space/api"
# Where `pnpm run places:import` keeps each source's raw bytes, under their
# sha256, so every imported number links back to what the source published.
# Defaults to ./data/snapshots. On the box, point it at persistent storage
# outside the release directory.
PLACES_SNAPSHOT_DIR=""
# Outbound notification of a recorded decision (OrangeCat re-verifies the
# signatures itself; this only tells it there is something new to read).
SOLON_WEBHOOK_URL=""
# Also verifies the grant Loki attaches when a project owner founds an
# organization from their project page (src/lib/loki-grant.ts). Must equal
# Loki's SOLON_WEBHOOK_SECRET. Unset, founding still works — it just cannot be
# attributed to a project.
SOLON_WEBHOOK_SECRET=""
# Bearer token the box's cron sends to /api/cron/places. Unset = the route refuses every call.
CRON_SECRET=""
# Optional. OrangeCat base URL for group lookups (src/lib/orangecat-group.ts); defaults to production.
ORANGECAT_URL=""
# Ask Solon uses the shared ai-kit model chain. Set at least one server key.
GROQ_API_KEY=""
OPENROUTER_API_KEY=""
# Web search for the law chat's research step (src/lib/law/ask/research.ts).
# Any one of these offers the model web_search and web_read; without them it
# researches in the law register only. Production copies the box's SearXNG
# settings from Causius with .github/workflows/share-search-backend.yml.
SEARXNG_URL=
SEARXNG_TOKEN=
BRAVE_SEARCH_API_KEY=
TAVILY_API_KEY=