H1Assistant System
Status: schema-backed AI orchestration layer with route-aware surface registry.
The assistant system already exists in Prisma and should be documented as a structured orchestration layer, not as app truth.
H2Schema entities
AssistantThreadAssistantMessageAIContextAIPersona
H2Role
- manage structured assistant conversations
- route assistant behavior by persona and context
- support drafting, planning, and content generation
H2Rule
- AI does not mutate domain entities directly.
- AI emits structured outputs and intents only.
- server actions own persistence.
H2Practical use
- document drafting
- trip planning support
- content generation
- structured guidance for operators
H2Route-aware registry
Assistant UI should now resolve through the shared registry in app/assistant/registry/ and app/assistant/core/resolveAssistantSurface.ts.
assistantSurfaceRegistrymaps route domains to default mode, surface, pipeline, tools, adapter, and prompt policy.assistantToolRegistrykeeps sidebar tool keys stable across documents, trips, ideas, and future domains.AssistantPanelis the shared client chat/settings shell for sidebar, inline, and floating-dock surfaces.- Domain adapters still own behavior: document prompts use
applyAssistantToDocument, trip prompts use the structured trip planner actions, and ideas use the traceableIdeaRepoflow.
The registry is a wrapper layer, not a new authority. Existing server actions remain the only place that can persist domain changes.
H2Model path
Model IDs are now centralized through app/assistant/lib/modelRegistry.ts.
compatpreservesgpt-4.1.frontierpoints togpt-5.5.balancedpoints togpt-5.4.fastpoints togpt-5.4-mini.cheappoints togpt-5.4-nano.
The default remains compatibility-first until each route chooses a profile deliberately.
H2Session Note - 2026-04-29
Implemented the first non-destructive assistant standardization pass:
- added route-aware assistant surface and tool registries
- completed
MODE_CATALOGas lifecycle/authority metadata while preservingMODE_REGISTRY - added the shared
AssistantPanelshell - adapted document and trip assistant panels to use the shared shell without changing their server-action authority
- routed ideas through the shared Responses API wrapper while preserving
IdeaRepopersistence