* 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>
- docs/design/2026-10-law-as-data.md: every law and regulation in force in
Switzerland and Liechtenstein as data, with the publisher's text and a hash
as the source, valid time, no deletes, reusing the Places importer,
sources and licence policy. Measured on 2026-10-22 from LexFind's own
statistics: 5,339 federal and 16,389 cantonal texts in force (21,728); the
Fedlex SPARQL count (13,257) differs and is not yet explained, so neither
is the target. Liechtenstein and the communes are not counted.
- docs/design/2026-10-direction-notes.md: the reasoning, from the same day's
brief, with what is built and what is not, and the open questions.
- ROADMAP.md: the law as data first under Now; one list of the kinds of
group, a place with a common fund and a budget, and contracts with
success measures under Next. Shipped: Liechtenstein places.
- CHANGELOG.md: Liechtenstein places (#277), the Places load workflow
(#279) and the roadmap entry.
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud
Co-authored-by: Claude <noreply@anthropic.com>
A hand-kept source (adapter fixture, e.g. li-constitution-communes) has
nothing to fetch, so the daily /api/cron/places run skips it and it
reaches production only through places:import. Liechtenstein's postcodes
(fetched on the 3rd) need its communes, so that run fails until someone
imports them by hand. This dispatch-only workflow runs places:import or
places:fetch on the box from a fresh checkout of main, with the box's own
DATABASE_URL, dry run by default.
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud
Co-authored-by: Claude <noreply@anthropic.com>
Bump @bitbaum/chatkit to ^0.13.0 so Ask Solon gets the 0.13 answer
rendering: headings a size up, option cards with a [Recommended] tag
pill, citation chips after the sentence, dotted external links, the
layered "stack" figure, and the "Thought for …" row. The prompt already
appends RICH_ANSWERS_INSTRUCTION, which now describes the stack and the
tag, so the model is asked for them with no further change. ChatThread
here passes no labels, so the new thread labels fall back to English.
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
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>
The owner has had to say "Frankenstein elements" about screens in more than
one product. The rule now has one statement, in bitbaum/fleet AGENTS.md, and
this file names it where a screen is built and points there for the words.
Claude-Session: https://claude.ai/code/session_01Te8nLte2wV2S7ttNgwSt3n
Co-authored-by: Claude <noreply@anthropic.com>
* docs: correct drift in agent docs, README, roadmap and content
- Design tokens: the package is bitbaum/design-tokens, published as
@bitbaum/design-tokens; Solon installs it as @fleet/design-tokens, Loki
depends on it, OrangeCat does not (its globals.css mirrors values).
- verify includes check:places-literals; CI's verify job also runs the
vendored-drift check, the ratification warning and the build.
- Next.js 16.4, five languages, beta wording, five properties.
- README API and page lists now match src/app (places API, members/register,
cron, member pages, places, compare, faq, blog, roadmap, changelog, ...).
- Accounts after #269: Solon has its own accounts; OrangeCat is one way in
(ROADMAP, FAQ, whitepaper, plan, uniform-auth superseded note).
- Member pages shipped; .env.example gaps named; ui-guidelines nav notes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
* docs(env): list CRON_SECRET and ORANGECAT_URL in .env.example
Both are read by the code (api/cron/places, lib/orangecat-group.ts) and were
missing from the example.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
---------
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>
A cloud session has no ~/.claude/CLAUDE.md, so it never saw the org rules.
Those stay in bitbaum/fleet AGENTS.md (packages by default, searchkit,
chatkit, names, identity). This file only points there.
@bitbaum/searchkit moved from orangecat's packages/ folder to
bitbaum/searchkit (created by bitbaum/fleet's package-repos workflow).
Same code as before; the pin is now a release tag, so Dependabot moves it
forward instead of someone hand-editing a commit pin per release.
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
Co-authored-by: Claude <noreply@anthropic.com>
Fixes found by the fleet's adoption: the typo budget is the written
word's (a site spelling rule no longer costs a short word its typo); a
field counts as covered only when every typed word landed in it; when no
item has every word, the words some item has are kept; two words written
apart and matched as one rank as a typo.
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
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>
* fix(members): say a ballot is kept back only when there is one, and only as a choice someone can make
A person with no closed votes was told they had "not chosen to list each
ballot", and the same sentence sat on an AI agent's page, which has no account
page to choose from. The line now appears only when a vote was cast, and an
agent's reads as a plain statement.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3
* refactor(members): keep the explanatory comment outside the ternary
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3
---------
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>
At 320px /de scrolled 28px sideways and /ru 43px; English, French and
Italian fit. Two causes, both one word with nowhere to break:
- The "why trust" headline: «UMGESCHRIEBEN.» / «ПЕРЕПИСАННОГО.» at
.headline-caps text-4xl is wider than the phone. `.headline` and
`.headline-caps` now allow a break inside a word (overflow-wrap) and
hyphenate by the page's lang, so the next long word in any language
cannot do this again. Those two words also get a soft hyphen at the
syllable, so browsers without a hyphenation dictionary break them as
UMGE-SCHRIEBEN. / ПЕРЕ-ПИСАННОГО. instead of mid-syllable.
- The footer's link lists are two ~136px columns on a phone and
«Abstimmungsverfahren» is wider: the lists may hyphenate and break.
Measured on a local production build in headless Chromium: all five
locales at 320 and 390px now have scrollWidth == innerWidth (de and ru
did not before). format, eslint, tsc, design:check,
check:places-literals and vitest (478 passed) pass; next build ok.
Claude-Session: https://claude.ai/code/session_016tA6LherCgxwapQ2oYTjc5
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>
Makes taking this project as easy as using it: what it needs to run,
where its branding lives, that the shared kits need no private registry,
and three questions for people who want to build it with us. Adds
"license": "MIT" to package.json so tooling sees the licence too.
Claude-Session: https://claude.ai/code/session_016RWATe7R8uf25orV7Bh4Uc
Co-authored-by: Claude <noreply@anthropic.com>
#249 rendered SignInError without @bitbaum/accountkit/styles.css: live, the
page was bare stacked text and "Try again" was not a button. The verify gate
compiles no CSS, so only a screenshot shows it. Imported once in the
layout, after the design tokens it reads.
Co-authored-by: Claude Opus 5.5 <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>