Align domain documentation with the mattpocock-skills v1.3.1 format. - GLOSSARY.md (Italian) replaces CONTEXT.md and describes the implemented system (Phase F1–F8, Gate, Reviewer widget). The unimplemented 2026-08-23 modular-workflow vocabulary (Workflow Kernel, Stage, Module outcome, Extension point, Question Admission, ...) is removed. - docs/adr/ renumbered chronologically, in English, with status/date frontmatter. Retroactive decisions recovered from deleted specs and the Evidence ADRs deleted ina54d4769are restored. - docs/agents/domain.md regenerated; references updated across docs. New ADRs: 0001–0016 retroactive decisions, 2026-06-25 → 2026-08-20 0017–0024 Evidence ADRs of 2026-08-24 (old 0001–0008, deleted ina54d4769) Renumbered ADRs (old → new): 0001 → 0025 postgres-metadata-catalog 0002 → 0026 workspace-database-secret-references 0003 → 0027 installation-local-database-bindings 0004 → 0028 fastify-kysely-metadata-catalog 0005 → 0029 hard-delete-catalog-tables-during-synchronization 0006 → 0030 separate-physical-and-logical-relationships 0007 → 0031 durable-authoritative-schema-synchronization 0008 → 0032 allow-manual-catalog-metadata-cleanup 0009 → 0033 use-one-sequential-description-generation-run 0010 → 0034 allow-bounded-real-source-samples-for-description-generation 0011 → 0035 gate-source-samples-with-a-sensitive-data-flag 0012 → 0036 use-the-catalog-as-the-logical-relationship-authority 0013 → 0037 use-one-installation-model-catalog-with-runtime-projections 0014 → 0038 assess-sensitive-columns-locally-from-source-content 0015 → 0039 use-progressive-sampling-for-sensitive-columns 0016 → 0040 use-postgres-metadata-for-all-core-consumers 0017 → 0041 separate-reference-vectors-from-runtime-memory 0018 → 0042 use-postgres-for-memory-and-qdrant-for-retrieval 0019 → 0043 author-evidence-in-app... → maintain-local-evidence-with-external-editors 0020 → 0044 unify-administration-pages-and-use-namespaced-routes 0021 → 0045 separate-shell-modes-and-replaceable-portal-adapter 0022 → 0046 separate-ui-locale-from-session-interaction-language 0023 → 0047 separate-delivery-operations-from-finalized-sessions Commits and Gitea issues before this commit cite the old numbers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4.8 KiB
status, date
| status | date |
|---|---|
| accepted | 2026-09-02 |
Use one Installation Model Catalog with runtime projections
ThothII currently declares model availability independently in installation
metadataGeneration, Pi configuration, and workspace llm_policy and embedding settings. The
Installation Model Catalog in thothii-installation.yaml becomes the sole authored authority for
session, metadata-generation, and embedding models, including their allowed usages and per-usage
defaults. Workspace descriptors retain database identity and scope plus Evidence concerns, but no
model policy or selection; installation-local Database Bindings remain separate from them.
Pi, the backend metadata-generation helper, and the embedding runtime consume generated Model Runtime Projections of that catalog. Runtime Model Selection stores only a canonical catalog model identity and use-specific controls such as thinking level; endpoint, provider, capabilities, and credential references remain catalog facts, while secret values remain in protected secret stores. The metadata-generation helper continues to use LiteLLM independently of Pi, as established by ADR-0033: unifying model declaration does not unify execution lifecycles.
The migration is intentionally fail-closed. Workspace schema v4 removes llm_policy and the
entire redundant semantic_index; collection identity is derived from the workspace identity,
while vector-store and embedding facts come from the installation. A deterministic migration
rewrites existing descriptors. The
installation loader replaces metadataGeneration with modelCatalog and rejects the legacy form
with an actionable migration error rather than keeping two live sources. Existing Pi
models.json and enabled-model settings become generated artifacts and are never edited as
authoritative configuration.
Catalog identities use the canonical provider/model form; runtime-specific upstream names are
adapter facts, not additional ThothII identities. Installation descriptors use schema version 2
and model-free workspace descriptors use schema version 4. Removing a model never substitutes it
inside an existing session: an unresolvable resume fails explicitly. Published semantic indexes
record the embedding identity and dimensions that produced them and require explicit
reprocessing when those facts change.
Model eligibility is expressed by the presence of a session or metadataGeneration block,
without a duplicate usages list. The installation declares one active embedding identity and its
dimensions rather than a selectable embedding catalog. Runtime projections are regenerated
deterministically and atomically at start, so they require no persisted digest and are excluded
from installation backups; restore regenerates them from the validated installation descriptor.
A provider owns one endpoint, one explicit authentication mode, and only the runtime adapters it needs. Authentication is either a protected secret-environment reference, Pi-owned authentication for session-only built-in models, or explicit keyless operation for an explicit endpoint; models cannot override it. Pi built-in model facts are not copied into the installation. A session default and the single embedding definition are required, while metadata generation and its default may be omitted together. The schema deliberately excludes unused abstractions and future properties until runtime behavior requires them.
The catalog session default replaces PI_PROVIDER, PI_MODEL, and persisted installation model
defaults as configuration sources. A user or session selection is only a canonical catalog
reference, and an existing session keeps that reference without silently switching models. A
generated Compose projection supplies the catalog-derived embedding values and projection mounts
to every affected service, so neither the base Compose files nor operator.env repeat model facts.
Workspace v3-to-v4 migration is a deterministic removal of llm_policy and semantic_index.
Installation migration instead inspects the legacy installation metadata block and both Pi model
files: it emits a v2 candidate only when their identities and settings can be reconciled without
guessing. Conflicts produce an actionable report and leave every source untouched.
Considered Options
- A separate catalog file referenced by the installation was rejected because it adds path, permission, backup, and atomic-update coordination without a current need for cross-installation sharing.
- Pi
models.jsonwas rejected as the authority because it is a Pi-specific projection that does not express all ThothII usages, built-in providers, metadata-generation controls, or embedding facts. - Transitional dual reading was rejected because it would preserve the configuration discrepancy this decision is intended to eliminate.