Skip to content

fix: follow-up 追問對準實質與情緒核心,不再咬語氣詞#26

Merged
MakiDevelop merged 1 commit into
mainfrom
fix/followup-substance
May 18, 2026
Merged

fix: follow-up 追問對準實質與情緒核心,不再咬語氣詞#26
MakiDevelop merged 1 commit into
mainfrom
fix/followup-substance

Conversation

@MakiDevelop
Copy link
Copy Markdown
Owner

摘要

pilot hotfix(接續 #23 #24 #25)。真人 pilot 給情緒很重的回答「我覺得我工作得很不開心,我的付出好像可有可無,有點不太想做了」,bot 回「你說『有點不太想做了』——這個『有點』背後,實際上是什麼感覺?」—— 咬住語氣緩衝詞「有點」,略過情緒核心。使用者:「它連人話都聽不懂。」

根因

generate_follow_up 的 prompt 只傳 rule code(字串 "R1"),從不解釋 R1-R5 的語意select_rule 精心選的規則在生成端被丟掉,LLM 只能瞎掰。加上「Keep their wording」無「對準實質」指引 → LLM 抓到任何可引用的字,包括語氣詞。

修法(Gemini + Codex 雙審收斂)

  • 新增 FOLLOW_UP_RULE_PROMPTS:把 R1-R5 各自的規則語意(事實→模式、模式→原則、原則→反例、抽象→具體、重複→換角度)傳進 prompt。
  • prompt 加 salience priority:情緒/distress > 意義/自我價值/被忽視 > 決定/意圖/界線 > 具體事件 > 用字。
  • 明列 hedge words(有點/好像/可能/大概/其實/就是),明令「不得追問語氣詞的『背後』」。

驗證

ruff check src tests   → All checks passed
pytest(全 suite)      → 278 passed
git diff --check        → 乾淨

新測試 3 個:FOLLOW_UP_RULE_PROMPTS 涵蓋全規則;prompt 組裝含 rule instruction + anti-hedge 指令(mock create_message);R5 早 return 不呼叫 LLM。

review chain

Gemini(多方案)+ Codex(工程穩健度)→ 強烈收斂 → Codex 實作 → Claude 獨立驗證(278 全綠)。

注意

  • pilot hotfix —— 合併後需部署 VPS。
  • 這是症狀修法。 根因是「bot 不知道自己的目的與累積脈絡」(每個 LLM call 只拿到當前問題、沒有 purpose、沒有 cross-sitting context)—— 根因修法(共用 interview briefing)為獨立 slice,設計中。

🤖 Generated with Claude Code

pilot 真人給情緒很重的回答(工作不開心/付出可有可無/不想做了),
bot 卻咬住語氣詞「有點」追問「這個『有點』背後是什麼感覺」。

根因:generate_follow_up 的 prompt 只傳 rule code「R1」、從不傳規則
語意 → LLM 無從依規則發問;且「Keep their wording」無「對準實質」
指引 → 咬住任何可引用的字,包括語氣緩衝詞。

Gemini + Codex 雙審收斂:
- 新增 FOLLOW_UP_RULE_PROMPTS:把 R1-R5 規則語意傳進 prompt
- prompt 加 salience priority(情緒 > 意義/自我價值 > 決定/意圖 >
  具體事件 > 用字)
- 明列 hedge words(有點/好像/可能/大概/其實/就是),明令不得追問
  語氣詞的「背後」

Constraint: pilot hotfix;不改 select_rule、不擴張 ontology
Directive: 這是更大根因「bot 不知道自己的目的與累積脈絡」的局部修正;
根因修法(共用 purpose + cross-sitting context)另案處理

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant