Skip to content

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 CORE
    • PROTOCOL RULES
    • RUNTIME DIRECTIVES (includes Identity Contract block)
    • RUNTIME CONTEXT
    • AVAILABLE TOOLS
  • Scope controls:
    • identity:off / identity:on
    • identity:allow_generic_self_reference
    • identity: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


ASO Universal Consciousness System Documentation