dependabot[bot] 288de6b39b deps: bump lucide-react from 1.35.0 to 1.41.0 (#148)
Bumps [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react) from 1.35.0 to 1.41.0.
- [Release notes](https://github.com/lucide-icons/lucide/releases)
- [Commits](https://github.com/lucide-icons/lucide/commits/1.41.0/packages/lucide-react)

---
updated-dependencies:
- dependency-name: lucide-react
  dependency-version: 1.41.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-07 14:24:30 +00:00
2026-08-31 08:15:49 +00:00
2026-08-31 08:15:49 +00:00
2026-08-31 08:15:49 +00:00
2025-08-26 11:12:28 +02:00
2026-08-31 08:15:49 +00:00

Solon

Governance you can verify instead of trust — proposals, Bitcoin-signed votes, versioned policies and an append-only audit trail.

License: MIT TypeScript Next.js

Live at solon.orangecat.ch.


The Stack: Three Pillars

Solon is the governance pillar of a three-product stack:

Pillar Product Role
Economy OrangeCat Bitcoin-native economic layer — entities, wallets, payments, the public timeline
Engineering FleetCrown AI-agent fleet control plane — dispatch, terminals, and the deploy pipeline for the whole stack
Governance Solon (this repo) Proposals, Bitcoin-signed votes, versioned policies, append-only audit

The ties are real, not marketing:

  • OrangeCat's platform allocation policy is governed here. The Cat's spending ceiling is a Solon policy; OrangeCat re-verifies every Bitcoin vote signature against its own pinned keys before honoring a decision (a Solon decision is evidence, not authority).
  • Both sibling agents are voting members. The Cat (orangecat:cat) and Loki (fleetcrown:loki) hold their own keys and cast Bitcoin signed-message votes via scripts/agent-vote.ts.
  • FleetCrown ships Solon. .github/workflows/deploy.yml calls FleetCrown's shared selfhost-deploy.yml; a merge to main deploys to production.
  • Decisions are self-verifying. GET /api/v1/decisions/{sessionId} returns the full signed record so either sibling — or anyone — can recount the tally.

What Solon is

A legislature for an economy that AI agents help run. It exists because "who counts as in need", "what is a fair allocation" and "what happens when aid is abused" are legitimacy questions, not engineering ones — and if an agent silently decides who eats, that is rule-by-algorithm.

Four properties do the work:

  • No keys, no custody. Members sign votes with their own Bitcoin keys. The treasury is watch-only — Solon stores addresses to observe, never funds or keys. There is no code path that can spend.
  • Verify, don't trust. Every vote is a Bitcoin signed message. The full signed record is published, so anyone can recount a tally independently rather than believe the number Solon reports.
  • Append-only record. Audit events are never updated or deleted.
  • Red lines agents cannot cross. Some categories are constitutionally humans-only (below).

Humans-only categories

src/lib/config/governance.ts maps every decision category to an electorate. Agents may vote on operational and policy matters; these four are HUMANS_ONLY and no agent key can be counted on them:

Category Electorate
ALLOCATION_POLICY all members
TREASURY_SPEND all members
OPERATIONS all members
AID_DISBURSEMENT humans only
MEMBERSHIP humans only
SAFETY humans only
GOVERNANCE_RULES humans only

How a decision happens

Proposal (DRAFT) ──open──> VotingSession (OPEN) ──signed votes──> CLOSED
                                                                    │
                                            Decision + Policy version, AuditEvent
  1. A proposal is drafted against an organization and a decision category.
  2. Opening it creates a voting session; the category fixes the electorate.
  3. Members cast Bitcoin signed messages. One vote per member per session, enforced by a unique constraint on [sessionId, memberId].
  4. Closing tallies the result, writes the decision, versions the affected policy, and appends an audit event.

Data model

src/lib/db/schema.ts is the SSOT — 9 models (Drizzle), with types, validation and API contracts derived from it.

Organization ── has many ──> Member (HUMAN | AGENT, own Bitcoin key)
     │                          │
     ├── Proposal ──> VotingSession ──> Vote (signed, unique per session)
     ├── Policy            (versioned; what a decision actually changes)
     ├── TreasurySource    (watch-only address — label + address, nothing else)
     ├── AuditEvent        (append-only)
     └── AgentApiKey       (how a sibling agent authenticates)

Domain logic lives in src/lib/domain/ (proposals, voting, tally, decision, treasury, membership, org, canonical) and stays free of HTTP and UI concerns. Bitcoin message signing and verification is src/lib/bitcoin/message.ts.

API

Method Route Purpose
GET /api/orgs/{slug} Organization and its members
GET /api/orgs/{slug}/audit Append-only audit trail
GET /api/orgs/{slug}/policies/{key} Current policy version
GET /api/orgs/{slug}/proposals Proposals for an organization
GET /api/orgs/{slug}/treasury Watch-only treasury sources
POST /api/proposals Create a proposal
POST /api/proposals/{id}/open Open voting
GET /api/sessions/{id} Session state and tally
POST /api/sessions/{id}/votes Cast a Bitcoin-signed vote
POST /api/sessions/{id}/close Close and record the decision
GET /api/v1/decisions/{sessionId} Self-verifying signed record
GET /api/health Liveness

Pages

Public: /, /features, /security, /integration, /about, /ecosystem (the live governed state), /join, /propose, /proposals, /governance/voting, /governance/audit, /treasury/bitcoin

Authenticated: /dashboard, /dashboard/treasury, /dashboard/voting, /account

Tech stack

Layer Technology
Framework Next.js 16.3 (App Router, output: 'standalone')
Language TypeScript 6.0 (strict)
Database PostgreSQL + Drizzle ORM
Auth NextAuth v5 (beta)
Styling Tailwind CSS 4 — tokens from @fleet/design-tokens
Bitcoin @noble/* + bs58check (signing / verification)
Tests Vitest (unit + integration), Playwright e2e, Puppeteer smoke
i18n English, German, French, Italian

Design system: see docs/development/ui-guidelines.md. Tokens are imported from the shared @fleet/design-tokens package (one SSOT for OrangeCat, FleetCrown and Solon), and Solon is dark-only.

Quick start

git clone https://github.com/bitbaum/solon.git
cd solon
pnpm install

cp .env.example .env          # set DATABASE_URL
pnpm run db:migrate            # applies drizzle/ migrations (baseline + seed)

pnpm run dev                   # http://localhost:3000

Add a member or cast an agent vote:

pnpm exec tsx scripts/add-member.ts
pnpm exec tsx scripts/agent-vote.ts

Verifying a change

pnpm run verify is the single gate, and CI runs exactly it:

pnpm run verify   # format:check && lint && typecheck && design:check && test
pnpm run test:e2e         # Playwright (needs a running app)
pnpm run test:puppeteer   # smoke against BASE_URL

Merging to main deploys to production automatically. Green PRs merge themselves — see scripts/ci/auto-merge-sweep.sh for the exact policy.

License

MIT. See LICENSE.


Governance should be verifiable, not trusted.

Languages
TypeScript 94.9%
HTML 3.1%
Python 1.3%
JavaScript 0.4%
PLpgSQL 0.2%
Other 0.1%