Commit Graph
14 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 21f6a39fe0 feat(i18n): Solon in five languages — English, German, French, Italian, Russian
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.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
2026-09-25 11:49:00 +02: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
CatoandClaude Fable 5.1 74843fbf71 chore: rename FleetCrown to Loki (#157)
The product was renamed on 2026-09-14: bitbaum/loki, loki.orangecat.ch,
LOKI_* env keys, loki-* units. This repo referenced the old name in
17 files changed, 33 insertions(+), 33 deletions(-).
Email addresses at the old sending domain stay until the new domain is
verified in Resend.


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

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 16:25:55 -07:00
6e01146bfe docs: sync docs with actual stack (#138)
Fix drift proven against package.json, the tree and the live site:

- TypeScript 5.5 -> 6.0 (README badge + stack table, AGENTS.md; ^6.0.3 in
  package.json, 6.0.3 in pnpm-lock.yaml)
- Tailwind CSS 3.4 -> 4 (package.json 4.3.3), and tokens no longer live in
  src/app/globals.css — they come from @fleet/design-tokens (README,
  AGENTS.md stack + design sections)
- verify description now includes format:check, matching the actual script
  (README, AGENTS.md, .claude/CLAUDE.md)
- README pages list: /why was deleted in #90 (404 live); replaced with the
  real /join, /propose, /proposals pages
- README domain list: add membership and org modules that exist in
  src/lib/domain/
- docs/TOWNSISM.md: stop claiming the site speaks the thesis at /why


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-04 13:56:43 +00:00
f59996b6ea chore: pnpm — the fleet has one package manager (#137)
* chore: pnpm — the fleet has one package manager

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

* fix: declare espree — pnpm's strict layout exposes the phantom dep

eslint.config.mjs imports espree directly; npm's flat hoisting provided it
by accident, pnpm does not. CI caught it (ERR_MODULE_NOT_FOUND).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

---------

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-04 00:33:33 +00:00
9ba0d54ebc chore: finish the move to the bitbaum org, and make verify honest again (#135)
* chore: the org is bitbaum now, so the links should say so

cd61f82 moved the deploy workflow to bitbaum/fleetcrown but stopped there.
Everything else still named catomean: the "view source" links on /about and
/security, the three URLs in ecosystem.ts behind them, the clone command in
the README, the design-tokens git dependency in package.json, and the
incident notes in the auto-merge sweep.

None of it is broken today only because GitHub 301-redirects a renamed org.
That redirect dies the moment anyone claims the catomean name, and it is not
a guarantee to hang a dependency resolution on. npm ci resolves the new URL
at the same commit sha, so the lockfile integrity is unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S8e9btkzguNLS4b6ShGQ9H

* fix(verify): the local gate failed on files CI never sees

`npm run verify` is the contract: green locally means green in CI. It was not.
Two kinds of file that exist on a developer machine and never in CI were
inside the gate's scope.

The harness checks this repo out a second time under .claude/worktrees/<branch>/
for concurrent sessions. Git treats that as a separate worktree, but prettier,
eslint and tsc read it as ordinary files — so `prettier --check .` failed on 88
files belonging to another branch, and tsc would have compiled that branch's
half-finished code into this branch's verdict. .claude/settings.local.json is
per-machine agent config, ignored only by the user's global gitignore, so
prettier checked a file the repo does not even own.

Both are now out of scope for all three tools, and both are ignored by this
repo rather than by whatever the developer happens to have in ~/.config/git.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S8e9btkzguNLS4b6ShGQ9H

---------

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-01 06:07:07 +02:00
Mao Nakamoto af4df96005 chore(ci): GitHub owner maonakamoto -> catomean 2026-08-27 19:18:43 +02:00
G 5104ead10e feat(why): publish the Townsism thesis Solon is an organ of (#87)
The governance site now states why a town is the unit — /why, nav, footer,
and About — and keeps the full essay in docs/TOWNSISM.md. Software is not
sovereignty; this is the why, not a rebrand.
2026-08-15 00:56:28 +00:00
GandClaude Opus 5 7d3dc0c44f design: one design SSOT for the stack, and a serif that means something (#81)
The tokens were hand-copied into three repos and drifted: Solon's globals.css
carried a comment claiming it matched OrangeCat's while sharing zero names or
values with it. Copies drift; imports cannot. So the tokens now live in one
place — @fleet/design-tokens — and Solon imports them.

  - globals.css goes from 168 lines to a comment and `height: 100%`
  - tailwind.config.js maps nothing; it consumes the shared preset
  - the package owns the self-hosted faces too, so changing the display
    typeface for all three products is one line in one file

Display face is now Instrument Serif. Every AI and infra company competes
inside the same dark-canvas grotesque, where the winner is whoever has the
biggest design budget; a high-contrast serif exits that comparison and reads
institutional, which is what a product whose output is *legitimacy* should
look like.

Two rules fell out of actually looking at it, both now enforced by
design:check rather than remembered:

  - the face has ONE weight, so `font-bold` next to `font-display` would make
    the browser synthesize a fake bold. Weight and tracking are declared with
    the face in the package, so a future face swap stays one line.
  - a high-contrast serif goes weak as it shrinks: at 18px the card titles
    rendered LIGHTER than the 16px body under them and the hierarchy
    inverted. Display type starts at text-2xl; below that, sans at 600. The
    uppercase, open-tracked wordmark is the one sanctioned exception.

Verified: design:check (incl. a negative test that the new rules fire),
typecheck, build, and a local prod render of the hero, cards and auth error.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-14 11:08:23 +00:00
GandClaude Opus 5 c6f4258e8d design: give Solon x.ai's spatial discipline, keeping the family palette (#79)
* design: give Solon x.ai's spatial discipline, keeping the family palette

#77 made Solon look like its siblings. It still read as compressed next to the
reference: the hero headline broke onto three lines inside a 768px column, every
section carried its own `py-20 sm:py-28` guess, and headings topped out at
text-4xl.

Colour is deliberately untouched. #ff5c00, the surface ramp and the type
families stay exactly as OrangeCat defines them — the three products still have
to read as one company. What is borrowed from x.ai is pace, not palette.

Pace and display size are now tokens, because "how much air does a section get"
is one decision and not a per-section guess — that is how a page ends up with
six slightly different rhythms:

  --section-py        clamp(5rem, 9vw, 9rem)     py-section
  --section-py-tight  clamp(3.5rem, 6vw, 6rem)   py-section-tight
  --text-display-1    clamp(2.75rem, 5.4vw, 4.5rem)
  --text-display-2    clamp(2rem, 3.4vw, 3rem)
  --text-display-3    clamp(1.5rem, 2vw, 1.875rem)

Fluid, so one confident size resolves itself per viewport instead of three
breakpoint variants per heading.

Measured rather than eyeballed, at 1440: the h1 goes 60px/3 lines to 72px/2
lines, hero padding 80px to 129.6px. The two-line break needed the hero column
widened to max-w-5xl — and that showed the h1's own `max-w-hero` never bound,
so the token is gone rather than left in place doing nothing.

`page-layout.tsx` is the shell every content page renders through, so the new
rhythm reaches /about, /features, /security and the rest from one edit.

Cards take hairline borders (border-subtle, hovering to border-default) and
p-10, and the public backdrop is dialled down — glow 0.10 to 0.07, grid stroke
0.04 to 0.025, cell 80px to 96px. Same effect, same token names as FleetCrown,
felt rather than read.

Verified: `npm run verify` green (33 tests), rendered at 1440 and 375 — no
horizontal scroll, no overflowing element, h1 lands on its 44px clamp floor.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* docs(ui): document the rhythm and display tokens

The guidelines were rewritten one commit before these tokens existed, so they
already described a system with no answer to "how much padding does a section
get". Adds the five utilities, and the rule the hero measurement taught: a
headline takes its width from its column, never from a max-width of its own.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-14 01:58:00 +00:00
GandClaude Opus 5 0c3e63d7a3 docs: make the repo describe the Solon that exists (#78)
The README documented a product that was replaced. Of the four "pillars" it
described, three referenced Prisma models that do not exist — BitcoinTransaction,
BudgetAllocation, Decision, ServiceRequest, ServiceBid. It claimed 10 models
(there are 9), an `xpub` field for multi-sig derivation, BigInt satoshi amounts,
a five-metric "Transparency Engine", and five components including
`lib/transparency-engine.ts` — none of which are in the tree. Its route map
listed `/api/bitcoin/wallet/[orgId]` and `/api/voting/[sessionId]/cryptographic-vote`;
the real API is `/api/orgs/{slug}/*`, `/api/proposals`, `/api/sessions/{id}/*`
and `/api/v1/decisions/{sessionId}`. Auth was not mentioned at all. The clone
URL was `your-org/solon`.

Reality, from the schema and `src/lib/config/governance.ts`: Solon is the
governance rail for the OrangeCat stack. Proposals become voting sessions,
members (HUMAN or AGENT) cast Bitcoin signed messages, closing writes a decision
plus a policy version and an audit event, and the treasury is watch-only — a
label and an address, with no amount field and no path that can spend. Four
categories are constitutionally humans-only. The README now says that.

Also removed, all unreferenced:
- `docs/MIGHTVILLE.md`, `docs/DEYVILLE.md`, `docs/dottown-town-profiles.json` —
  idea capture from June for a movement/rename that did not happen. Copied to
  ~/ideas/, which is the SSOT for ideas; a product repo is not.
- `docs/CODEX.md`, `docs/GEMINI.md` — near-identical copies of AGENTS.md, last
  touched 2026-01-08. AGENTS.md is the cross-tool standard and is now the SSOT.
- `ralph.sh` + `PROMPT.md` — a task runner whose header still reads "Ralph Loop
  for Revamp-Hirn"; never adapted, superseded by FleetCrown dispatch.
- `test-results/.last-run.json` — a Playwright artifact that was tracked.

Fixed docs that would actively mislead an agent:
- `docs/development/ui-guidelines.md` listed the navy palette #77 just deleted.
  It now names no colours at all and points at globals.css as the token SSOT.
- `.cursor/rules/` gave `bg-navy text-solon-orange` as the CORRECT example —
  that fails `design:check` today — and described a Marketplace nav section and
  a Transaction interface that do not exist.
- `AGENTS.md` said the theme was "Bitcoin-orange + navy", that `.env` holds
  BTCPAY_*/BITCOIN_*/Clerk keys (it is NextAuth), that verify was lint+typecheck
  (it is lint+typecheck+design:check+test), that build was not gated in CI (it
  is), and that CI never touches a database (the integration job replays
  migrations against a fresh one).

Added `.env.example` — every variable the code reads, with the AUTH_URL-behind-a-
proxy trap called out. `.gitignore` needed `!.env.example` to not swallow it.

SECURITY.md now leads with the custody model, since "no keys, no funds, no
rewritable history, a decision is evidence not authority" is the product's
actual security claim.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-14 01:31:21 +00:00
Mao Nakamoto b031eff4ec chore: checkpoint working state (GitHub safety sync) 2026-06-16 19:16:12 +02: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