feat: 自适应支线插入引擎(WIP:scoring/branching 抽取、挂点重定向、10 条支线 JSON、决策落库)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { DimensionTag, FollowUpDimension, IdentityProfile } from './types';
|
||||
import type { ChoiceBehavior, DimensionTag, FollowUpDimension, IdentityProfile } from './types';
|
||||
|
||||
/**
|
||||
* 选择/讲述事件存储(ADR-0004:历史不可涂改)。
|
||||
@@ -17,7 +17,10 @@ export interface StoryEvent {
|
||||
sessionId: string;
|
||||
ts: number;
|
||||
chapterId: string;
|
||||
kind: 'choice' | 'narration' | 'profile' | 'followup' | 'followup_skipped' | 'consent';
|
||||
kind: 'choice' | 'narration' | 'profile' | 'followup' | 'followup_skipped' | 'consent' | 'branch_inserted' | 'evidence_insufficient';
|
||||
branchId?: string;
|
||||
confidence?: number;
|
||||
behavior?: ChoiceBehavior;
|
||||
/** 选择点 ID,如 C1-03;consent 事件固定为 'CONSENT' */
|
||||
pointId: string;
|
||||
dimensions: DimensionTag[];
|
||||
@@ -29,6 +32,8 @@ export interface StoryEvent {
|
||||
/** narration 事件:选中的场景变体(情绪签名 → variantId) */
|
||||
variantId?: string;
|
||||
emotionSignature?: string;
|
||||
/** C3-02 幻境:只记录路径,不保留在室内说的话 */
|
||||
narrationMode?: 'farewell_done' | 'farewell_partial' | 'exit_room';
|
||||
/** followup / followup_skipped 事件:追问针对的缺失维度 */
|
||||
followUpDimension?: FollowUpDimension;
|
||||
/** 讲述/追问的转写文本(Web Speech API 只给文本,不留音频,符合 ADR-0004 即焚原则;沉默为 null) */
|
||||
|
||||
Reference in New Issue
Block a user