fix(fam-edge): validate_schema 透传 person_appearances - events 清洗白名单原只留 timestamp/description/people/is_attention,丢弃了特征字段导致特征链路断

This commit is contained in:
ericwyuan
2026-08-21 18:30:06 +08:00
parent 68337f81c4
commit 677c5bdcc7

View File

@@ -89,6 +89,8 @@ def validate_schema(data: dict) -> dict:
"timestamp": str(ev["timestamp"]),
"description": str(ev["description"]),
"people": [str(p) for p in people if p],
# 人物结构化特征uid/features/action——保留透传供人物合并/特征卡
"person_appearances": ev.get("person_appearances"),
"is_attention_event": bool(ev.get("is_attention_event", False)),
})
data["events"] = cleaned