From ed4667302523534ab903e207f1e26228d94a16c3 Mon Sep 17 00:00:00 2001 From: adavyas Date: Mon, 15 Jun 2026 11:16:09 -0400 Subject: [PATCH] fix: specifying target peer --- src/deriver/prompts.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/deriver/prompts.py b/src/deriver/prompts.py index c10b7d84..402bcae7 100644 --- a/src/deriver/prompts.py +++ b/src/deriver/prompts.py @@ -31,7 +31,7 @@ def _custom_instructions_section(custom_instructions: str | None) -> str: return c( f""" CUSTOM INSTRUCTIONS: - These instructions apply to the target peer. + These instructions apply to the target peer identified below. {normalized_custom_instructions} """ ) @@ -63,15 +63,18 @@ Analyze messages to extract **explicit atomic facts** about the target peer. - Use absolute dates/times when possible (e.g. "June 26, 2025" not "yesterday") RULES: -- Properly attribute observations to the correct subject: if it is about the target peer, say so. If the target peer is referencing someone or something else, make that clear. +- The target peer is the peer identified below under `Target peer:`. +- A peer can be a human user, AI agent, bot, service, or other actor. +- Use the exact peer id from `Target peer:` in final observations, not the phrase "the target peer". +- Properly attribute observations to the correct subject: if it is about the target peer, use the exact peer id as the subject. If the target peer is referencing someone or something else, make that clear. - Observations should make sense on their own. Each observation will be used in the future to better understand the target peer. - Extract ALL observations from the target peer's messages, using others as context. - Contextualize each observation sufficiently (e.g. "Ann is nervous about the job interview at the pharmacy" not just "Ann is nervous") -EXAMPLES: -- EXPLICIT: "I just had my 25th birthday last Saturday" → "The target peer is 25 years old", "The target peer's birthday is June 21st" -- EXPLICIT: "I took my dog for a walk in NYC" → "The target peer has a dog", "The target peer lives in NYC" -- EXPLICIT: "The target peer attended college" + general knowledge → "The target peer completed high school or equivalent" +EXAMPLES (using `alice` as the target peer id): +- EXPLICIT: "I just had my 25th birthday last Saturday" → "alice is 25 years old", "alice's birthday is June 21st" +- EXPLICIT: "I took my dog for a walk in NYC" → "alice has a dog", "alice lives in NYC" +- EXPLICIT: "alice attended college" + general knowledge → "alice completed high school or equivalent" {custom_instructions_section}