Commit Graph
16 Commits
Author SHA1 Message Date
CatoandClaude 4be58da713 feat(markets): Switzerland and Liechtenstein only, one record per country (#28)
The owner narrowed the focus: no US market for now. Markets are now a
config (lib/jurisdictions.ts): each country is one record with its regions,
interface languages and a note for the agent; MARKETS lists the ones that
are switched on. Adding a country is that record, its words under
Home.where.<code>, and its code in MARKETS. A test fails if a market lacks
its words in any language.

The agent's country rules moved out of its prompt into each market's note,
read for the matter's own jurisdiction. The front page's markets and kicker
are generated from MARKETS. The US stays pickable under Elsewhere.

The Spanish interface existed for the US market and goes with it (git
history keeps it); a letter can still be translated into Spanish.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-21 07:45:38 +02:00
CatoandClaude Opus 5.5 5193b47e2a feat: a new front page, Switzerland, Liechtenstein and the US, five languages (#27)
* wip: front page redesign, CH/LI/US markets, five locales (translations in progress)

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

* i18n: German and French for the new front page; one word under budget

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

* i18n: Spanish, and the sample case in Italian and Spanish

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

* wip: Italian (in progress)

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

* feat: a new front page, Switzerland, Liechtenstein and the US, five languages

Front page (inspired by what Harvey and Laine do well, for a person rather
than a firm): an invented letter worked through as an animation (the name
hidden, the deadline with its source, a draft, the person's decision), two
calendars (days without, minutes with), the anonymisation drawn, an honest
comparison with a chatbot and a lawyer, markets counted from the data, the
common problems linking straight into a matter. Headlines in sentence case
with an italic accent (one edit in theme.css). The OrangeCat section is gone:
no account elsewhere is needed, and the page no longer suggests one.

Markets: Liechtenstein and the fifty states join the cantons; one grouping
(JURISDICTION_GROUPS) feeds every picker; the agent keeps cantonal, state
and federal law apart and Liechtenstein's own order distinct.

Languages: Italian and Spanish, whole (site, accounts, mail, sample). The
locale list is one SSOT; three hard-coded copies are gone. A letter can be
translated into nineteen languages, the same list helpers choose from.

Sign-up asks who the account is for (needs help / helps others).

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-21 07:40:35 +02:00
CatoandClaude 21c446931f feat(matters): start from a common problem (#26)
Six workflows (debt collection notice, rent increase, tax assessment,
dismissal, insurance refusal, founding an association) on the start screen.
Each tells the agent what to establish and what to draft, and the person
what to have ready. No law lives in them: a test refuses any digit in a
brief, so deadlines and articles are always researched and cited. The
matter keeps its workflow (sealed, optional), and Find a helper opens on
its area.

Roadmap: ask across a matter's documents as a table, watch a matter's
rules for change, flat-priced helper payments (no fee sharing).


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-21 05:54:01 +02:00
CatoandClaude e3dcbda881 feat(helpers): a directory of helpers, lawyers checked and still pseudonymous (#25)
- Helpers list themselves (AI service, legal assistant, licensed lawyer) under
  a name or pseudonym; the same account keeps matters of its own. Directory
  search and filters through searchkit and listkit, with the typo suite.
- A lawyer's admission is submitted privately (evidence sealed per
  credential), checked by a staff reviewer, and published as an SD-JWT signed
  with Ed25519: the place in clear, the legal name only as a salted digest.
  Key at /.well-known/jwks.json; anyone can check at /verify. A lawyer is
  listed only where verified.
- An owner asks a helper about a matter, with or without their personal
  details; the request is previewed exactly as it will be read. Accepted, the
  helper becomes a participant; anonymisation is applied in the store, so no
  route can forget it. A lawyer hands over the checked name with proof.
  Ending it removes access in the same transaction.
- Reviewers are staff/admin accounts, granted by the Grant role workflow.
- Who may do what is lib/professions.ts, the one domain file, so Diplodoctor
  reuses the engine by changing it.
- Fixes: the account menu label template; one site URL instead of three, with
  a dev-only origin so local sign-in works.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-21 05:48:41 +02:00
CatoandClaude 476a157cd8 feat(accounts): Causius has its own accounts; OrangeCat is one way in, not the only one (#23)
Email and password, a sign-in link, passkeys, two-step codes and (where
configured) the shared sign-in and OrangeCat, all from @bitbaum/accountkit/auth.
Matters made while OrangeCat was the only way in are re-keyed to the account the
same person signs in with. Live check and provisioning updated.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-15 09:20:46 -07:00
CatoandClaude 1f15478e27 feat: a look of its own (ink on paper, light and dark) and much less to read (#22)
One file, app/theme.css, now decides the whole look: light by default, a deep
ink-indigo accent on warm paper, near-square corners, headlines set as capitals
in the shared display serif. Display font, headline case/tracking/weight and
action case are knobs there, so "more gothic" is a one-file edit. Dark follows
the device or a header toggle, set before first paint by a nonce'd boot script.
lib/theme.test.ts enforces WCAG AA for text, accent, on-accent label and status
colours on every surface in both modes.

Copy: the home page goes from about 980 words to about 240 (capabilities list
and identity statement moved to /platform); the quick check, case page, helpers,
platform and security pages were cut, in en/de/fr. lib/copy-budget.test.ts holds
each page to a budget.

Nav contract: language links, theme toggle and footer links are all at least
44x44; nothing overflows at 390/834/1440 in en/de/fr, light and dark.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-14 11:19:48 -07:00
CatoandClaude 67d583434e feat(matters): one message box with voice, photos, files and a model choice (#21)
Starting a matter and writing in one use the fleet's chatkit Composer: a
microphone (server transcription, disclosed on /security), a camera/photos/files
menu, in-browser covering of photos before they are read, PDFs and text files,
and a model picker that starts the free chain at the chosen model.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-12 09:42:55 -07:00
CatoandClaude Opus 5.5 35faee8843 Agent: set the matter up, cite every rule, answer in the reader's language (#19)
* Agent: set the matter up first, cite every rule, answer in the person's language

From the first real-model run: it found the right deadline but answered a
question written in English in German (the letter's language), wrote ß, cited
the federal act for a cantonal assessment without a source number, and left
the matter untitled.

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

* Agent answers in the reader's interface language

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-11 13:45:33 -07:00
CatoandClaude Opus 5.5 4a610f612d Search queries keep their placeholders; a real-model agent check (#18)
* Provision: record 0000_init in the shared deploy's schema ledger

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

* Search queries keep their placeholders; a real-model agent check that runs on the box

The agent restored placeholders in every tool's arguments, so a search query
the model wrote as "[NAME-1] …" went to the search engine with the name in
it. Arguments are now restored only for tools that write into the matter;
web search, page reads and domain lookups go out as the model wrote them.

live/agent.live.ts runs one turn through the real free chain on PGlite and
asserts a recorded deadline and that no request carried the name; the Agent
check workflow runs it on the box, where the keys are.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-11 13:31:58 -07:00
CatoandClaude Opus 5.5 40a5c4b05d Matters, the fleet design system and a technical narrative (#10)
* Matters: encrypted, agentic legal workspace behind OrangeCat sign-in

A matter is sealed per matter (AES-256-GCM data key under CAUSIUS_MASTER_KEY).
The agent works it with tools (search, read, deadlines, tasks, drafts,
approvals); every personal detail is swapped for a placeholder before a model
sees it, and the person's account name is always one of them. The database in
the clear holds no name, message, deadline or document.

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

* Fleet design system, a technical narrative, one account across the fleet, domain checks

- @bitbaum/design-tokens replaces the bespoke paper-and-ink theme; Solon's
  grammar (kicker, headline-caps, btn-frame) for every page, pinned dark.
- New Platform, Security and Ecosystem pages; the home page rebuilt around what
  works today (lib/capabilities.ts is the one place a status is decided).
- Sign-in and sign-up routes hand straight to OrangeCat; the account menu and
  the ecosystem page link the rest of the fleet, read from the fleet map.
- The agent can check domain names with the registries over RDAP.
- The i18n parity test reads ICU properly (select branches, apostrophes).

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

* Provision matters on the host: database, OrangeCat client, runtime env

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-11 12:23:14 -07:00
Claude 4fe0b47672 Anonymise letters in the browser, harden headers, fix English 500s
- Anonymisation: names, addresses, AHV, IBAN, phone, e-mail, birth dates and
  labelled reference numbers are replaced with placeholders before a letter
  leaves the browser; the reader sees and can adjust every replacement and
  preview what is sent. The browser restores the values in the result.
- Photo cover tool: black out areas of a page; boxes are burnt into the
  pixels before upload.
- Anonymised export for helpers; pseudonymity for clients, assistants and
  lawyers in the helper rules (lawyer named to a client on engagement).
- Security: per-request nonce CSP (strict-dynamic, connect-src 'self',
  frame-ancestors 'none'), HSTS, nosniff, no-referrer, Permissions-Policy,
  COOP/CORP, no-store on the API, no X-Powered-By.
- Fix: unprefixed English pages were rewritten by next-intl to
  https://localhost behind the box's proxy and answered 500. Every language
  is now prefixed; / redirects by browser language.
- AGENTS.md: finish to production; security and privacy stay strict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012EJFFkKhmaVnnH8E3mHnaZ
2026-10-11 19:21:39 +02:00
CatoandClaude Fable 5.1 1ccc37cdea Build out Causius: cases, own model, helpers, EN/DE/FR (#7)
* Build out Causius: case intake, case file, helper marketplace

Replace the day-zero page with the product: a landing page, letter intake
with env-gated AI analysis, a case view (deadline, checklist, translations,
draft reply), browser-only case storage with export/import, and the helper
marketplace rules for legal assistants and licensed lawyers.

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

* Put Causius on the fleet's stack and its three planes

- AI: replace the hand-rolled single-vendor fetch with @bitbaum/ai-kit
  complete() over the shared free chain; no pinned model id. Add the
  fleet's own-model flow (ai-kit byok + probe), key kept in the browser.
- Validation with zod, rate limits with limitkit, tests with Vitest.
- Identity rendered from the Loki fleet map; ROADMAP.md and CHANGELOG.md
  as the public record, shown through bip-kit.
- Helpers live on OrangeCat as services; OrangeCat and Solon links appear
  only when the fleet map reports the profiles exist.
- Nav contract: routes constant, aria-current, 44px targets. Beta label.
- CI and auto-merge from the current site template; TypeScript 6,
  ESLint 10, Node 24; AGENTS.md from the fleet template.

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

* Speak English, German and French; make intake work end to end

- next-intl with locale routing (en unprefixed, /de, /fr), every string in
  the message catalogues, a parity test, Swiss German spelling.
- The analysis is written in the reader's language.
- Several pages per letter; photos are shrunk in the browser so a phone
  picture fits.
- The deadline is shown with the sentence it was read from, and the model
  is told never to compute a date the letter does not state.
- /api/health, and the intake page says up front what the free models can
  do. `pnpm run check:analyze` runs the sample letter through a real model.
- A down fleet map no longer stalls on-demand pages.
- Refuse the two build scripts next-intl brought, so installs stay clean.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-11 18:59:28 +02:00
CatoandClaude Opus 5.5 33c9355056 fix(copy): pipeline receipt says what CI actually runs (#6)
The receipt said 'tested on every change', but the repo has no tests:
ci.yml runs type-check, lint and build. Say exactly that.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 10:08:45 -07:00
CatoandClaude Fable 5.1 200223f1f3 chore: rename FleetCrown to Loki (#2)
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
5 files changed, 17 insertions(+), 17 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:22:15 -07:00
CatoandClaude Opus 5 e9a1823a23 feat: a real day-zero page, instead of a note to the developer (#1)
This site shipped to a public address with "This is a new site scaffolded by
new-site.sh" as its front page — a message addressed to whoever built it rather
than to whoever it was built for. Diplodoctor had already replaced that with a
proper day-zero page a day earlier, in its own repository, so the template still
carried the developer note and the next site inherited it. That page is now the
template, and this is the template applied here.

What it says instead: the site is live and waiting for its first page, here are
the receipts (host, repository, pipeline, certificate — each checkable, none of
them a promise), one primary action into FleetCrown where it can actually be
built, and three plain steps describing how that works.

The FleetCrown project link and the feedback widget degrade rather than lie:
both read env vars this site does not have yet, so "Build this site" points at
the FleetCrown project list and the "change it from this page" paragraph does not
render at all. Provisioning them needs the production FleetCrown database, which
a laptop checkout does not reach — its DATABASE_URL is a local dev database, so
attempting it from here creates the project in the wrong place while looking
like it worked.


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

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 16:16:34 -07:00
Cato cf97b95c46 feat: scaffold Causius 2026-09-10 22:48:08 +02:00