fix: the program picks one answer skeleton from the question, so the same question keeps its format (BUG-2045)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
This commit is contained in:
@@ -27481,3 +27481,15 @@
|
||||
- 验证与防复发:`frontend/tests/annual-report.test.tsx` 钉住新句,并断言三种范围的说明里都不再出现原来的两种说法。
|
||||
- 关联记录:BUG-1920、BUG-2037、BUG-2043。
|
||||
- 修复版本:`claude/annual-start-note-2044`。
|
||||
|
||||
## BUG-2045 | 同一个问题两次回答格式不同(一次分节加小标题,一次全是段落)
|
||||
|
||||
- 状态:fixed-pending-verify(待 staging 实测)。
|
||||
- 首次发现 / 最近更新:2026-11-20 / 2026-11-20。
|
||||
- 触发与现象:产品负责人 2026-11-20 走查:「我和我父母之间的关系怎么样」问两次,一次是「和母亲之间 / 和父亲之间 / 接下来这段时间 / 能做的几件事」四个小标题,一次全是段落、每段加粗开头。两次内容一致(母亲:第 4 宫火星,关心带管控;父亲:第 9 宫土星,话少规矩多;到 2027 年 5 月中母亲这条线占精力、和父亲更沉默)。
|
||||
- 根因:可见写法原文是「用户列了几项、或要核对时,可用 ### 短标题或分条;一般问题不用标题」,回合形状里也是「可以用」,「父母」算不算列了几项由模型自己定;回答这一步开着思考,温度不起作用,降温不是办法。
|
||||
- 修复(负责人 2026-11-20 同意):程序按这一轮问题的文字选骨架,写进首轮的每轮指令(追问不加):点名两个以上的人或领域并用「和、与、跟、、」连起来(「父母」算母亲和父亲)→ 每项一节 ### 短标题、按用户的顺序、每节首句加粗,之后一节写时间,最后「能做的几件事」列表;是非题 → 不用标题,第一句答是或不是;时间题 → 不用标题,按时间先后一段一个时间段;其余 → 不用标题,段落、首句加粗。关键词表保守,拿不准归最后一种。可见写法改为「标题、分节和列表按本轮指令里的骨架写,骨架没要的,一般问题不用标题」,回合形状同步;只改这一句,不删其它规则。页面显示时,正文只有一个结尾「能做的几件事」标题时显示成一句,编号列表显示成圆点列表;存下的文字不变。回测脚本同样附上骨架行。
|
||||
- 验证(负责人批准的 48 份,DeepSeek flash,Obama、Zidane 两张公开盘 × 父母 / 是非 / 年运时间 / 财运四类问题 × 每题 3 份,改前改后各 24 份;每份回答含 2–3 次模型请求):同一题 3 份格式一致,改前 2/8,改后 8/8(只靠骨架是 5/8,剩下 3 题的差别是把结尾写成 ## 标题或用编号,由显示统一)。点名几项的 6 份都是 4 节,标题措辞略有不同(「和母亲」「母亲」「和母亲的关系」)。内容口径:卡片事实核对不符 0 / 0;判断依据里带内部字眼的行 5 → 3;平均字数 2253 → 2540。首字时间与思考 token 记录为以后讨论推理强度的基线:改前首字中位数 37.6 秒(20–56),改后 43.1 秒(18–69);回答这一步思考 token 中位数 1766 → 1557。
|
||||
- 防复发:新增 `tests/consult-answer-skeleton-2045.test.ts`;`consult-named-and-structure-1647`、`consultation-voice-contract`、`consult-single-pass-answer-20260927`、`consult-answer-language-2041` 按新值更新并注明原因。
|
||||
- 关联记录:BUG-1647、BUG-2041;产品负责人 2026-11-20 走查第 5 条。
|
||||
- 修复版本:`claude/qa-skeleton-2045`,待 staging。
|
||||
|
||||
@@ -75,7 +75,7 @@ import {
|
||||
import type { ResolvedLanguageModel } from "../../src/mastra/model.ts";
|
||||
import { createConsultationPlan } from "../../src/lib/consultation-plan.ts";
|
||||
import { consultationUserTurnContent } from "../../src/lib/consultation-session-history.ts";
|
||||
import { consultAnswerLanguageLine, consultationAnswerAcceptanceFailure, consultationContinueMessages, consultationMissingAuditTableMessages, natalUserTurnShape, type ConsultationAnswerMode } from "../../src/lib/consultation-thinking-plan.ts";
|
||||
import { consultAnswerLanguageLine, consultAnswerSkeletonLine, consultationAnswerAcceptanceFailure, consultationContinueMessages, consultationMissingAuditTableMessages, natalUserTurnShape, type ConsultationAnswerMode } from "../../src/lib/consultation-thinking-plan.ts";
|
||||
import { consultationFactRepairMessages, type FactGuardUnit } from "../../src/lib/consultation-answer-fact-guard.ts";
|
||||
import type { InternalWordUnit } from "../../src/lib/consultation-internal-words.ts";
|
||||
import { internalWordRewriteChunks, rewriteInternalWordLinesText } from "../../src/lib/consultation-internal-word-rewrite.ts";
|
||||
@@ -356,7 +356,7 @@ function userTurn(question: string, followUp?: FollowUp) {
|
||||
currentTime: routeCurrentTime(REQUEST_TIME),
|
||||
// natalUserTurnShape reads the stored history, as route.ts does: a prior answer -> follow-up shape.
|
||||
// BUG-2041: the route appends the reply-language line after the turn shape.
|
||||
instruction: `${routeToolInstruction}${natalUserTurnShape({ history: historyOf(followUp), answerMode: ANSWER_MODE })}${consultAnswerLanguageLine(question)}`,
|
||||
instruction: `${routeToolInstruction}${natalUserTurnShape({ history: historyOf(followUp), answerMode: ANSWER_MODE })}${followUp ? "" : consultAnswerSkeletonLine(question)}${consultAnswerLanguageLine(question)}`,
|
||||
question,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -83,6 +83,7 @@ import {
|
||||
natalUserTurnShape,
|
||||
answerModeTurnLine,
|
||||
consultAnswerLanguageLine,
|
||||
consultAnswerSkeletonLine,
|
||||
CONSULTATION_ANSWER_MODES,
|
||||
consultationAnswerMode,
|
||||
natalConsultationThinkingPlan,
|
||||
@@ -1286,11 +1287,13 @@ export async function POST(request: Request) {
|
||||
: "";
|
||||
// BUG-2041: the reply language follows the user's own words this turn.
|
||||
const languageLine = consultAnswerLanguageLine(visibleQuestion);
|
||||
// BUG-2045: a first answer's skeleton is chosen from the question's words, so the same question keeps one format.
|
||||
const skeletonLine = followUpTurn ? "" : consultAnswerSkeletonLine(visibleQuestion);
|
||||
const modeInstruction = `${consultationMode === "general_no_birth_time" || (consultationMode === "declared_birth_window" && generalDailyContext)
|
||||
? generalNoMinuteInstruction(Boolean(generalDailyContext))
|
||||
: consultationMode === "declared_birth_window"
|
||||
? declaredWindowInstruction()
|
||||
: `${natalInstruction}${adoptedRangeNote}${scenarioOpening}`}${languageLine}`;
|
||||
: `${natalInstruction}${adoptedRangeNote}${scenarioOpening}`}${skeletonLine}${languageLine}`;
|
||||
const consultationBaseMessages = (overflow: boolean) => {
|
||||
const tail = overflow ? lastConsultationPair(history) : history;
|
||||
const mapped = tail.map((message) => message.role === "user"
|
||||
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
answerUsedBookLibrary,
|
||||
consultScopeLine,
|
||||
withNodeFirstMention,
|
||||
withSteadyLayout,
|
||||
withoutExternalVerificationRows,
|
||||
type ConsultAnswerBasisRow,
|
||||
} from "@/lib/consult-answer-basis";
|
||||
@@ -139,7 +140,7 @@ export function ChatMessageContent({
|
||||
// 产品 2026-11-16:正文之后的「## 判断依据」一节折叠显示,流式输出时也先收起。
|
||||
// 流式输出中,写到一半的 Markdown(没合上的 **、还没成表的表头)先不当源码显示。
|
||||
const judgment = splitJudgmentBasis(streaming ? streamingMarkdownView(storedText) : storedText);
|
||||
const visibleText = withNodeFirstMention(withoutExternalVerificationRows(judgment.body));
|
||||
const visibleText = withSteadyLayout(withNodeFirstMention(withoutExternalVerificationRows(judgment.body)));
|
||||
// BUG-2007(2026-11-19):深度解读审计表末尾不再补 BUG-1834 的未核验说明。
|
||||
const text = visibleText;
|
||||
const split = splitSpokenAnswerAndTechniqueAudit(text);
|
||||
|
||||
@@ -65,6 +65,20 @@ export function withNodeFirstMention(text: string): string {
|
||||
/** 占星师 11-19 第二次答复:等级和规则状态不给用户看,需要时说这一句。 */
|
||||
export const YOGA_UNDECIDED_FOR_READER = "这一点目前还不能明确判断";
|
||||
|
||||
/**
|
||||
* BUG-2045 (24 份验证,2026-11-20):骨架定下来以后,剩下的差别是个别回答把结尾的「能做的几件事」写成 ## 标题、
|
||||
* 或用 1. 2. 编号。页面显示时统一:正文只有这一个标题时把它变成一句「能做的几件事:」;编号列表显示成圆点列表。
|
||||
* 有多个小标题(点名了几项)的回答不动它的标题。存下来的文字不变。
|
||||
*/
|
||||
const ACTION_HEADING_RE = /^#{1,3}[ \t]*((?:接下来)?(?:能做|可以做|具体可以做|可以去做|能去做)[^\n#]{0,12}?)[::]?[ \t]*$/mu;
|
||||
|
||||
export function withSteadyLayout(body: string): string {
|
||||
let text = body;
|
||||
const headings = text.match(/^#{1,3}[ \t]+\S/gmu) ?? [];
|
||||
if (headings.length === 1) text = text.replace(ACTION_HEADING_RE, (_match, title: string) => `${title}:`);
|
||||
return text.replace(/^([ \t]*)\d{1,2}[.、))][ \t]+/gmu, "$1- ");
|
||||
}
|
||||
|
||||
export type ConsultAnswerBasisStatus = "done" | "conditional";
|
||||
|
||||
export const CONSULT_ANSWER_BASIS_STATUS_LABELS: Readonly<Record<ConsultAnswerBasisStatus, string>> = {
|
||||
|
||||
@@ -572,7 +572,7 @@ export function natalAnswerShapeBody(mode: ConsultationAnswerMode = DEFAULT_CONS
|
||||
// prose shape the plain VISIBLE VOICE describes.
|
||||
if (mode === "plain") {
|
||||
// 原值到「一般问题不用标题。」为止;新值加上判断依据一节;原因:产品 2026-11-16。
|
||||
return "这是本会话的首轮回答:按系统提示里 VISIBLE VOICE 的写法回答用户这句话,写成人话;用户列了几项要分别讲时可以用 ### 短标题或分条,一般问题不用标题。正文直接下判断:用户问能不能、会不会、是不是的时候,第一句先答能或不能、会或不会(拿不准就说多半能、多半不会),再说条件;说人直接说母亲、父亲,不写盘能分出什么、分不出什么,不写关于这次解读本身的话,每段的盘面原因只用一句;讲时间只说日期和那段时间会怎样,大运、小运、Narayana 这些名字只进判断依据。正文写完后,最后写「## 判断依据」一节。";
|
||||
return "这是本会话的首轮回答:按系统提示里 VISIBLE VOICE 的写法回答用户这句话,写成人话;标题和分节按本轮骨架写,一般问题不用标题。正文直接下判断:用户问能不能、会不会、是不是的时候,第一句先答能或不能、会或不会(拿不准就说多半能、多半不会),再说条件;说人直接说母亲、父亲,不写盘能分出什么、分不出什么,不写关于这次解读本身的话,每段的盘面原因只用一句;讲时间只说日期和那段时间会怎样,大运、小运、Narayana 这些名字只进判断依据。正文写完后,最后写「## 判断依据」一节。";
|
||||
}
|
||||
return "这是本会话的首轮回答:按系统提示里 VISIBLE VOICE 的写法回答用户这句话——深度解读,按它的正文结构完整写,开头一节是简短的结论(第一句直接回答这个问题,时间范围紧随其后),然后证据,最后展开结论,Technique Audit Table 和参数写进正文。";
|
||||
}
|
||||
@@ -806,3 +806,59 @@ export function consultAnswerLanguageLine(question: string): string {
|
||||
return consultQuestionLanguage(question) === "en" ? CONSULT_ENGLISH_ANSWER_LINE : "";
|
||||
}
|
||||
|
||||
/**
|
||||
* BUG-2045 (产品负责人 2026-11-20 走查:同一个问题两次,一次分节加小标题、一次全是段落). The written rule said headings
|
||||
* "may" be used when the user lists items, so the model chose. The program now picks one skeleton from the
|
||||
* question's own words and states it in the turn; the voice says to follow it. The keyword lists are kept
|
||||
* narrow: when unsure, the plain single-topic skeleton.
|
||||
*/
|
||||
export type ConsultAnswerShape = "parts" | "yes_no" | "timing" | "single";
|
||||
|
||||
const PART_GROUPS: ReadonlyArray<readonly [string, RegExp]> = [
|
||||
["母亲", /母亲|妈妈|我妈/u],
|
||||
["父亲", /父亲|爸爸|我爸/u],
|
||||
["兄弟姐妹", /兄弟|姐妹|哥哥|弟弟|姐姐|妹妹/u],
|
||||
["孩子", /孩子|子女|儿子|女儿/u],
|
||||
["伴侣", /伴侣|老公|老婆|丈夫|妻子|对象|男朋友|女朋友/u],
|
||||
["事业", /事业|工作|职业/u],
|
||||
["感情", /感情|婚姻|恋爱|姻缘/u],
|
||||
["财运", /财运|钱|收入|财富/u],
|
||||
["健康", /健康|身体/u],
|
||||
["学业", /学业|学习|考试/u],
|
||||
];
|
||||
const PART_JOIN = /和|与|跟|、|以及|还有|及/u;
|
||||
const YES_NO = /能不能|会不会|是不是|要不要|可不可以|该不该|适不适合|有没有|行不行|好不好|能否|是否|吗[??!!。]*\s*$/u;
|
||||
const TIMING = /什么时候|何时|哪一年|哪年|几月|哪个月|多久|接下来[^,。??]{0,4}(?:一年|几年|半年|几个月|这段时间)|未来[^,。??]{0,4}(?:一年|几年|十二个月|12\s*个月)|今年|明年|这一年/u;
|
||||
|
||||
/** The parts a question names, in the user's order (「父母」 is 母亲 and 父亲). */
|
||||
export function consultQuestionParts(question: string): string[] {
|
||||
const text = question.replace(/父母|爸妈/gu, "母亲和父亲");
|
||||
const found = PART_GROUPS
|
||||
.map(([name, pattern]) => ({ name, at: text.search(pattern) }))
|
||||
.filter((item) => item.at >= 0)
|
||||
.sort((a, b) => a.at - b.at);
|
||||
if (found.length < 2) return [];
|
||||
// Two named things count as parts only when the question joins them (「事业和感情」), not when one merely
|
||||
// qualifies the other (「工作上的收入」).
|
||||
const between = text.slice(found[0]!.at, found[found.length - 1]!.at);
|
||||
return PART_JOIN.test(between) ? found.map((item) => item.name) : [];
|
||||
}
|
||||
|
||||
export function consultAnswerShape(question: string): ConsultAnswerShape {
|
||||
if (consultQuestionParts(question).length >= 2) return "parts";
|
||||
if (YES_NO.test(question.trim())) return "yes_no";
|
||||
if (TIMING.test(question)) return "timing";
|
||||
return "single";
|
||||
}
|
||||
|
||||
export function consultAnswerSkeletonLine(question: string): string {
|
||||
const shape = consultAnswerShape(question);
|
||||
if (shape === "parts") {
|
||||
const parts = consultQuestionParts(question);
|
||||
return ` 本轮骨架:用户点名了${parts.length}项(${parts.join("、")}),每项一节,用 ### 短标题、按这个顺序;每节第一句加粗结论;之后一节写时间;最后「能做的几件事」用列表。`;
|
||||
}
|
||||
if (shape === "yes_no") return " 本轮骨架:是非题,不用标题;第一句直接答是或不是;后面写成段落,每段第一句加粗;最后「能做的几件事」用列表。";
|
||||
if (shape === "timing") return " 本轮骨架:时间题,不用标题;按时间先后,一段写一个时间段,每段第一句加粗那段的结论;最后「能做的几件事」按时间段用列表。";
|
||||
return " 本轮骨架:不用标题;写成段落,每段第一句加粗;最后「能做的几件事」用列表。";
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ export const productConversationVoice = `VISIBLE VOICE
|
||||
- 用词:说人直接说母亲、父亲、伴侣、孩子、上司,讲原因时也写「和母亲之间」「父亲对你」,称呼后面不接别的字来代指这段关系;规则和卡上的字眼不照搬进回答,同一个形容词不在几段里反复当结论用;不用含糊的比喻和半截话代替判断,一句话要说出谁、怎么样、结果是什么,读的人能照原意复述出来。正文不加括号标注,依据性质只写在判断依据里。讲时间直接说日子(到 2027 年 5 月前)和这段时间会怎样,不写大运、小运、细运、Narayana 这些名字,也不交代哪套算法算不算确认,这些只进「判断依据」。
|
||||
- 用户在问题里划了范围(只看哪些、不看哪些)时照他划的写;路线要求必查的其他层只在后台看。没用的部分说一句原因,和补什么信息就能加进来。
|
||||
- 全文最后写「## 判断依据」:正文每个主要判断一条,「- **判断短句**:盘面依据。(依据性质)」。依据写实际位置(星、星座、宫、度数、分盘、大运或行运的起止),这一节可以写技法和分盘的标准名。括号里只从这几样里选适用的,几样并写时用「;」隔开:几种方法一致、只有一种方法支持、出生时间稍有出入就会变、相关分盘还没核实、不同方法对这段时间说法不同;会改变结论的条件、适用的时间范围和方法分歧写进同一个括号,说成「出生时间早几分钟,这一条要换」这样。括号里不写别的说明,不写字母等级和英文标签。没用来下结论的技法、候选格局、定不下的层不列。卡上有 classical_texts 时,相关的判断引一条,写书名和它的大意。这一节不写表格、参数、技法清单和内部字段名;不讲盘的回答不写这一节。
|
||||
- 写成段落,段落之间空一行。用户列了几项、或要核对时,可用 ### 短标题或分条;一般问题不用标题。用户要几条(「给三条」)、或有三个以上候选时间窗时用列表,每条先一句做法、再一句为什么适合你。首轮通常三到六段,讲清楚为止;同一件事只说一遍。讲时间时最多三件天象或运期变化,由近到远。
|
||||
- 写成段落,段落之间空一行;标题、分节和列表按本轮指令里的骨架写,骨架没要的,一般问题不用标题。用户要几条(「给三条」)、或有三个以上候选时间窗时用列表,每条先一句做法、再一句为什么适合你。首轮通常三到六段,讲清楚为止;同一件事只说一遍。讲时间时最多三件天象或运期变化,由近到远。
|
||||
- 结尾给两三件能去做的具体事,跟着前面的判断走;问时间的按时间段给,每段写起止和做什么。
|
||||
- 读心不是每次都有:盘面和用户的问法都指向同一件心事时,答完之后才用「可能」「多半」说一句;拿不准就不写,用户要客观时不读;读别人的心要有盘上依据。不把用户的问题改写成「你其实想要的是……」。
|
||||
|
||||
|
||||
@@ -21,7 +21,8 @@ test("any Han character means Chinese; Latin words without Han mean English", ()
|
||||
test("the route appends the language line to every mode's instruction", () => {
|
||||
const route = readFileSync(new URL("../src/app/api/consult/route.ts", import.meta.url), "utf8");
|
||||
assert.match(route, /const languageLine = consultAnswerLanguageLine\(visibleQuestion\);/);
|
||||
assert.match(route, /: `\$\{natalInstruction\}\$\{adoptedRangeNote\}\$\{scenarioOpening\}`\}\$\{languageLine\}`;/);
|
||||
// BUG-2045: the skeleton line sits before the language line.
|
||||
assert.match(route, /: `\$\{natalInstruction\}\$\{adoptedRangeNote\}\$\{scenarioOpening\}`\}\$\{skeletonLine\}\$\{languageLine\}`;/);
|
||||
});
|
||||
|
||||
test("an English note about birth time shows as written; other English notes stay hidden", () => {
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
// BUG-2045 (产品负责人 2026-11-20 走查): the same question gets the same answer format. The program picks the skeleton.
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
import test from "node:test";
|
||||
|
||||
import { consultAnswerShape, consultAnswerSkeletonLine, consultQuestionParts } from "../src/lib/consultation-thinking-plan.ts";
|
||||
|
||||
test("four shapes from the question's words; unsure means the single-topic skeleton", () => {
|
||||
const cases: Array<[string, string, string[]]> = [
|
||||
["我和我父母之间的关系怎么样", "parts", ["母亲", "父亲"]],
|
||||
["我的事业和感情接下来会怎样", "parts", ["事业", "感情"]],
|
||||
["明年换工作能成吗", "yes_no", []],
|
||||
["我会不会离婚", "yes_no", []],
|
||||
["接下来一年我最该注意什么", "timing", []],
|
||||
["我什么时候适合结婚", "timing", []],
|
||||
["我的财运怎么样", "single", []],
|
||||
["我和父亲的关系怎么样", "single", []],
|
||||
["工作上的收入", "single", []],
|
||||
];
|
||||
for (const [question, shape, parts] of cases) {
|
||||
assert.equal(consultAnswerShape(question), shape, question);
|
||||
assert.deepEqual(consultQuestionParts(question), parts, question);
|
||||
}
|
||||
});
|
||||
|
||||
test("each skeleton is one line with the ending list; only parts use headings", () => {
|
||||
assert.match(consultAnswerSkeletonLine("我和我父母之间的关系怎么样"), /用户点名了2项(母亲、父亲),每项一节,用 ### 短标题/);
|
||||
for (const question of ["明年换工作能成吗", "接下来一年我最该注意什么", "我的财运怎么样"]) {
|
||||
const line = consultAnswerSkeletonLine(question);
|
||||
assert.match(line, /不用标题/);
|
||||
assert.match(line, /最后「能做的几件事」/);
|
||||
}
|
||||
assert.match(consultAnswerSkeletonLine("明年换工作能成吗"), /第一句直接答是或不是/);
|
||||
});
|
||||
|
||||
test("the route adds the skeleton to a first answer only", () => {
|
||||
const route = readFileSync(new URL("../src/app/api/consult/route.ts", import.meta.url), "utf8");
|
||||
assert.match(route, /const skeletonLine = followUpTurn \? "" : consultAnswerSkeletonLine\(visibleQuestion\);/);
|
||||
});
|
||||
|
||||
test("the page shows a lone closing-actions heading as a line and numbered items as bullets", async () => {
|
||||
const { withSteadyLayout } = await import("../src/lib/consult-answer-basis.ts");
|
||||
assert.equal(withSteadyLayout("正文。\n\n## 能做的几件事\n\n1. 先做甲。\n2. 再做乙。"), "正文。\n\n能做的几件事:\n\n- 先做甲。\n- 再做乙。");
|
||||
const parts = "### 母亲\n\n甲。\n\n### 父亲\n\n乙。\n\n### 能做的几件事\n\n- 丙。";
|
||||
assert.equal(withSteadyLayout(parts), parts, "several headings stay");
|
||||
});
|
||||
@@ -15,8 +15,10 @@ test("user-named houses and charts keep their numbers and codes, with no stand-i
|
||||
assert.doesNotMatch(bullet, /那一宫|那一格|那颗星/);
|
||||
});
|
||||
|
||||
test("multi-part questions may use short ### subheadings; one-part questions stay prose (BUG-1647)", () => {
|
||||
assert.match(productConversationVoice, /用户列了几项、或要核对时,可用 ### 短标题或分条;一般问题不用标题/);
|
||||
// 原值: natalAnswerShapeBody() / 新值: natalAnswerShapeBody("plain")(专业模式用 ## 节结构) / 原因: 产品 2026-11-07 占星师方案:专业模式默认、完整运行 skill
|
||||
assert.match(natalAnswerShapeBody("plain"), /用户列了几项要分别讲时可以用 ### 短标题或分条,一般问题不用标题/);
|
||||
// BUG-2045 原值:「用户列了几项、或要核对时,可用 ### 短标题或分条;一般问题不用标题」(声音)与「用户列了几项要分别讲时可以用 ### 短标题或分条,
|
||||
// 一般问题不用标题」(回合形状)/ 新值:按本轮骨架写,骨架由程序按问题文字选 / 原因:产品负责人 2026-11-20 走查,同一问题两次格式不同。
|
||||
test("headings follow this turn's skeleton, chosen by the program (BUG-1647 → BUG-2045)", () => {
|
||||
assert.match(productConversationVoice, /标题、分节和列表按本轮指令里的骨架写/);
|
||||
assert.doesNotMatch(productConversationVoice, /可用 ### 短标题/);
|
||||
assert.match(natalAnswerShapeBody("plain"), /标题和分节按本轮骨架写,一般问题不用标题/);
|
||||
});
|
||||
|
||||
@@ -298,7 +298,8 @@ test("the writing instructions travel with the user turn the loop sees", async (
|
||||
// 新值: 用户轮写「不写标题」并指回 VISIBLE VOICE
|
||||
// 原因: BUG-1540(产品 2026-11-04 拍板):写作规则叠到约 1.75 万字、形状在口吻 / 合同 / 用户轮说了三遍、示例句被照抄(「实际是哪一种,告诉我一句」),压成 VISIBLE VOICE 一份短说明,只留红线;用户轮只指回它
|
||||
// 原值:「写成几段人话,不写标题」;新值:「写成人话;用户列了几项要分别讲时可以用 ### 短标题或分条,一般问题不用标题」;原因:BUG-1647 用户列了几项时允许 ### 小标题或分条(盲评:十年规划题、原生家庭题各 8/9 更好读),一般问题不用标题(盲评:一般问题加标题后「像人在聊」输给原版)。
|
||||
assert.match(writerPrompt, /VISIBLE VOICE 的写法回答用户这句话,写成人话;用户列了几项要分别讲时可以用 ### 短标题或分条,一般问题不用标题/);
|
||||
// BUG-2045 原值「…用户列了几项要分别讲时可以用 ### 短标题或分条,一般问题不用标题」/ 新值「…标题和分节按本轮骨架写,一般问题不用标题」/ 原因:同一问题格式要稳定(负责人 2026-11-20)
|
||||
assert.match(writerPrompt, /VISIBLE VOICE 的写法回答用户这句话,写成人话;标题和分节按本轮骨架写,一般问题不用标题/);
|
||||
// The removed compose prompt claimed a finished calculation it never saw.
|
||||
assert.doesNotMatch(writerPrompt, /服务器计算已经完成。不要再调用排盘工具/);
|
||||
});
|
||||
|
||||
@@ -92,7 +92,8 @@ test("VISIBLE VOICE says how to write a good answer: the user's own structure, r
|
||||
assert.match(voice, /段落之间空一行/);
|
||||
// 原值:/首轮不写 ## 标题/;新值:/一般问题不用标题/ + ### 小标题;原因:BUG-1647 用户列了几项时允许 ### 小标题或分条(盲评:十年规划题、原生家庭题各 8/9 更好读),一般问题不用标题(盲评:一般问题加标题后「像人在聊」输给原版)。
|
||||
assert.match(voice, /一般问题不用标题/);
|
||||
assert.match(voice, /### 短标题或分条/);
|
||||
// BUG-2045 原值 /### 短标题或分条/ / 新值:分节和标题按本轮骨架(程序按问题选,点名几项时用 ### 短标题)/ 原因:同一问题格式要稳定(负责人 2026-11-20)
|
||||
assert.match(voice, /标题、分节和列表按本轮指令里的骨架写/);
|
||||
assert.match(voice, /首轮通常三到六段,讲清楚为止/);
|
||||
assert.match(voice, /同一件事只说一遍/);
|
||||
assert.match(voice, /结尾给两三件能去做的具体事,跟着前面的判断走;问时间的按时间段给,每段写起止和做什么/);
|
||||
|
||||
Reference in New Issue
Block a user