* feat(law): the register of every Swiss act, with a coverage page and API
Lists the 33,441 acts of the Confederation, the 26 cantons and the
intercantonal agreements (22,047 in force) with title and official number,
read from LexFind's list. Refuses a read short of the count the register
states. Titles and numbers only; text comes in L1.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud
* docs(changelog): cite the law register's pull request
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud
---------
Co-authored-by: Claude <noreply@anthropic.com>
Liechtenstein becomes a pack beside Switzerland, so /api/v1/places resolves
Vaduz and the other communes by name and postcode.
- countries/liechtenstein.ts: nation (Fürstentum), the two Landschaften
Oberland and Unterland as a full level (Constitution Art. 1; the electoral
districts of Art. 46), the eleven communes; CHF, region LI, postcodes 94[89]x.
No tax model.
- Identifier schemes li_landschaft and li_municipality (7001-7011, the numbers
swisstopo's directory of localities gives the communes), both reserved.
- Source li-constitution-communes: a hand-kept batch
(data/places/liechtenstein/communes.json, fixture adapter) citing the
Constitution, Art. 1, with names and numbers checked against swisstopo's
directory.
- Source swisstopo-postcode-localities-li: the Liechtenstein rows of the same
directory the Swiss postcodes come from; csv_postcodes gains a `where`
option (as shapefile_areas has) to read only them.
- Tests: the batch passes the check and puts each commune in the Landschaft the
Constitution names; the postcode source keeps only the 20 Liechtenstein rows;
an integration test imports both, reruns with no change, and finds Vaduz by
name and postcode. The Swiss typo test now draws its cases from Swiss places.
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud
Co-authored-by: Claude <noreply@anthropic.com>
* feat(auth): Solon accounts on the fleet's account package
Anyone can now create a Solon account with an email and a password or a
passkey, with two-step codes; "Continue with OrangeCat" is one way in
among them instead of the only one. Sign-in, sign-up and the account
panel are @bitbaum/accountkit/auth's shared screens in Solon's look, in
the reader's language (authLabelsFor).
Seats were keyed on the OrangeCat actor id. legacyIdentityProvider keeps
that id for everyone whose first way in was OrangeCat, so existing seats,
votes, the founder rule and Loki grants keep working with no data
migration; everyone else is their account id.
Policy change, on purpose: the sign-in gate that turned away OrangeCat
accounts with no email is gone, with its test. A session still grants
nothing: a seat comes only from founding or from a vote of the members.
- drizzle/0014_accounts.sql: the six account tables, additive only, the
same migration every product generates
- next-auth removed; /api/auth/[...all] serves accounts
- a PGlite test signs up against Solon's own migrations
Known gap: the roster's OrangeCat handle and picture are no longer
refreshed at sign-in (stored values stay).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3
* chore(deps): pin accountkit to the merged v0.5.0 commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3
---------
Co-authored-by: Claude <noreply@anthropic.com>
* feat(places): find a place with a letter wrong (searchkit)
The map's search box matched a name only if the folded text appeared in it
exactly, and the name search behind /places, /compare and /api/v1/places was
an ILIKE on the same folded text. One slipped letter ("Zurihc", "Kusnaht")
found nothing, and "st gallen" missed "St. Gallen" for want of the dot.
Both now go through @bitbaum/searchkit, the fleet's shared search package:
- Map box (in the browser): the hand-rolled startsWith/includes matcher in
map-view.ts is replaced by an index built once per map (`placeFinder`):
typo budget by word length, prefixes while typing, accents and umlauts
folded, Algolia-order ranking. The list marks the matched part of each
name, styled like OrangeCat's palette marks.
- Name search (database): the folded LIKE stays for recall, widened per
typed word by the names' own words that word is one slip from (a
vocabulary read once per 10 minutes per process), with a word no name
comes near set aside instead of failing the search. What comes back is
ordered by searchkit's rerank instead of the exact/prefix/contains sort.
Postcodes are an exact lookup and stay one.
fold.ts keeps its SQL fold table: the database side still needs the query
and the column folded alike. Tests: every one-slip misspelling of every
place name in the Swiss fixtures (2,627 cases) is found first by the map
box; through the database, 276 cases are all in the top three and all but
one first ("vern" reads as the start of "Verwaltungskreis" before Bern).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
* chore(deps): add @bitbaum/searchkit, pinned to orangecat a868c0a9
The fleet's one search package, installed from orangecat by commit
(packages/searchkit). It ships compiled dist/, so no transpile step.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
* docs(changelog): link the place-search entry to #264
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
---------
Co-authored-by: Claude <noreply@anthropic.com>
/orgs/[slug]/members/[id] was in the plan and returned 404. It now shows the
seat (type, status, joined, weight), a live mandate, the proposals the member
filed (never drafts) and how many votes they cast in closed decisions.
Individual ballots are the member's to show: members.show_ballots, off by
default, switched on the account page by the member alone (the update names
the signed-in actor as well as the seat, so a forged id changes nothing). A
ballot in a session that is still open is never shown. The roster links each
seat to its page.
Face and handle on the page are what the person let Solon see (OrangeCat
orangecat#1319): a withheld picture or handle simply shows as none.
Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3
Co-authored-by: Claude <noreply@anthropic.com>
* feat(places): /compare as data — /api/v1/places/compare
The facts and the tax model behind /compare, for any place (?p= a slug
path, repeatable, up to the compare limit; ?on= an ISO date, today by
default): each place's chain, the facts its pack's tax model reads, and
the pack itself — everything an estimate needs.
It takes no income and computes no tax: the estimate runs wherever the
income is (the reader's browser on /compare, or another service on its
own server, e.g. OrangeCat suggesting a person's tax share), so Solon
never learns what anyone earns. Public data, cacheable for an hour.
The page and the endpoint now read "which places" through one helper
(comparedPaths), with tests; the endpoint is listed in the API surface
so it cannot ship unlisted.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* docs(changelog): /compare as data [#261]
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
/roadmap shows each goal as a trail and links every shipped step to the
changelog days that delivered it; /changelog names the step each entry
delivered. The four ticked steps with a changelog record carry {#id}s on
the line the fleet map reads; record-links.test.ts holds the two files to
each other. bip-kit@0.6.0 replaces 0.5.0 in the minimum-release-age
exemption (published today, the fleet's own package).
Claude-Session: https://claude.ai/code/session_01MFTqYKVJNY7ddWNQqsc7yM
Co-authored-by: Claude <noreply@anthropic.com>
* docs(copy): bring public copy in line with what Solon does today
- About + ecosystem: votes are one-click (ACCOUNT) or Bitcoin-signed, not
only signed messages
- What you can do: joining is a member suggesting you and a vote; the
treasury shows the balance, not a transaction ledger
- Hire: the governance agent is marked as in development, like /features
- Roadmap: sign-in now opens OrangeCat's screen (#223); Places shipped
- swisstopo source link 404 -> current page
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* docs(copy): mark the governance agent as not built; cut unbuilt minutes and reminders
"Being built with our first pilot groups" claimed pilot groups that do not
exist (the live /api/orgs lists only OrangeCat; ROADMAP has the first pilot
association under Later). Replace it with "Not built yet" in the home note
and the /hire offer, in all five locales, and put the agent's clerk work in
the future tense.
The same fault one page away: /hire and /for/associations promised minutes
and reminders, which ROADMAP lists as unchecked and no code produces. Say
"public record" instead, which /orgs/{slug} does show.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* docs(copy): cut the last minutes and reminder claims; Places is income tax only
The home associations card, the home agent note and "Keeps everyone in the
loop" card, and the features governance-agent card still promised minutes
or reminders that nothing in src/ produces. The ROADMAP Places entry now
says income tax and names what is not included.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The front page now answers "what is this actually for?" with twelve cards:
six situations one person or a small group runs into, six problems a town,
an association or a society has. Each card is the problem, what happens on
Solon, and a link to the page where it happens.
- Structure in src/lib/content/problems.ts; links are site-map keys
(SITE_LINKS), labelled with the page's own name from Site.links.
- Every sentence in messages/<locale>.json under Home.problems, in all five
languages (German in Swiss spelling).
- Honesty: a card may only rest on capabilities marked "available"; a note
says plainly that suggesting and voting on this site run for OrangeCat,
the first organization, and not yet for newly founded ones. The treasury
is left out: registering addresses is an operator step today.
- src/lib/__tests__/problems.test.ts pins unique keys, message coverage,
links to existing pages, available capabilities and no roadmap wording.
Claude-Session: https://claude.ai/code/session_016tA6LherCgxwapQ2oYTjc5
Co-authored-by: Claude <noreply@anthropic.com>
oc-session.ts and sign-in-request.ts move to @bitbaum/accountkit/orangecat
(v0.2.0), which took them as the reference for every app; their tests went
with them. The provider comes from there too. Behaviour is unchanged:
client_secret_post, PKCE, identity scopes, refresh in jwt(), invalid_grant
ends the session, prompt=create / login_hint / idp_hint, same-origin return
to /account. The profile no longer carries email; the signIn callback still
reads it from the raw claims to turn away anonymous accounts.
The error page is accountkit's SignInError, which this page was the model
for: Try again restarts sign-in, a denial offers "Add an email" first.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(places): the map on /places — communes coloured by the tax at your income, with address search and a list
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: changelog PR number
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(places): serve the map's data, every drawn commune with its tax figures
GET /api/v1/places/map loads every chain at once and sends shared facts
once; the browser estimates with /compare's estimateColumn.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: changelog PR number
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(places): import commune boundaries and publish them for maps
swisstopo's swissBOUNDARIES3D edition becomes areas with administers
assertions and one content-addressed TopoJSON file, served with a
geo-kit manifest at /api/v1/places/geography.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: changelog PR number
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(deps): declare @types/geojson
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(places): admit multipliers up to 600%
Appenzell Ausserrhoden's canton and commune multipliers (330-420%) and
Obwalden's (up to 525%) were quarantined by the 300% band.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs(changelog): link #237
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(places): tax estimates for six more cantons
Bern, Lucerne, Zug, Basel-Stadt, Appenzell Ausserrhoden and Jura share
Zürich's shape (one basic tariff times canton and commune multipliers, no
splitting) and reproduce the Federal Tax Administration's calculator to the
franc: 108 cases at CHF 60k/100k/250k, single and married, 2025 and 2026.
- MODELLED_CANTONS in sources.ts, shared by the tariff, canton and commune
multiplier sources
- estv-commune-multipliers: the calculator's export of every commune
(group 30), read by FSO number for the listed cantons; Zürich keeps its
canton's own source (the export collapses communes with two rates)
- estv_simple_rates takes either a place per canton or each row's commune
- Biel/Bienne joins the golden fixtures through the real chain
- Ticino left out: its basic tax differs by CHF 25-50
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs(changelog): link #236
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(places): accent-insensitive place search, Swiss number formats in /compare
Search folds case, accents and spelled-out umlauts on both sides from one
character table (translate() in SQL), so "zurich" and "Zuerich" find Zürich
with no extension or migration. A country pack's optional ISO 3166-1 region
sets the number formats for its amounts: CHF 13’050 in German instead of
13.050 CHF.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs(changelog): link #235
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
The db proxy calls getDb() on every property access, and getDb() only cached the client outside production. So every query in production built a new pg Pool and opened its own connection, released only after the idle timeout; a burst (the coming /compare page, link prefetches) could exhaust max_connections, which the box's apps share.
Co-authored-by: Cursor <cursoragent@cursor.com>
Up to four places from the link (?p=…), the estimate computed on the reader's device from the facts each chain holds; the income stays in the tab and never enters a link, form or request. One period for all columns: the latest fiscal year whose figures are all published. A missing figure says why (set by a lower level, or not recorded). Packs name their tax model's inputs, variants and components (taxLabels, checked by the config guard). Place pages link to it; it sits in the Places menu.
Co-authored-by: Cursor <cursoragent@cursor.com>
The deep side gets its long-form pages: /whitepaper, /faq and /blog,
read from content/ with bip-kit 0.5's readEntry, readCollection and Faq,
prerendered as static pages and themed through the shared tokens.
Co-authored-by: Cursor <cursoragent@cursor.com>
Two depths: EVERYDAY_ROUTES speak plain words and keep IDs, addresses, raw
payloads and API links under a closed TechnicalDetails; the deep side stays
as technical as it needs to be. Dashboard uses the standard page header;
record entries read through event-gloss.ts; money reads in bitcoin. A
render check fails the build if an everyday page shows a stored code.
Co-authored-by: Cursor <cursoragent@cursor.com>
Menu reads "Suggest something" in five languages; a finished vote says
"Result"; the yes/no summary and method picker drop "quorum"; the vote
box no longer repeats the page's title; each decision gets a tab title.
Co-authored-by: Cursor <cursoragent@cursor.com>
Proposals, a proposal, and the suggestion form use PageLayout and .field.
Statuses, categories and voting rules go through plain-words.ts and
CATEGORY_LABEL instead of printing stored enum values. Error messages say
what happened and what to do.
Co-authored-by: Cursor <cursoragent@cursor.com>