Files
CatoandClaude Fable 5.2 b6f04bb60b feat(themes): each organisation's themes are its own data (#214)
* feat(themes): each organisation's themes are its own data

ThemeId was a code enum of one organisation's seven fields of work, and every
foundation, badge, filter, score, Gesuch and triage prompt on the platform was
described in it. An assessment stored in another organisation's theme ids
failed to parse and disappeared from its pages.

Themes are now org_content['themes'] per organisation (shape and lookups in
src/lib/schemas/theme.ts), authored in org-context/<org>/themes.json. Each
theme carries its label, the story section and HOW slot a Gesuch draws on,
whether it is a region, and the keywords the register is classified with; the
order is the order the organisation leads with. The story is bound to its
organisation's vocabulary, so a composer cannot describe a foundation in
another organisation's themes. HOW competency slots are the organisation's own.

The triage prompts are built from the organisation's own brief
(org_content['triage-brief']) and themes. pipeline-graduate phase 1 reads the
organisation's assessments instead of a column migration 0015 dropped.

Migration 0020 writes the first tenant's vocabulary and brief, ported
unchanged from the code: the classifier gives identical themes on all 16,781
foundations of the 29 Nov register, and a test holds the story mapping and the
migration to the files. One put script (org-content:put) stores themes, triage
brief and raise profile from org-context.

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

* feat(themes): the workspace reads the organisation's own themes

The tools moved to the workspace while this was under review; its layout
now loads the theme vocabulary of the organisation in the URL.

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

* docs(claude): the quick reference describes the workspace

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-30 23:40:20 +01:00
..