Files
ryan ef3a438048
CI / backend (pull_request) Successful in 41s
CI / frontend (pull_request) Failing after 7s
CI / backend (push) Successful in 42s
CI / frontend (push) Failing after 7s
Answer concisely by default and drop prompt text the tool schemas repeat
The local model is decode-bound, so output length drives latency. The system
prompt asked for "thorough, detailed answers" and to "think things through",
which lengthened both answers and reasoning. It now leads with the answer and
expands only on request. Per-integration tool lists that duplicated the bound
tool docstrings collapse to one paragraph of routing and duplicate-avoidance
rules. The prompt drops from about 1,446 to 897 tokens and stays static, so
the llama-server prompt cache still hits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:40:17 -04:00

21 lines
839 B
Python

from blueprints.conversation.prompts import SIMBA_SYSTEM_PROMPT
def test_prompt_defaults_to_concise_answers():
assert "concisely by default" in SIMBA_SYSTEM_PROMPT
assert "thorough, detailed answers" not in SIMBA_SYSTEM_PROMPT
# Reasoning tokens cost as much decode latency as answer tokens on this
# hardware, so the prompt must not nudge toward more deliberation.
assert "think things through" not in SIMBA_SYSTEM_PROMPT
def test_prompt_keeps_key_behavioral_rules():
for phrase in [
"you MUST use the simba_search tool",
"cite the provided Citation URLs with Markdown links",
"never invent source IDs or references",
"search before creating to avoid duplicates",
"Use save_user_memory when the user explicitly asks",
]:
assert phrase in SIMBA_SYSTEM_PROMPT