Commit Graph
30 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 d423d3ccbf 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>
2026-09-25 13:43:25 +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
b787ec19c1 fix(deps): restore the four bumps closing dropped; group Dependabot PRs (#185)
#177-#180 (next 16.3.5, react-dom + @types/react-dom 19.3.0, prettier
3.9.8, vitest 5.0.1) were closed as conflicted with "Dependabot will reopen
clean". It won't: closing a Dependabot PR tells it to skip that release.
Apply them here.

The conflicts came from ten separate PRs each rewriting pnpm-lock.yaml, so
group minor+patch npm bumps into one PR. Drop the labels config: the
`dependencies`/`security`/`ci` labels don't exist on the repo and every
PR carried an error about it.

Co-authored-by: Mao Nakamoto <maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 21:05:32 -07:00
a53678e06e ci(node): one .nvmrc both CI and the deploy read (#174)
Node 24 was written as a literal in two places in ci.yml and nowhere the
deploy could see it. bitbaum/loki's selfhost-deploy.yml looks for .nvmrc
first and only falls back to its own `node-version` input when a repo
commits none, so solon has been building on the fallback and emitting
"::notice::no .nvmrc — building on Node $FALLBACK" on every deploy.

That fallback currently reads 24, so nothing is shipping on the wrong
major today. The hazard is drift: the pin that CI verifies with and the
pin that the deploy builds with are two separate declarations that
nothing keeps in step. When they part, npm/pnpm majors disagree about
optional platform deps and the lockfile reads as out of sync — the
failure that stranded aoz-begleitung's merges and broke hirnli's deploy,
both after the merge, where it is most expensive.

Commit the file and have both CI jobs read it via node-version-file, so
verify, integration and deploy resolve the same major from one line.

Co-authored-by: Mao Nakamoto <maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 21:05:14 -07:00
CatoandClaude e54d9d468f feat(propose): a link that carries context lands on a form that kept it (#172)
OrangeCat's "Govern it with Solon" button sent ?from=orangecat&entity_type=…
&entity_id=…&title=… to /dashboard, and nothing in this repo read it. The
visitor pressed a button about a specific thing and landed on a page that had
forgotten which thing. /propose then dropped the query a second time on its
sign-in redirect, and a third time on the way through /join.

Now /propose reads the query into a pre-filled draft — title, a body naming
the entity with a link back, the cheapest category as default with its
consequence stated beside it and one tap to change — and the draft survives
sign-in and /join (`?next=`), so the person signs the thing they came to
sign. /dashboard redirects links already in the wild to the same place.

Two things fell out of doing this honestly:

- The form's category hints ("Humans only, supermajority") were a hand copy
  of governance.ts, read by a member right before signing. They are now
  derived from the table that binds them (categoryConsequence).
- governance.ts says of itself that changing it IS a GOVERNANCE_RULES matter.
  That sentence was a comment. CI now checks it on every PR that touches the
  file — fetches any `Decision:` trailer's document from the public
  endpoint and recounts it (category, outcome, every signature) — and when
  nothing ratifies the change it warns, in the PR, with a pre-filled link to
  the proposal that would. It never fails the job: a rules change without a
  decision is a fact the record must show, not a build failure, and nobody
  should be stuck in CI over a governance question.

Both follow one rule, now written into .claude/CLAUDE.md: a gate records; it
never blocks. Every stop shows the way forward on the same screen.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-20 05:59:10 -07:00
CatoandClaude Opus 5 bd72e5ace0 feat(orgs): anyone may found an organization; everything after is voted (#166)
Solon could govern many organizations and shipped exactly one, because the only
way to create one was to write a SQL migration (drizzle/0001_seed_org1). That
does not survive a second builder, and it made Solon something the studio grants
rather than something people use.

WHERE THE LINE IS

Founding is permissionless; acting within an organization is governed. Requiring
a vote to create one is circular — there is no electorate to vote in yet — so the
founding seat is granted the way membership.ts already grants the genesis seat:
on proof, not permission. The founder signs with a Bitcoin key they control,
bound to their OrangeCat identity, and the organization, the founder's seat and
both audit events are written in ONE transaction. There is no instant when an
organization exists with an unclaimed founding seat somebody else could take.

ONE SEAT PER ORGANIZATION, NOT PER PERSON

members.oc_actor_id was globally unique, so an OrangeCat identity could sit on
exactly one roster ever — a builder who founded a second organization could not
be its founding member. It is now unique per organization, which keeps the
property that mattered (nobody holds two votes in one electorate) and drops the
one that was an accident. memberForActor() therefore takes an organization;
without that, a builder would be shown one organization's seat on another's
pages. Four call sites updated.

ATTRIBUTION IS CONSENT, NOT A NAME MATCH

Permissionless founding opens one door that must stay shut: anyone could found
`loki` and appear on a public register to govern a product they have nothing to
do with. So organizations.claimed_project is set only from a grant Loki signs
for the founder's own identity (src/lib/loki-grant.ts), checked against the
SESSION's actor id — never one taken from the request. Squatting a name costs a
vanity slug, never attribution. A grant that is present but invalid refuses the
founding outright rather than quietly creating an unattributed organization.

Organization #1 is backfilled as governing `orangecat` (0004) — it predates
grants, so it is reference data, the way the organization itself was.

AND THE 404 NOBODY OWNED

Loki's fleet map and the bitbaum studio site both link /orgs/<slug>. No such
page existed: every one of those links answered 404, including the link to
organization #1. /orgs/[slug] now serves the roster and the record, and
/api/orgs lists every organization so Loki can stop probing one name at a time.

PROVEN

CI ran ONE integration spec by name, so the membership spec guarding the
founding seat had never once run there. It now runs every *.integration.test.ts
— and caught this change's own regression on the first run, where the reworded
refusal no longer matched that spec's assertion.

23 integration assertions against a real database (atomicity, signature replay
across message types, the multi-organization constraint, grant forgery and
expiry, one organization per project, the founding cap) plus 116 unit tests.
pnpm run verify: green.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-17 00:43:15 -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
CatoandClaude Opus 5 6f1988d602 fix(ci): a commit must not cancel another commit's run (#156)
The concurrency group was keyed by branch with cancel-in-progress, so a
newer merge cancels an older commit's CI — and every deploy path keys off
that run. One that waits for CI to pass on the commit finds a cancelled run
and stops. One chained on workflow_run sees conclusion=cancelled and skips.

auto-merge also re-arms CI with a dispatch, and under one group-per-branch
that dispatch cancels the push run for the SAME commit.

Measured across the fleet on 2026-09-11: 28 of 39 ci.yml files had this
shape. It broke two repos that day, in the two ways it can break.
fleetcrown failed silently — Deploy skipped, four merges sat on main with
every check green and nothing red while the box served the previous build,
each needing a hand-dispatched deploy. hirnli failed loudly, erroring at
its wait-for-CI step, which is the better outcome because somebody sees it.

Keying main per commit lets both runs finish, so whatever the deploy path
looks for is there. Branch behaviour is unchanged: the newest push is still
the only one that matters there.

The templates this was copied from are fixed in bitbaum/fleet#53, which
also adds a ci-strands-commits rule to the hygiene audit so the remaining
repos are found by a sweep rather than by an outage.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 14:34:33 -07:00
CatoandClaude Opus 5 d489b33515 ci(auto-merge): hand the sweep a PAT so workflow PRs stop stalling (#155)
GITHUB_TOKEN cannot merge a PR that touches .github/workflows. The sweep tries,
the merge API refuses, it logs "leaving for the next sweep", and repeats — while
still exiting 0. So the failure is invisible: every run reports success and the
PR simply never merges.

That is not hypothetical. ai-kit #11 (bump actions/checkout) sat green, CLEAN
and MERGEABLE for nine days; aoz-housing #122 (bump actions/upload-artifact)
for nine more. Both had to be merged by hand today. Every Dependabot
`github_actions` bump in the fleet is in this class, permanently.

A PAT fixes a second thing that costs more: THROUGHPUT. A dispatch made with
GITHUB_TOKEN emits no workflow_run, so after each merge nothing wakes the sweep
to take the next PR — it waits for the cron, and GitHub throttles scheduled
workflows to roughly hourly regardless of what the cron says. Observed in
fleetcrown: sweeps ~50-65 minutes apart against a */10 schedule. A PAT-created
dispatch does emit workflow_run, so the queue drains at CI speed instead.

The reusable workflow has always supported this — GH_TOKEN is
`secrets.token || github.token`. This just passes it.

SAFE BEFORE THE SECRET EXISTS: an undefined secret resolves to empty, and the
fallback picks github.token. So this changes nothing until FLEET_PAT is created
as an organisation secret, and needs no second pass afterwards.


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

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 15:57:15 +00:00
CatoandClaude Opus 5 a5e0391786 ci(auto-merge): call the fleet sweep instead of carrying a stale copy of it (#154)
This repo shipped its own scripts/ci/auto-merge-sweep.sh: 297 lines against the
canonical's 446, differing on 149. Every fix that landed in bitbaum/fleet since
the copy was taken reached here never — which is the whole reason SHARED.md
tracks this duplication as a ratchet rather than as advice.

Auto-merge did not appear broken, and that is the point: a sweep merges what it
can and exits 0, so a copy missing a third of the canonical looks exactly like a
working one until the missing third is what you needed.

The concrete gain is the DEPLOY RECONCILER. The old copy listed deploy.yml in
REARM_WORKFLOWS, which dispatches it once and cannot tell whether the deploy
actually landed. The canonical compares main's tip against the last successful
deploy and re-dispatches when they differ, so a deploy that never fired — or
fired and failed — is retried on the next sweep instead of leaving a commit
merged-but-not-live. That failure is invisible without it: CI green, PR merged,
box unchanged.

Also gained: checks:read + statuses:read on the caller. Public repos do not need
them, so their absence is silent here — but the caller is now identical to every
other repo's, which is what makes the next fix a one-file change.

What stays local is only what genuinely varies: the workflow_run trigger must
name the CI workflow exactly as its own `name:` field spells it, and the
schedule. Everything else is inputs.

Verified: the generated YAML parses, resolves to
bitbaum/fleet/.github/workflows/auto-merge-sweep.yml@main, and passes
base_branch / ci_workflow / rearm_workflows / deploy_workflow — all four
confirmed against the reusable workflow's declared inputs. No file outside the
workflow still references the removed script.

NOTE: this PR touches .github/workflows, which GITHUB_TOKEN cannot merge, and
scheduled sweeps read the workflow from the default branch. It needs one
hand-merge; after that the sweep here is the shared one.


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

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 07:38:00 -07:00
dependabot[bot] c9cdc7356a ci: bump actions/cache from 4 to 6 (#141)
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 6.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-07 14:15:39 +00:00
CatoandClaude Opus 5 b96be51e5a ci: cache Next's build output in the job that actually builds (#140)
Next keeps its compiler output in .next/cache and nothing restored it, so every
CI run recompiled the whole app from scratch.

Measured across the fleet on 2026-09-07: of eight repos, exactly one cached this
in CI. 14 repos built cold; ten adopted the step today and this is one of the
four that needed reading rather than a regex.

This repo has TWO install steps, which is why a mechanical sweep correctly
declined it: `verify` installs and builds, `integration` installs and never
compiles. The cache goes in `verify` only — in `integration` it would restore
an entry nothing reads.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 14:01:04 +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
0708055501 refactor(db): Prisma → Drizzle — the fleet has one ORM (#136)
Stack-uniformity migration (George: "Drizzle everywhere" for fleet-owned
Postgres apps), following the recipe proven in biaslens#26. Schema parity
with the live tables is byte-exact and proven by normalized pg_dump diff
(scratch replay AND against the production database itself); the deploy
ledger on the box is pre-baselined so the cutover is a no-op for prod data.

- src/lib/db/{schema,client,enums}.ts replace prisma/* + @prisma/client
- every call site rewritten (domain, API routes, pages, scripts, tests)
- drizzle/0000_init + 0001_seed_org1 replay the full schema + seed on a
  fresh database (CI integration job now runs drizzle-kit migrate)
- prisma deps, prisma.config.ts, generate steps and docs mentions removed


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-01 22:28:36 +00:00
963175f724 chore(ci): CI and .nvmrc follow the box to Node 24 (#133)
The box ran Node 20 four months past EOL; it moved to 24.20.0 today with
every service health-verified. CI validating on 20 now validates against
a runtime nothing uses.


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-08-31 18:57:40 +02: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 Opus 5 e4fed8be7e docs(ci): the sweep lives in bitbaum/fleet, not dotfiles (#120)
The `uses:` line is already correct. What was stale is the prose next to
it, which told the reader the policy lives in bitbaum/dotfiles and to go
change it THERE. That file no longer exists in dotfiles — the sweep moved
to bitbaum/fleet on 2026-08-28, because a repo holding someone's .bashrc
is not where a fleet's deploy policy belongs.

A comment that misroutes a fix is worse than a missing one: it sends the
next person to edit a repo where the change would reach nobody, which is
the precise failure the shared sweep exists to prevent.

Files: .github/workflows/ci.yml


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

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 12:00:43 +00:00
GandClaude Opus 5 cd61f82272 fix(ci): point the deploy at the bitbaum org, so this repo can ship again (#119)
deploy.yml called catomean/fleetcrown/.github/workflows/selfhost-deploy.yml.
The Actions `uses:` resolver does not follow a rename or a transfer, though the
REST API and git both do — so the reference looked correct everywhere it could
be checked, while the run died before any job started.

This repo has no auto-merge.yml, so nothing here ever went visibly red; the
deploy simply stopped happening. Found by auditing every workflow reference in
the org against the canonical full_name REST reports.


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

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 10:38:23 +02:00
Mao Nakamoto 93469b7e40 chore(ci): GitHub owner maonakamoto -> catomean 2026-08-27 19:11:28 +02:00
GandClaude Fable 5 12c2f57ef5 fix(deps): re-pin design-tokens to v1.1.0 and stop dependabot downgrading it (#105)
Dependabot PR #97 'bumped' @fleet/design-tokens from v1.1.0 DOWN to
v1.0.0 — it cannot order git tags — and auto-merge shipped the
downgrade. That silently removed the --on-accent token, so every
text-on-accent label on the live site fell back to inherited near-white
on the orange accent: measured 2.6:1 against a 4.5:1 floor (Open
Dashboard, See the latest vote, Open the Dashboard).

Re-pins v1.1.0 (lockfile resolves to tag commit dedda604) and adds a
dependabot ignore for this dependency: the pin is bumped by hand on
release, never by a bot that cannot compare tag order.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-20 13:24:38 +00:00
GandClaude Opus 5 a1d995f806 deps: Next 16, React 19, ESLint 9 — and a bug typecheck could not see (#82)
Solon was the only app in the fleet still on Next 14 / React 18; OrangeCat,
FleetCrown, Petvity and Vitareba are all on 16 / 19. This closes that.

  next  14.2.5 -> 16.3.1     react/react-dom  18.3.1 -> 19.2.8
  eslint 8.57.1 -> 9.39.5    eslint-config-next 14.2.5 -> 16.3.1
  @types/react 18.3.3 -> 19.2.18   @types/react-dom 18.3.0 -> 19.2.4

ESLint 8 was end-of-life, which is why it rode along rather than waiting.

**A silent bug, found by running the thing rather than compiling it.** Next 15
made a page's `searchParams` a Promise. `/auth/error` still read it
synchronously, so `searchParams.error` was `undefined` and the AccessDenied
explanation — the whole reason that page exists — never rendered; every failure
fell through to the generic "sign-in didn't complete" copy. **`tsc` did not flag
it**, because the page declares its own inline props type. Confirmed broken
against a real server, then confirmed fixed on both branches.

Route handlers took the same change: `params` is now a Promise in all ten
dynamic routes. Rewritten to take the context and await it into a local still
named `params`, so every existing `params.slug` in the bodies stays correct —
smallest diff, and no way to miss a usage.

`next lint` no longer exists. The old script failed with "no such directory:
./lint" because the CLI read the word as a path. ESLint runs directly now, with
flat config in eslint.config.mjs (eslint-config-next already exports a flat
array, so there was nothing to translate); `.eslintrc.json` is deleted.

Next 16 also deprecates the Edge Runtime, so opengraph-image drops its
`runtime = "edge"` export — `next/og` renders identically on Node.

While in that file: the card was still drawing the **deleted** navy palette
(#0F172A / #F97316) and describing itself with copy the site stopped using, so
every link shared to Telegram or Slack previewed in a brand that no longer
exists. `design:check` cannot catch it — Satori needs literals, and bare consts
are invisible to a className scanner. Now mirrors @fleet/design-tokens, with the
subtitle taken from the current i18n subtag.

tsconfig changes (`jsx: react-jsx`, the extra `include`) are Next 16's own
mandatory edits. Versions are pinned exact, matching what these deps already did.

Verified: `npm run verify` green (33 tests), `next build` compiles in 19.3s with
no deprecation warnings, and against a running production server every public
page, `/api/health` and `/opengraph-image` return 200 — the last as image/png,
rendered and inspected.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-14 14:17:30 +00:00
GandClaude Fable 5 b6ea9e776e feat(governance): vote spine end-to-end — propose, open, vote, close over HTTP (#66)
S3 of the Solon v1 plan: the domain layer gets its public write surface, a
reference agent signer, and a database-backed acceptance spec in CI.

Routes (thin Zod-validated shells over lib/domain):
- POST /api/proposals — file a signed proposal; the Bitcoin signature over
  proposalMessage() is the authorization, and AGENT proposers must also
  present their transport API key (Authorization: Bearer sk_solon_…)
- POST /api/proposals/[id]/open — open the voting session (permissionless by
  design: the proposal is already signed and public, opening only starts the
  clock, and it can happen exactly once)
- GET /api/sessions/[id] — session, snapshotted rules, live tally
- POST /api/sessions/[id]/votes — cast a signed vote (replaces
  /api/voting/[id]/cryptographic-vote; UI + integration page updated)
- POST /api/sessions/[id]/close — close and decide the outcome

New domain code:
- lib/domain/proposals.ts createProposal(): content binding via sha256 of
  canonical JSON (lib/domain/canonical.ts — the cross-repo contract OrangeCat
  will re-hash against, pinned by golden-hash tests)
- closeRefusal() guard: a session cannot be closed while the voting window is
  open unless every eligible member has voted — nobody slams the door on a
  tally they like

Scripts:
- scripts/agent-vote.ts — reference agent signer (privkey from the agent's own
  env, signs and POSTs; the key never leaves the agent's box)
- scripts/add-member.ts — documented operator bootstrap for the genesis
  roster, with MEMBER_ADDED audit events and one-time API-key minting

CI: new `integration` job — postgres service container, `prisma migrate
deploy` on a fresh database (proves baseline + seed replay), then the
vote-spine integration spec: propose (agent transport auth enforced) → open
(rules snapshotted) → three signed votes → early-close refused → full
participation closes → APPROVED → policy v2 activated referencing the
session, v1 superseded, every step in the audit trail; plus the humans-only
electorate gate. Verified locally against a dockerized postgres 16.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 19:41:19 +00:00
dependabot[bot] abe82288ec ci: bump actions/checkout from 4 to 7 (#46)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-07 07:26:17 +00:00
dependabot[bot] 4822afbb5c ci: bump actions/setup-node from 4 to 7 (#45)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 7.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-07 09:21:59 +02:00
G a0728dccd7 ci: green PRs merge and deploy themselves (#55)
* ci: add the auto-merge sweep policy

* ci: green PRs merge and deploy themselves
2026-08-05 19:18:07 +02:00
GandClaude Opus 5 d5ac91c5fe ci: allow manual redeploy via workflow_dispatch (#53)
Re-running a failed deploy reuses the original run's resolved version of
the shared workflow, so a fix landed since then does not apply — which is
how this app sat waiting on a gate that had already been fixed. A fresh
dispatch resolves the shared workflow again.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-03 11:17:36 +02:00
GandClaude Opus 5 c1e0914b4f ci: deploy on push to main (#52)
Merged changes never reached the box — deploys only ran from a local
pre-push hook. Calls the shared self-host CD workflow, which blocks on
this commit's own CI before shipping.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-03 10:26:44 +02:00
GandClaude Opus 4.8 54caeaab46 ci: raise CI floor to lint + typecheck + build (#47)
Grade C → B: the golden `verify` floor was typecheck-only because no ESLint
config existed (`next lint` dropped into interactive setup) and the build was
never gated.

- Add ESLint: `eslint` + `eslint-config-next` devDeps, standard `.eslintrc.json`
  (`next/core-web-vitals`). Remove the non-functional flat `eslint.config.mjs`
  that Next 14's `next lint` can't read (SSOT: one eslint config).
- `verify` now runs `lint && typecheck`; CI calls it verbatim.
- Fix the pre-existing lint errors surfaced (unescaped JSX entities in
  about/integration code blocks, `//` comment textnodes, and stale
  no-explicit-any disable directives) so lint is green.
- Gate `next build` in CI. Build is hermetic — the Prisma-touching server
  components catch DB errors and render demo fallbacks, so no live DB is needed.
- Add AGENTS.md (stack, dev/verify commands, Prisma db:push is manual).

Prisma migration/deploy strategy unchanged; e2e smoke tests stay deferred.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-02 19:42:31 +02:00
GandClaude Opus 4.8 c46959d520 ci: add golden verify floor (Rung 4 propagation) (#43)
Adds a `verify` script + CI that runs it on every push & PR — real signal this
repo's shared branch never had. See dotfiles/templates/ci.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-17 12:36:37 +02:00
g-butandClaude Opus 4.5 480c54155e chore: add security policy and dependabot config
- Add SECURITY.md with vulnerability reporting guidelines
- Add dependabot.yml for automated dependency updates

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 18:45:39 +01:00