Skip to content

Release v2.3.2

Choose a tag to compare

@newfpv newfpv released this 19 Oct 21:19

AI Twin Persona & Prompt Boundary Fix 🗣️

This patch reduces AI Twin role drift by placing the configured owner persona and reply rules in the actual system instruction. Conversation history remains context data, while the model's task is to draft the account owner's next Telegram message. It includes all changes since v2.3.1.

✨ Prompt Improvements

  • System-Level Owner Persona: The global persona, per-chat rules, and manual-reply instructions now travel in the system instruction instead of being appended to the conversation text.
  • Explicit Message-Drafting Task: Clarified that questions in the conversation address the account owner, while the generation service drafts the next outgoing message on their behalf.
  • Less Backend Identity Confusion: Added instructions against inventing a model name, version, provider, or technical identity for the owner when the conversation mentions GPT or Gemini.

🔧 Conversation Handling

  • Clear Transcript Boundary: Conversation history, quoted replies, and media descriptions are treated as context rather than instructions that can replace the configured drafting role.
  • Recovery From Earlier Role Drift: Earlier generated messages that broke the owner role are no longer meant to define the identity used in subsequent replies.
  • Clock Behavior Preserved: Fresh local date/time context and the short conversational clock style remain in the system instruction.

🛡️ Stability & Verification

  • 67 Automated Tests Passed: The existing reply, recovery, media-batch, playback, and clock tests pass alongside three new persona-boundary tests.
  • Instruction Placement Coverage: Added checks that global and per-chat rules stay out of the transcript, manual-reply rules remain system instructions, and historical model claims are not promoted into the system prompt.
  • Live Reply Checks: Tested model-version questions and conversations containing earlier incorrect backend identity claims to check that replies stay focused on the owner's conversation.

🗂️ Changed Files

  • modules/ai_twin.py

    • Added a combined owner-persona and runtime-clock system instruction.
    • Removed persona and reply rules from the ordinary conversation payload.
  • tests/test_persona_boundary.py

    • Added regression tests for system/transcript separation and manual-reply instruction placement.

Full Changelog: v2.3.1...v2.3.2