refactor: use factual-content directive instead of persona preservation

Replace "Preserve persona, character, and speaking-style cues" with
"Focus on factual content: what was discussed, decisions made, and
current state" to prevent the summarizer from injecting persona
descriptions into the summary (wasting tokens and potentially
conflicting with system prompt persona).
This commit is contained in:
keepitmello 2026-02-07 00:44:22 +09:00 committed by Josh Lehman
parent 5f4c0ea664
commit 36a7e793b6
No known key found for this signature in database
GPG Key ID: D141B425AC7F876B
2 changed files with 3 additions and 3 deletions

View File

@ -15,8 +15,8 @@ describe("DEFAULT_COMPACTION_INSTRUCTIONS", () => {
expect(DEFAULT_COMPACTION_INSTRUCTIONS).toContain("primary language");
});
it("contains persona preservation directive", () => {
expect(DEFAULT_COMPACTION_INSTRUCTIONS).toContain("persona");
it("contains factual content directive", () => {
expect(DEFAULT_COMPACTION_INSTRUCTIONS).toContain("factual content");
});
it("does not exceed MAX_INSTRUCTION_LENGTH (800 chars)", () => {

View File

@ -12,7 +12,7 @@
*/
export const DEFAULT_COMPACTION_INSTRUCTIONS =
"Write the summary body in the primary language used in the conversation.\n" +
"Preserve persona, character, and speaking-style cues.\n" +
"Focus on factual content: what was discussed, decisions made, and current state.\n" +
"Keep the required summary structure and section headers unchanged.\n" +
"Do not translate or alter code, file paths, identifiers, or error messages.";