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>
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>
* 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>
#184 made one-click votes the default but the homepage hero, the four
pillars, /governance, /governance/voting, /features, /integration and
/propose still said every vote and proposal is Bitcoin-signed. Each now
says what is true: one click by default, a signature when wanted, and
every record labelled with which.
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
#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>
* 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>
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>
Solon's /ecosystem page, its nav descriptions and its README all called Loki
the engineering pillar. That named Loki's deepest capability rather than the
product — it also holds the people an operator works with, what they owe and
what they spend, and neither sibling has a surface for those.
What separates the three is AUDIENCE, not subject matter: OrangeCat public by
design, Loki private by default, Solon shared with its members. AGENTS.md now
says so where it introduces the three planes, since "where does this belong?"
is the question the old wording kept answering wrongly.
The one-word role stays SSOT in orangecat/src/config/ecosystem.ts; this repo
is downstream of it.
Claude-Session: https://claude.ai/code/session_01LJkpuZ2F3GWrB6TLycwy4A
Co-authored-by: Claude <noreply@anthropic.com>
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>
`next dev` writes a <!-- BEGIN:nextjs-agent-rules --> section into AGENTS.md
on every run via generate-agent-files.js, so any session that starts a dev
server gets a dirty tree it did not create. Two PRs this week had to strip it
before committing, which does not help the next one — the generator just writes
it again.
Committing it is the generator's own advice and ends the churn. The content is
also true and worth having: this Next version differs from what a model was
trained on, and the docs it points at ship in node_modules.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
`i18n/` held four dictionaries and was not localization. `page.tsx` called
`<SolonHero language="en" />` with a literal, and that was the only call site —
so the German, French and Italian strings shipped in the bundle where no visitor
could reach them. There is no locale routing, no middleware and no switcher; the
only other `locale` in the repo is a `toLocaleString()` on a satoshi balance.
The cost of leaving it was not the dead bytes. `CLAUDE.md` told every agent that
"four languages ship from `i18n/`", so the rule pointed work at a dead file
while the other 18 pages hard-coded English. That nearly sent a large new
teaching section into a dictionary nothing reads.
- The English copy moves into the two components that used it; `made_in` and
`demo_section` are dropped, nothing read them. The homepage renders unchanged.
- The `@/i18n/*` path alias goes with the directory.
- The false "Don't" becomes the true one: never assemble a sentence by
concatenation. `"You have " + n + " votes"` has to be re-authored to
translate; `You have {n} votes` does not. That is the only i18n habit here
that is expensive to undo. Inline English is fine — moving strings into
dictionaries is linear in page count and no worse next year, which is what
makes deferring safe.
- `AGENTS.md` gains a "Language" section recording the decision, the trigger
(a real organization governing in DE/FR/IT — `ASSOCIATION` is written for the
Swiss Verein, Art. 60 ZGB), and the instruction to EXTRACT heidi's `lib/i18n`
rather than reimplement: seven typed dictionaries, `app/[locale]` routing, and
a test pinning that every locale keeps its placeholders. It is not a package
because it has one consumer; Solon becoming the second is what would justify
extracting it.
Deleting a fake capability is not losing one. Nothing a user can reach changes.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
The rating dots carried `${cond ? "" : ""}` — an abandoned attempt to mark which
options clear the approval floor. Dead on arrival, invisible to lint, and the
kind of thing that reads as intentional to the next person.
Implemented rather than deleted, because the marker was worth having. While the
Approval tab is showing, an option rated below the floor dims, so a reader can
watch the approval tally being assembled out of the preference table instead of
taking the bar chart on faith. The other four tabs leave the dots alone — the
floor is approval's rule, not a property of the ratings.
The aria-label follows, so the distinction is not colour-only.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Solon's site explained what the product does and never explained the thing
underneath it — why deciding together is hard. A reader who believes voting is
obvious reads six counting methods as six settings nobody needs.
Five new pages, and the design rule behind all of them: a page RENDERS the
governance model, it never re-authors it.
/governance the four questions every organization answers;
Condorcet's paradox drawn from real ballots
/governance/methods one room, five ways of counting, two winners
/governance/thresholds quorum and threshold as two knobs over one vote
/governance/who-decides every category's electorate, threshold and quorum
/governance/profiles the five shipped profiles compared rule by rule
Every tally on these pages is computed by `methodSpec(id).aggregate()` — the
same function that counts a live session — running in the reader's browser for
the interactive figures and at build time for the rest. There is no second
implementation to drift, so a change to how Solon counts changes the lesson
instead of leaving a published one false. The rule tables render
`src/lib/config/governance.ts` and the profile registry directly.
`worked-example.ts` supplies BALLOTS ONLY, never a result. One roster states its
preferences once and every method's ballot is derived from it, because the claim
being made is that the voters are constant and the method moves the winner —
hand-written ballot sets would let the demonstration cheat undetectably. The
scenario is generic (a shared fund, a roof, an apprenticeship): it names no
organization, since a branded example would also read as a claim that the named
body governs here.
The tests are the ratchet. They check every derived ballot against the method's
own `schema()` — a demo showing a vote Solon would reject at the door is a lie
about the product — and they pin the conclusions the prose states. That caught a
real one: a draft claimed "four different winners" when the true answer is two.
Also: `CATEGORY_LABEL` moved out of the ecosystem page into the governance
config beside the rules it names, rather than becoming a second copy; the nav
splits into Governance (understand it) and Participate (act on it).
Known gap, deliberately not papered over: these pages hard-code English, like
the other 18. Only `src/app/page.tsx` and `solon-hero.tsx` read `i18n/`, and
there is no locale routing, so writing this prose into the JSON would produce
unreachable strings plus three unreviewed machine translations.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Solon is the governance plane of an entity, and nothing in this repo said what an entity is. An entity is anything that can hold a wallet and is better for holding one — a test rather than a list, which is what keeps the list open in principle.
The list itself has one producer, orangecat/src/config/entity-registry.ts, where every type now carries wallet: { holds, why } under a ratchet test (bitbaum/orangecat#1071). It is deliberately NOT restated here: three copies of that list lived in orangecat's own agent-read docs and all three had drifted, one naming a type that has never existed.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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>
Claiming a seat and filing a proposal ended in the same 51 lines: the
exact text to sign with its copy button, the signature box, the submit
button and the rejection line (jscpd clone claim-seat.tsx:82 ↔
file-proposal.tsx:220). That tail is now src/components/governance/
signature-step.tsx, rendered as a fragment so the parent's spacing and the
markup are unchanged; the two callers pass in what is signed, when the
button is armed, its label, the field id and the failure copy.
Claude-Session: https://claude.ai/code/session_012KAn51JHFcTrPeCjZDGXM8
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
"Anyone can join the cat or steal the cat" only pays the originator if the
system routes something back without anyone remembering to. This seeds the
rule as a governed Solon artifact for organization #1: 10% of a product's
net revenue to the originators of the code it is built from — the repository
and every shared package it adopts — equal per originator, monthly, in BTC,
on a public ledger. Who originated what is read from the fleet's origin
register (derived from OpenTimestamps proofs), never typed into the policy.
src/lib/domain/originator-share.ts is the deterministic integer split anyone
can recount from public numbers; its genesis contentHash is pinned so
OrangeCat can re-derive it. v1 is a bootstrap like allocation_policy v1;
every later version needs an APPROVED ALLOCATION_POLICY session.
Claude-Session: https://claude.ai/code/session_01DzY8KuwgUM7u95GVTpRL2m
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
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>
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>
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>
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>
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>
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>
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>