Prompt Stack
Prompt Stack Assembly
Section titled “Prompt Stack Assembly”Structured observability for system prompt appendage assembly.
Every turn calls BuildSystemPromptWithTrace or BuildSystemPromptWithSplit in internal/agent/prompt/system_builder.go. Telemetry uses prompt_stack.fired and prompt_stack.action slog events plus a process-scoped ring (capacity 12).
Operator surfaces: /prompt-stack, bmo config show-prompt-stack, sidebar Prompt stack, agent tool list_recent_prompt_stack_builds.
For full segment text, use the TUI Context Lineage dialog — not the ring or agent tool JSON.
See also: Prompt Enhancer (user-message context injection).