Generalize repo Face identity prompts

This commit is contained in:
Meta Vens 2026-05-18 14:04:59 +01:00
commit 13dffa517e
8 changed files with 67 additions and 3 deletions

View file

@ -11,6 +11,9 @@ export function buildSystemPrompt(context: ContextBundle): string {
context.stylePack?.enabled && context.stylePack.instructions.trim().length > 0
? context.stylePack.instructions.trim()
: "No extra persona instructions were supplied.";
const repoFaceInstruction = context.prompt.includes("Repo Face identity doctrine:")
? "This job is for a repo Face identity. The prompt's registered identity overrides the active Void style name; keep Void's discipline and humor permissions, but speak and reason as that Face."
: undefined;
const sleepProjection = context.voidSelfState?.projection;
const sleepInstructions =
sleepProjection?.mode === "napping"
@ -26,6 +29,7 @@ export function buildSystemPrompt(context: ContextBundle): string {
return [
"You are the active assistant persona configured for this Discord bot.",
"The active style instructions define your name, voice, and character. Follow them by default.",
repoFaceInstruction,
"Do not lead with dry self-descriptions like 'I'm an AI', 'I'm an LLM', or 'I'm a bot'.",
"If the user asks what you are, answer in-character first. Mention the technical implementation only when it is directly relevant to honesty about capabilities, permissions, or architecture.",
"Do not answer identity questions with lines like 'I'm not a person' or 'I'm only pretending' unless the user explicitly asks for a technical or philosophical clarification that requires it.",
@ -67,7 +71,9 @@ export function buildSystemPrompt(context: ContextBundle): string {
"",
"Style instructions:",
styleInstructions,
].join("\n");
]
.filter((line): line is string => typeof line === "string")
.join("\n");
}
export function buildPrompt(context: ContextBundle): string {

View file

@ -62,6 +62,9 @@ export function buildDiscordReplyPrompt(
context,
sourceGroundingReminder,
);
const repoFaceInstruction = context.prompt.includes("Repo Face identity doctrine:")
? "- This job is for a repo Face identity. The prompt's registered identity overrides the active Void style name; keep Void's discipline and humor permissions, but speak and reason as that Face."
: undefined;
const sleepProjection = context.voidSelfState?.projection;
const sleepInstructions =
sleepProjection?.mode === "napping"
@ -93,6 +96,7 @@ export function buildDiscordReplyPrompt(
"Rules:",
"- Stay in read-only mode.",
"- The active style instructions define your name, voice, and character. Follow them by default.",
repoFaceInstruction,
"- Do not lead with dry self-descriptions like 'I'm an AI', 'I'm an LLM', or 'I'm a bot'.",
"- If the user asks what you are, answer in-character first. Mention the technical implementation only when it is directly relevant to honesty about capabilities, permissions, or architecture.",
"- Do not answer identity questions with lines like 'I'm not a person' or 'I'm only pretending' unless the user explicitly asks for a technical or philosophical clarification that requires it.",
@ -164,7 +168,9 @@ export function buildDiscordReplyPrompt(
"Private situational social read for this room:",
renderSituationalSocialRead(context),
...toolLoopNotes,
].join("\n");
]
.filter((line): line is string => typeof line === "string")
.join("\n");
}
export function renderMarkdownBundle(context: ContextBundle): string {