26 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 1e16a6064d test(e2e): the globe drill-down runs against live, not skips (#610)
A state's button also carries its law count ("Wyoming45 laws"), so match the
text's start; wait for the list to open instead of counting at once. Passed
both specs against https://solon.orangecat.ch on 2026-11-20.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 13:18:11 +01:00
CatoandClaude Opus 5.5 3003d81379 feat(globe): one globe, one level per tap, one colour scale with its legend (#607)
* feat(globe): one globe, one level per tap, one colour scale with its legend

The home page, /places, /places/tax and every statistic now draw the same
globe (`Atlas`, configured by `mode` and `layer`), not two renderers with
their own colours.

Drill-down: what is drawn and what a tap can reach follow the place chosen,
never the zoom (`drill.ts`). World -> country -> its first-level places
(Wyoming whole, beside the other states) -> the places Solon draws there
(Wyoming's counties) -> a county's towns. A tap reaches only a child of the
place open; Back goes up one level. Opening the United States used to draw
Wyoming's counties directly, so the tap after "Wyoming" chose a county.

The map data now carries the levels between a country and its drawn places
(`above`), the pack's ISO 3166-2 places (`regions`, so Texas opens its page),
and how much law Solon holds at each place (`law`, from counts.ts).

Colour: one scale from the design tokens, read out by a legend under the
globe on every page: acts of law in force, 1-9 to 10,000 and more, and
"none yet", which is now the colour such places are painted.

Phone: the canvas takes `touch-action: pan-y` so a vertical swipe scrolls the
page; town dots answer within 22px (a 44px target), nearest first; Back,
the place's page and the legend sit outside the canvas.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(ci): give tests 30 s on the merge check's shared, low-priority runners

Three CPU-heavy unit tests overran Vitest's 5 s default when the laptop ran
two forge-ops jobs at nice 15 and failed solon#607's merge check on code that
passes everywhere else.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 11:35:03 +01:00
Cato 306b8c4f4a Places: the hyphenated root is canonical, so the proxy no longer sends it to the underscored one; relative 308s for the API routes (#556)
Found live after #555: /places/south-ossetia answered 308 to /places/south_ossetia
(proxy.ts, #503), which place_paths now answers 308 back from: a loop. The proxy
keeps only world slugs that are not a pack's root. The atlas and place API
redirects built their Location from request.url, which behind the proxy is
0.0.0.0:4018; they are relative now.

Claude-Session: https://claude.ai/code/session_019MDtmsegw9dJ7eykLcT7Fe
2026-11-11 19:21:30 +01:00
Cato 79c33d3d20 fix(statistics): a gaps topic opens in English (#537)
/statistics/gaps linked to /statistics/gaps/crime.by_background, which answered
404 in English (200 under /de/): the language middleware skips any path with a
dot, taking it for a file. A topic's address is now its key with dots and
underscores as hyphens (/statistics/gaps/crime-by-background); the old key is
still found, so links already shared keep working. Every link to a topic
(index, Find, research sources, the page's own share URL) comes from one
helper.

Tests: slug has no dot and is unique, lookup by slug, key and %2E-escaped key;
render.spec follows every topic link from the index in en and de.

Claude-Session: https://claude.ai/code/session_019MDtms7o5KHhv4niDsxA9M
2026-11-11 14:25:54 +01:00
CatoandClaude 32e7f6cb28 feat(budgets): public budgets as a product, on one model for every place (#525)
Budgets become their own section, /budgets and /budgets/<place>, built so
that every page and analysis works for any place and any source:

- Taxonomies are the single source (src/lib/config/budgets): COFOG for
  what money is spent on (80 codes, Eurostat's labels), ESA 2010 for where
  it comes from. They generate the budget.<scope>.<side>.<code> metrics and
  the per-country Eurostat sources; scope (general government or a state
  budget) is part of every key.
- Eurostat's government finance for 30 countries from 1995, through a new
  eurostat_json adapter (a JSON-stat reader that knows no country): spending
  by function and group, revenue by kind, the balance, in shares of GDP.
  Every division is also a statistic with its map and ranking. Reuse is
  authorised with acknowledgement (LicenseRef-eurostat-reuse).
- Budget laws are documents held to their stated totals: South Ossetia's
  2023 outturn (revenue line by line) and 2023 allocations by section, each
  line placed on the classifications, the placement explained.
- src/lib/budgets: one Budget shape for both inputs; pure analysis
  (breakdown with what the parts leave over, allowing for rounding; a total
  given with no breakdown; self-reliance; history; which year to show).
- Pages: key figures, who pays, spending by function opened into groups,
  revenue by kind, the years, sources down to the publisher's own lines,
  "propose a change to this budget"; a budget card on a country's page.
- The contested places' budget section now uses these components; their
  ledger, the quote component and rowsOf were made shared rather than kept
  as copies, and SITE_URL lives in site-config.

Design: docs/design/2026-11-budgets.md.


Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-10 15:04:10 +01:00
Cato 9a955dd6d8 Places: a world slug of a country with a pack answers 308 to the pack's path, at every depth (#503)
* Places: a world slug of a country with a pack answers 308 to the pack's path, at every depth

Claude-Session: https://claude.ai/code/session_019MDtmsegw9dJ7eykLcT7Fe

* e2e: read the redirect's Location whether the server writes it relative or absolute

Claude-Session: https://claude.ai/code/session_019MDtmsegw9dJ7eykLcT7Fe
2026-11-10 12:21:22 +01:00
Cato 0306392d77 Statistics: a place asked for with no figures says where Solon looked (#498)
"No figures for the places chosen." told a reader nothing about whether nobody publishes the series or Solon
has not loaded it. config/statistics/searches.ts records, per series and place, each publisher a person asked
on a stated day, what it holds, and the address read; the series page shows it when the place has no figure.

First records, read 2026-11-10: Liechtenstein's government consumption (World Bank series empty for every year
1990-2026; Amt für Statistik publishes production and income accounts only; Eurostat has GDP and no P3_S13;
not an OECD member), and the expenditure and tax-revenue series (the Amt für Statistik's own Staatsquote and
Fiskalquote exist and are not loaded yet).

Claude-Session: https://claude.ai/code/session_019MDtmt65Ai8jku68kDmxUU
2026-11-10 12:21:12 +01:00
Cato 1926938193 A proper not-found page: inside the locale layout, in the reader's language, with the way on (#497)
An unknown series, place, law or path answered 404 with Next's bare "404 This page could not be
found." and no navigation (the frame is the locale layout, which a 404 thrown outside it never gets).
[locale]/not-found.tsx renders inside the layout; [locale]/[...rest] sends every address no page claims
to it. Words in all five languages; four ways on (law, places, statistics, ask the law).

Claude-Session: https://claude.ai/code/session_019MDtmt65Ai8jku68kDmxUU
2026-11-10 11:29:04 +01:00
Cato b3bcde3895 e2e: from a country, every level opens, names itself and leads back up (#495)
Claude-Session: https://claude.ai/code/session_019MDtmsegw9dJ7eykLcT7Fe
2026-11-10 11:17:11 +01:00
CatoandClaude Opus 5.5 7dcbdc2787 Places, statistics, navigation and a new mark: the globe, every country a place, methods, gaps, research with AI, a header that fits, the owl (#458)
* feat(places): a globe that names the world, and zooms where you point

geo-kit 0.4.0 labels; countries, subdivisions (Natural Earth 1:10m) and
every place of 1,000+ people (GeoNames, CC BY 4.0) loaded a country at a
time; blue sea, land on the page surface, light and dark; credit line
names the sources and how to steer.

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

* feat(statistics): how the rankings are made; one country registry

Nine indexes of freedom and governance described the same way, with
quoted licence terms, what is unread, the same critical questions per
kind, and checked AI explanation from what was read. Country codes for
the law globe, statistics map and OECD sources come from one registry
generated from Natural Earth; a test ties every named country to it.

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

* fix(places): calm labels on geo-kit 0.5.0, towns actually drawn, land never drawn as sea

Quiet type hierarchy with room per style; zoom buttons kept clear;
subdivisions and states painted on their own layers; GeoNames towns were
loaded but never added to the labels (a patch had not applied), and the
loaders no longer drop a fetch when the view changes.

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

* feat(places): every country a place; governance scores for all

A world pack of 235 countries generated from the registry, World Bank
indicators for each and OECD tax series for its 38 members, staggered so
no publisher sees a burst; six World Bank governance scores (CC BY 4.0)
on a governance dimension; a rate fixed by law is no longer flagged for
staying put; the importer names itself and paces the OECD.

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

* feat(statistics): deep research with AI over Solon's data and law

A model with read-only tools (catalog, series, dimensions, methods, law,
and the web where configured) gathers numbered sources; the report is
written from them alone and checked: numbers, citations, paragraphs,
verdict words. Failing reports are dropped; sources stay listed.

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

* fix(places): the world pack has one root, so countries are world/<name>

235 nations in one pack each claimed the root path; Andorra became
'world'. A root place (the Earth) now holds them, as other packs hold
their subdivisions.

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

* test(places): the world pack's data has one root

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

* docs(roadmap): second-level subdivisions need a licence read per country

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

* feat(statistics): code compulsory old-age provision for CH and US

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

* fix(places): the OECD answers a plain request, not Node's default

Its gateway returned 500 for accept-language: * and 200 for a plain
language and a data type (found by trying headers one at a time; the
earlier rate-limit explanation was wrong). The importer now sends
accept and accept-language; the 6 s OECD pacing and the five-minute
stagger are gone.

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

* feat(statistics): what is measured, and where it is not

A registry and pages for the places where statistical offices collect and
publish different things: per topic and breakdown, what each office's own
pages say (checked weekly), the law that frames it, where a gap lies, what
must accompany a new measure, the objections with safeguards, who decides.
First topic: crime by a person's background, nine places; descriptive, no
characterisation of offices or people.

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

* feat(site): a header that fits, Find over everything, an engineering audit

Four panels of four or five links (Law, Places, Data, Governance) instead
of 27, a Find palette over pages, statistics, places and laws (Ctrl/Cmd+K
or /), the phone menu as folds. Six import cycles fixed and gated in
verify; docs/design/2026-11-engineering-audit.md records what was measured,
the one-source map and the debt in order.

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

* feat(brand): the owl, and one drawing behind every place the mark appears

Solon's mark is now Athens' little owl (the bird on the coins of Solon's
city) with the fleet's rotorelief rings for eyes: the Cat's sibling, where
the old balance was a line icon from no family.

brand/solon-mark.svg is the only drawing. `pnpm run brand` writes the
mark data (header, footer, share card), the favicon, the app icons and
the deck/press exports from it; a test fails when a copy drifts. The
candidates it was chosen over are in brand/concepts with the reasons.

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

* docs(brand): where the marks should live next, and why a copy remains

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

* test(e2e): follow the curated header and the folded phone menu

The phone menu folds the site by section (only the current one opens), so
the test opens Platform before it looks for Security. The Governance
panel no longer carries the ideas page (the footer does); the panel test
follows Decisions instead.

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

* refactor(law): name an authority by its place, in the reader's language

Law authorities hand-wrote 80 English names ("Confederation", "Zürich")
for places Places already names in every language. Pages now read the
place's own name (loadAuthorityNames, once per request); a country with no
place yet is named by Intl, the cantons together and the European Union
from messages, and two places of one name get their level ("Zürich
(Gemeinde)"). The config's field is now `label`: English, for logs, the
API, llms.txt and prompts only.

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

* feat(brand): one statement of what Solon is, on the card, in search and on the phone

The share card, the meta description and the app manifest each carried
their own line about Solon, and all three still described governance
alone. They now read the home page's hero (Home.hero), in the reader's
language: the card is per locale, set in Inter from the design-tokens
package (Cyrillic included, nothing fetched), with the owl, and sizes its
headline so every language fits on two lines. Meta.description is gone.

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

* fix(brand): the owl favicon is linked, and iOS gets its own icon

The layout's explicit `icons` replaced Next's file convention, so the
generated icon.svg was never linked and only favicon.ico was. Without it,
Next links favicon.ico, icon.svg and apple-icon.png (180, full bleed,
written by `pnpm run brand -- --png` like the others).

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

* Test: the world pack's own root is not a reserved path segment

Claude-Session: https://claude.ai/code/session_019MDtmsegw9dJ7eykLcT7Fe

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-10 11:11:37 +01:00
CatoandClaude Sonnet 5.5 1d231de5de Liechtenstein country page and atlas: law per level, agreeing counts, plain copy, place names, phone order (#481)
* Liechtenstein country page and atlas: law per level, one count per card, plain copy, place names on the map, name and Law card first on phones

The country page lists the nation and each of its communes with their own count, each linking to its Law page. The atlas card says nation and regions and communes apart, so its number agrees with the Law page. The map writes a place's name where it fits and the places are listed. On a phone the country's name, Law card and action come before the map.

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

* Copy: no claim of 'word for word'; the pages say from the official sources, with their source

The accuracy check holds 95.8% of a sampled page's words today, so the sentence should say only what it
shows: the source and where it came from.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-10 09:50:21 +01:00
CatoandClaude 36536730c5 Light theme: follow the device, or the reader's pick in the header (#414)
Solon was pinned to dark. The shared tokens already carry both themes
(:root light, .dark overrides), so this decides which one is on:

- src/components/theme/: the choices, a head script that sets the `dark`
  class, `data-theme` and `color-scheme` before the first paint (no flash),
  and a header toggle (Light / Dark / Device) kept in localStorage. No
  framework or Solon name in theme.ts, so it can move into
  @bitbaum/design-tokens ({#theme-package}).
- <html> drops the pinned class and carries suppressHydrationWarning.
- Photographs stay dark on purpose: FullBleed and AudienceTile wear `dark`,
  and the transparent header over a page that opens on a photograph does
  too (HEADER_OVER_PHOTO_ROUTES, held to the pages by a test).
- Bands that used bg-surface-public (near-black in both themes) use a new
  `.band`: the public surface in dark, white in light. The footer too.
- bip-kit's variables are set in both themes, not only under html.dark.
- The law globe reads its tokens again when <html>'s class changes.
- text-white and text-green-400 replaced by tokens.
- Toggle words in all five languages; e2e check of device, pick and reload.
- Docs: ui-guidelines theme section, CLAUDE.md, AGENTS.md, README, ROADMAP
  {#themes}, CHANGELOG {#theme-light}.


Claude-Session: https://claude.ai/code/session_019MDtmsWmge2YFXGRyA2au4

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-08 08:38:24 +01:00
CatoandClaude Opus 5.5 a7cdf46f40 Put the law in the main menu and lead with it (#400)
* Put the law in the main menu and lead with it

Production has held the text of every federal, cantonal and Liechtenstein
act in force since 2026-11-01, but /law was in neither the header nor the
footer, and the roadmap and coverage page still said the text was not held.

- Law is a header panel (find, ask, what Solon holds); use cases move to
  the footer to keep the header at four panels
- The home page leads with the open law; the Glarus section becomes one
  root among three (open assembly, public ledger, forkable rules)
- The ideas page adds the public ledger, rules as open source and
  polycentric law
- The coverage page and ROADMAP.md say what production holds; the roadmap
  gains "Law you can act on", the globe, Wyoming, exit/fork and a provable
  record
- docs/design/2026-11-global-law-and-exit.md records the direction and order

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

* Point the header e2e test at a panel that is still in the header

Use cases moved to the footer, so the panel-navigation test now opens
Governance and follows its ideas link.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-06 14:43:45 +01:00
CatoandClaude 0244bdf946 feat(auth): email recovery once mail is set, a way back while it is not (#337)
Solon's accounts already wire @bitbaum/accountkit's mailer (mail-kit,
Resend), but production has no mail env, so password accounts have no
recovery and the sign-in screen is a dead end for a lost password.

- The mailer moves to src/lib/auth/mail.ts so both states can be tested
  without a request. Forgot password, the reset link and sign-in by link
  stay hidden until RESEND_API_KEY holds a usable key, as before.
- While mail is off, the sign-in screen says so and names the ways back
  that exist here: a passkey, OrangeCat when it is switched on, and the
  contact address. Five languages, no concatenated sentences.
- .env.example documents RESEND_API_KEY, RESEND_FROM and
  NEXT_PUBLIC_SITE_URL, with no values.
- Unit tests cover both states, the fleet sender, the reset subject and
  the refusal to mail a link to another origin. A Playwright spec checks
  the no-mail state in CI's render job; the configured state stays with
  the shared account journey.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-31 05:26:19 +01:00
CatoandCursor e5933c0126 feat(ui): everyday pages in plain words, technical details one click away (#226)
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>
2026-09-30 06:27:05 -07:00
CatoandCursor 828b77c136 feat(places): minimal place page; the P0 acceptance test renders Testland's pages (#212)
/places/[...slug] shows a state place's name and level from its pack in the
reader's language, the official badge, the chain from the root, places at
overlapping levels, whether it levies tax (taxingLevels over the chain's
facts; 'no tax model yet' when the pack has none), other names, identifiers
linked through the scheme's urlTemplate, and the latest retrieval of each
source behind it.

- place-view.ts (pure view model), place-page.ts (loader, config injected)
- PlaceProfile takes its translator as a prop, so the acceptance spec renders
  the real component from database rows with the Testland config
- Places namespace in all five catalogs
- render check: unknown place paths answer 404, not 500
- vitest inlines next-intl so its navigation resolves next/navigation

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-29 20:15:42 +02:00
CatoandClaude Opus 5.5 fc568165c2 fix(nav): every header control is a 44px target (#193)
* fix(nav): every header control is a 44px target

The fleet render sweep counted 16 sub-44px controls in the header (nav
contract rule 3): the wordmark link (24px), the four section triggers
(py-2, 32px), Sign in (16px) and Hire Solon (min-h-10, 40px). Each now
carries min-h-11 on the control itself, as does the panel's overview link
and the language select; the text size is unchanged and the header keeps
its height.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>

* test(render): count the trigger's line boxes, not its height

The one-line check read a wrapped label from the trigger's height (32px
one line, ~48px two). The trigger is now a 44px touch target, and two
lines of 12px text fit inside that, so height can no longer tell. Count
the label's line boxes instead (checked by forcing 'Use cases' to wrap:
2), and assert the 44px floor directly.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>

---------

Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 23:52:14 -07:00
CatoandClaude Opus 5.5 1411ba7b1d feat(auth): Solon's own sign-up and sign-in, one account across the stack (#191)
/sign-up and /sign-in in Solon's design, in all five languages: email first,
then Google, GitHub or an existing OrangeCat account. Underneath it is one
OIDC flow to OrangeCat, which holds the single account for Solon, OrangeCat
and Loki (docs/design/2026-09-uniform-auth.md, option A). The person's choice
travels as prompt=create, login_hint and idp_hint, so OrangeCat's screen opens
already in that state; only those three keys are ever produced, each checked.

- The header's Sign in opens /sign-in and remembers the page you were on.
- /account signed out goes to /sign-in instead of a second sign-in screen.
- The email-less-account error now offers 'Sign in again' (OrangeCat asks
  for the email on the way) instead of sending people to OC settings, and no
  longer says voting needs only a Bitcoin signature.
- A shared .field class for text inputs.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 08:27:57 -07:00
CatoandClaude Opus 5.5 0acbac8011 feat(site): use cases, the ideas behind Solon, a new era, platform, and a mega menu (#190)
* feat(site): use cases, the ideas behind Solon, a new era, platform, and a mega menu

Phases B and C of docs/design/2026-09-solon-plan.md, plus George's
2026-09-25 asks (a page per kind of group and one comparing them, network
states, the art and science of governance, how Solon works with OrangeCat
and Loki, a best-in-class menu).

- /for compares companies, villages and towns, associations and co-ops,
  communities and network states side by side; /for/<slug> is one page per
  group (what goes wrong today, how Solon helps, example decisions, the rule
  template, what works today, the detail folded). Network states get the
  verified definition (Srinivasan 2022) and the seven-step path mapped to
  Solon, with a neutral stance and honest statuses.
- /governance/ideas: Solon of Athens, the Landsgemeinde (Glarus as the
  model; Appenzell's 1990 court ruling as the lesson on who counts),
  Condorcet and Arrow, Ostrom, exit and voice, panarchy and Nozick, charter
  cities, the network state — every claim checked against sources, with
  the caveats the sources insist on.
- /governance/new-era: records, money, work, connection, making, energy —
  what changed, what it means, and the limit of each; what technology
  cannot do. SMR status stated as of 2026, not hyped.
- /platform: Solon decides, OrangeCat pays, Loki works; one decision start
  to finish; what works today vs next; "evidence, not authority" folded.
- Mega menu: four panels (use cases, governance, platform, decisions),
  each with summary, every page described in one line, and a featured
  photograph; click to open, Escape/outside/navigation to close; the
  mobile menu and footer render the same map (site-config MENU).
- lib/content/capabilities.ts is the one list of what is available now,
  in development or planned; pages show status from it, never their own.
- Deeper component for progressive disclosure; two new photographs
  (Museum Appenzell painting, public domain; Starlink over Tübingen's town
  hall, CC0), both on /credits.
- New essays are English-first (PENDING_TRANSLATION in the parity test);
  navigation and home stay translated in all five languages.
- CI: a production-shaped smoke runs the standalone server behind a TLS
  proxy header — the combination that 500'd production today while every
  other check was green.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>

* docs(design): one account across OrangeCat, Loki and Solon — proposal

Surveyed state of auth in all three products and the recommended design
(one identity, created from any product; passwordless email code and
passkeys; no dead ends). Needs George's go-ahead: it changes how every
OrangeCat user signs in.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>

---------

Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 05:05:30 -07:00
CatoandClaude Opus 5.5 1783c8cd72 feat(i18n): Solon in five languages — English, German, French, Italian, Russian (#189)
Phase A of the plan of record (docs/design/2026-09-solon-plan.md, added here).

- next-intl, the fleet's i18n choice (STACK.md), in evig's layout: pages move
  under src/app/[locale]/ (API routes stay outside), English unprefixed, the
  others at /de /fr /it /ru, no Accept-Language guessing.
- messages/<locale>.json carry every sentence of the header, footer, mobile
  menu, home, /hire, /security, /credits and every photo's alt text. German
  follows Swiss spelling. Machine-drafted; native review is open.
- t() keys are typed against en.json (a missing key fails typecheck); a parity
  test fails if a language lacks, adds, empties or drops a {placeholder}.
- Language switcher in the header (native <select>) and the mobile menu.
- Pages not yet translated stay English and say so in the reader's language
  (TRANSLATED_ROUTES in site-config).
- Every internal link goes through @/i18n/navigation, so a reader on /de stays
  on /de; the last plain <a> links to internal pages became Links.
- Glarus copy corrected against sources: "since at least 1387" (first recorded,
  not continuous), plus the 2006 floor amendment that merged 25 municipalities
  into 3.
- e2e: each language's front page, the switcher, the notice, API routes
  outside languages. 41/41 locally against a production build.

Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 02:52:33 -07:00
CatoandClaude Opus 5.5 3704f26fc9 feat(site): rebuild Solon's front door — full-screen photography, sans headlines, plain words (#188)
* feat(site): rebuild Solon's front door — full-screen photography, sans headlines, plain words

A SpaceX-inspired redesign for Solon as governance any group can hire:
full-screen photographic sections with one statement and one action each,
a three-link header, and copy written for the person who runs a group — no
crypto or protocol vocabulary on the front pages.

- Home rebuilt: Earth at night (NASA) → the Landsgemeinde of Glarus → three
  steps → the live counting demo → the governance agent → who it's for →
  why trust it → hire. New /hire (what you get, who it suits, how it starts,
  what it costs: free for pilot groups in beta) and /credits.
- Photographs from Wikimedia Commons (public domain, CC0, CC BY), each
  registered with author, licence and source in lib/content/photos.ts;
  /credits renders that list.
- Headlines move from the shared serif to the sans (.headline /
  .headline-caps), matching OrangeCat and Loki; design:check now forbids
  font-display in Solon and requires a headline style at display sizes.
- Header: three links + sign-in + "Hire Solon" (was six mega-menus that
  wrapped at 1440px). Footer and mobile menu render one SITE_SECTIONS map;
  tests check every link resolves to a page and the header is a subset.
- Inner pages: left-aligned PageLayout; /security and /governance/voting
  rewritten; dashboard aligned to the page edge, no card-in-card.
- Fixes found by looking: phone layout scrolled sideways (grid min-width),
  mobile menu opened to nothing (fixed panel inside a backdrop-filter
  header), serif wordmark.
- CI: render checks (tests/e2e/render.spec.ts) run in the integration job
  against a built app — styled buttons, one-line header, no sideways scroll
  at 390px, menu opens. Mutation-tested: reintroducing two of the bugs fails
  exactly those checks.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>

* fix(types): commit the static-image types CI's typecheck needs

next-env.d.ts declares *.webp imports but is gitignored and only exists after
next build/dev, so verify (typecheck before build) could not resolve the
photographs. Proven by typechecking with next-env.d.ts moved away: 0 errors.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>

---------

Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 01:01:44 -07:00
CatoandClaude Opus 5.5 a33d4e2548 feat: govern with one click — Bitcoin optional; design of record (#184)
* docs(design): Solon as a constitution engine across the three planes

Audit of Solon, OrangeCat and Loki (2026-09-24) and the design that follows:
charter as data, typed decision effects, mandates + receipts enforced by
OrangeCat (treasury) and Loki (execution), usable signers, deliberation,
AI agents in bounded offices, consolidation of OrangeCat's duplicate group
governance, a Verein wedge, federation and exit. Build order and the
decisions that are George's.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>

* docs(design): Bitcoin is one signer, not the door to a seat

Separate the seat from the credential. Charters set a minimum assurance
level per category: account (operator-attested), passkey (WebAuthn,
recountable with no wallet, proposed default), or own key (Nostr/Bitcoin).
Treasury is whatever money the group has, a bank account included, matched
to mandates via statement import. Phase 0 now starts by decoupling
members.bitcoin_address, which also unblocks the first human seat.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>

* feat(membership): govern with one click — Bitcoin becomes optional

A seat no longer requires a Bitcoin wallet. A signed-in OrangeCat member
claims a seat, founds an organization, files a proposal and votes with one
click; every such act is recorded as proof ACCOUNT and labelled as Solon's
record in the decision document. Signing with a Bitcoin key stays available
(proof BIP137, re-verifiable by anyone) and agents always sign.

- migration 0005: Proof enum; members.bitcoin_address/key_custody nullable
  with a check that a seat has a key or an identity; proof columns on
  proposals and votes (existing rows default to BIP137)
- lib/auth/actor: one resolver for every write; cookie-only acts require a
  same-origin request
- forms lead with one button (ActStep); Bitcoin signing folded underneath
- vote changes replace the ballot and re-read weight; README now says so
- ratification fails closed: only acts explicitly marked ACCOUNT skip the
  signature check (caught by the existing tests)
- fix: .btn-primary/.btn-secondary had no definition since #77, so every
  page's main action rendered as bare text on production
- fix: the selected ballot answer was invisible (same colour as its card)
- copy: no page says a Bitcoin key is required; security page states what
  a one-click vote does and does not prove
- tests: actor resolver unit tests; account-proof integration spec

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>

---------

Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 15:23:13 -07:00
GandClaude Opus 5 45935a4a02 chore: add a formatter (#123)
* chore: add a formatter, matching the style this repo already writes

singleQuote=false was chosen by counting this repo's own
imports, not by fleet decree. The fleet is genuinely split and the two repos
that already had a .prettierrc disagreed with each other, so there was no
standard to restore. Quote style does not cross repo boundaries; having a
gate does.

Markdown is ignored for now — prettier rewraps prose, which would bury the
real diff.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* style: format with prettier (87 files)

Mechanical. No behaviour change. This SHA is listed in
.git-blame-ignore-revs so `git blame` skips it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* chore: teach git blame to skip the reformat

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 08:15:49 +00:00
GandClaude 4b6e7f48e8 fix(honesty+design): the marketing site stops lying and starts converging (#70)
Full-page audit of all 12 pages found the site was two codebases in one
skin: the new honest pages (/ecosystem, /integration, governance/*) and
legacy marketing pages full of fabricated claims. This pass closes the gap:

Honesty
- about: fake team (Alex Chen / Sarah Martinez / David Kim) deleted, dead
  demo buttons replaced with real destinations; page now tells the true
  story and reuses the ecosystem SSOT
- security: full rewrite to the real model — no key custody, signed-message
  voting, append-only audit, self-verifying decisions. The fabricated
  multi-sig / zero-knowledge / anonymous-voting claims are gone
- features: truth pass — marketplace card deleted, every remaining item
  maps to running code; page gains real CTAs instead of dead-ending
- home: 'ON-CHAIN VERIFIED' badge removed, fake 'Sign In' replaced with
  'Open Dashboard', four governance areas now match the repo canon
  (Treasury / Voting / Decisions / Audit) with real links — the invented
  'Service Marketplace' pillar is gone from all four locales
- 'Pillars' is now reserved for the three-product stack; the home section
  is titled 'What Solon Governs', resolving the Three-vs-Four collision

Design
- four-pillars: server component, token colors (navy + bitcoin orange)
  replacing the off-system rainbow gradients, broken dynamic Tailwind
  class removed
- navigation: descriptions moved into the site-config SSOT (deleting ~20
  dead conditional branches), token classes throughout
- dashboard: overview is now a real server-rendered summary (latest vote +
  tally, treasury standing, recent audit events), tabs show active state,
  dark-on-white contrast bug (text-gray-300) fixed
- voting: closed sessions show the tally and decision document instead of
  a vote form the server would reject
- global token pass: [var(--navy)]-style arbitrary classes replaced with
  the mapped navy/solon-* utilities everywhere

verify green (lint, typecheck, 29 tests), build green, all pages smoke-
tested locally including visual review of home/about/security/dashboard.


Claude-Session: https://claude.ai/code/session_01179dZmbrVCoaZzrmyqzDgD

Co-authored-by: Claude <noreply@anthropic.com>
2026-08-12 12:56:55 +00:00
GandClaude 4a6b49e82e feat(ecosystem): Solon takes its place as the governance pillar of the three-pillar stack (#68)
OrangeCat (economy) and FleetCrown (engineering) already integrate with
Solon at the protocol level — the Cat and Loki are registered voting
members, OrangeCat's allocation policy is governed here, and FleetCrown's
shared deploy workflow ships this app. None of that was visible on the
site. Now it is:

- src/lib/config/ecosystem.ts — SSOT for the three pillars; every claim
  in it is checkable against a running system
- /ecosystem — the three-pillar page: pillar cards, how a decision
  travels, the humans-only red lines (rendered from the governance
  SSOT), and the live governed state (members, active policies, recent
  proposals) read from the same database the public API serves
- nav gains an Ecosystem section; footer drops its dead links
  (/docs, /support, /legal/*, unrouted governance/treasury pages, a
  bare github.com) and gains real ecosystem + source links
- README and CLAUDE.md document the stack and its real ties


Claude-Session: https://claude.ai/code/session_01179dZmbrVCoaZzrmyqzDgD

Co-authored-by: Claude <noreply@anthropic.com>
2026-08-12 11:00:15 +00:00
g-butandClaude Opus 4.5 d56893467f chore: add agentic development files
Add universal AI agent configuration:
- AGENTS.md - Universal guide for all AI agents
- .claude/CLAUDE.md - Claude Code specific
- .cursor/rules/*.mdc - Cursor IDE rules

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 00:21:00 +01:00