3 Commits
Author SHA1 Message Date
CatoandClaude Sonnet 5.5 69944583e0 fix(security): harden redaction and the agent, make the security copy true (#20)
* fix(security): harden redaction and the agent, and make the security copy true

Redaction: titles, initials, ALL CAPS, street/PO-box forms, phone/IBAN variants,
bounded quantifiers (no quadratic backtracking), token guard.
Agent: untrusted-data wrapping, strict dates, write caps, address guard,
per-matter turn lock. Copy: deadline dates readable, detection not perfect.

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

* fix(security): keep the log-content sentence

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-12 09:31:04 -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