Files
causius/lib/capabilities.ts
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

28 lines
953 B
TypeScript

/**
* What Causius can do, and whether each thing is real today.
*
* The one place a status is decided. Pages name capabilities; they never say
* on their own whether one works, so no page can overstate it (fleet rule:
* nothing is claimed on a page unless it is true today). Moving a line from
* `planned` to `available` is a change to this file, in the pull request that
* makes it true, with a changelog line.
*/
export type CapabilityStatus = "available" | "inDevelopment" | "planned";
export const CAPABILITIES = {
letters: "available",
matters: "available",
approvals: "available",
models: "available",
domains: "available",
marketplace: "available",
formation: "planned",
contracts: "planned",
law: "planned",
firms: "planned",
} as const satisfies Record<string, CapabilityStatus>;
export type CapabilityKey = keyof typeof CAPABILITIES;
export const CAPABILITY_KEYS = Object.keys(CAPABILITIES) as CapabilityKey[];