* feat(intake): PDF on the quick check, and a deadline eval set
- /api/extract-pdf reads a PDF's text layer on the server (unpdf, %PDF magic
check, 10 MB, 10 pages, text capped at MAX_TEXT). Nothing stored or logged.
Scans answer scanned_pdf; the page then offers the photo picker.
- One file input takes a PDF or photos; the text flows into the letter box and
the existing redaction and analyze path. Messages in en, de, fr, it.
- eval/letters: 17 synthetic Swiss letters (de, fr, en) with expected
deadlines; eval/pdf: text and image-only PDFs; `pnpm eval:deadlines` scores
stored replies offline, or live with --url on the free chain.
- Docs: README quick-check/matter line, ROADMAP ticks, CHANGELOG 2026-12-02,
.env.example host path.
Co-Authored-By: Claude <noreply@anthropic.com>
* feat(eval): optional private letter set, scored separately
--private <dir> / CAUSIUS_EVAL_PRIVATE_DIR (default
/opt/causius/shared/eval-private). Absent: "private set: not present,
skipped". Present: "private: N/M (x%)" and pass/fail by position only; no ids,
names, quotes or dates are printed. eval-private/ and eval/private/ ignored.
Co-Authored-By: Claude <noreply@anthropic.com>
* feat(eval): precision, recall and false-invention rate; answer key for the private set
Most letters correctly have no deadline, so each is scored true negative,
false invention, true positive, miss or wrong date. Ranges accept any date in
them. Private set reads answers.json and letters/*.txt and prints only counts,
metrics and pass/fail by position. Four more synthetic traps: open-ended
suspension risk, amount with no date, spend-cap reset, 2-3 working days.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Causius joins group chats in OrangeCat's companions home over the same
contract Diplodoctor already serves: POST /api/ask with messages, a
locale and an optional BYOK key, answering with text and reply chips.
Legal information, not advice; free links from the analyzer; rate
limits askFree (30/h) and askOwn (200/h) in lib/limits.ts.
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
Co-authored-by: Claude <noreply@anthropic.com>
The quick check lived only in the browser; its next step was retyping.
Now a card under the deadline opens it as a sealed matter: the deadline
item with the sentence it was read from, the letter as the first
document, the draft reply as a draft, the place read from the check's
words (jurisdictionFromText: cantons by any of their names, markets
only), and every value the check hid from the model as a word to hide.
Signed out, the button goes through sign-in and back to the check.
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud
Co-authored-by: Claude <noreply@anthropic.com>
* feat(matters): ask the same questions of every document
Up to three questions across a matter's documents, answered as a table
with each answer's quoted passage. A quote not found in the document is
dropped, never shown. The table is saved as a draft. Personal data is
redacted before the model sees it and restored after.
Also: a one-letter account name no longer makes matter creation fail
(wordsToHide trims and drops words shorter than two letters).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud
* fix(agent): a deadline given in the answer must be recorded
The real-model Agent check saw the model compute the tax objection
deadline correctly (4 November 2026) and never call record_deadline, so
no reminder was set. An answer naming a deadline date while the matter
holds none now gets the one correction, like a narrated call.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud
* fix(agent): a model that writes its calls out hands the retry on
Agent check run on b33cf5d: a text-protocol model in the free chain wrote
update_matter and note_fact as JSON blocks and, corrected, answered
'(called web_search, web_search)'. Correcting the same model with no
format to use cannot work. Now a narrated answer moves the serving link
to the back of the chain for the rest of the turn, and the correction
alone carries TEXT_TOOL_PROTOCOL_HINT (in the system prompt it broke the
native callers). Calls written as JSON naming the tool count as narrated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud
* fix(agent): narration left after the correction is never stored
Agent check on 7decfe8: the final round offers no tools, so a text-protocol
model's TOOL lines there were never parsed and became the stored answer;
a bare '(called note_fact)' was stored likewise. Such an answer is now
stripped of TOOL lines, call notes and fenced JSON naming a tool; if
nothing remains, the existing 'could not finish' message is shown. The
live test logs which model served each turn.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud
* fix(agent): two corrections, each answered by the next model
Agent check on 8639cc8: groq gpt-oss-20b computed the tax deadline,
was told to record it, and answered again without recording it; the
rent answer claimed '(recorded)' with nothing recorded. A model that
ignored the rule ignores its correction too. Every correction now moves
the serving link to the back of the chain, and a turn gets up to two.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud
* fix(agent): eight rounds, so a late answer can still be corrected
Agent check on 8f903eb: qwen3.8-27b researched for four rounds, its
answer arrived too late for a correction, and the final tool-less round
produced only narration, so the person saw 'could not finish'.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud
* test(live): trace every round of a real-model turn
runTurn takes an optional onRound callback (served link, calls asked
for, what the answer check found, the text's start). The live check
prints it, so a failing run shows what each model did, not only the end.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud
* test: the answer check corrects an unrecorded deadline; live trace printed after the turn
A scripted-model test proves the loop: a deadline answered without
record_deadline is sent back, recorded, then answered. The live check
now collects its round trace and prints it with the other lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud
* fix(agent): a search outage cannot eat the turn
Agent check on 2952096, traced: every web_search came back empty, so
gpt-oss-120b searched six rounds running and the answer arrived in the
last, uncorrectable round. Search is now withdrawn for the turn after an
outage or two empty searches, the model is told to answer from the
matter and name what it could not check, and a missing source is no
longer 'corrected' by asking for a search that cannot happen: the answer
is stored marked unverified. The live check logs each search backend's
outcome.
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>
* 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>
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>
- 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>
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>
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>
* 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>
* 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>
* 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>