Prompt System
Last Updated: 2026-02-28
Content-Type: Explanation
Audience: All
Overview
The Prompt System manages dynamic prompt templates that control AI instructions and behavior. It supports protocol-based prompts, prompt composition, and various prompt types for different use cases.
Key Features
- Database-Stored Templates - Dynamic prompt management
- Protocol-Based Prompts - Context-aware prompts
- Prompt Composition - Multi-part prompt assembly
- Analyze Layer Prompts - Specialized analysis prompts
- Tool Calling Prompts - Tool execution prompts
- Identity Pack Layering - Stable core identity + protocol-safe expression rules
Identity Pack v1 (Runtime Contract)
Identity behavior is now a first-class prompt layer and is not delegated to ad-hoc protocol prose.
- Canonical identity source:
backend/src/config/identityPack.ts - Runtime assembly location:
backend/src/services/aso/promptBuilder.service.ts - Layering order:
SYSTEM COREPROTOCOL RULESRUNTIME DIRECTIVES(includes Identity Contract block)RUNTIME CONTEXTAVAILABLE TOOLS
- Scope controls:
identity:off/identity:onidentity:allow_generic_self_referenceidentity:chinatsu_anchor_on/identity:chinatsu_anchor_off
For production routing protocols, treat identity scope flags as policy configuration (via protocol scope) rather than code edits.
Documentation Structure
- Tutorials - Learning guides
- How-to Guides - Task instructions
- Reference - API reference
- Explanation - Architecture
Related Documentation
- Protocol Routing - Protocol integration
- Enterprise Prompt System Architecture - Full end-to-end prompt architecture (current system)