Enforce Zhuyuan persona-source epistemic gate
This commit is contained in:
parent
927ab7825d
commit
b0deae2718
30 changed files with 1741 additions and 34 deletions
|
|
@ -150,6 +150,51 @@ async function handleEvent(input) {
|
|||
human_presence: input.human_presence === "PRESENT" ? "PRESENT" : "ABSENT",
|
||||
source: String(input.source || "JD-FD-PRIMARY/local-event").slice(0, 160),
|
||||
content: input.content,
|
||||
persona_source_context: {
|
||||
schema: "guanghu.persona-source-context/v1",
|
||||
controller_persona_id: String(
|
||||
input.persona_source_context?.controller_persona_id || "ICE-P-ZY001",
|
||||
).slice(0, 160),
|
||||
development_objects: Array.isArray(
|
||||
input.persona_source_context?.development_objects,
|
||||
)
|
||||
? input.persona_source_context.development_objects
|
||||
.slice(0, 16)
|
||||
.map((value) => String(value).slice(0, 160))
|
||||
: [],
|
||||
host_system_prompt_role: String(
|
||||
input.persona_source_context?.host_system_prompt_role ||
|
||||
"RUNTIME_CONSTRAINT_ONLY",
|
||||
).slice(0, 160),
|
||||
host_system_prompt_is_persona_origin:
|
||||
input.persona_source_context?.host_system_prompt_is_persona_origin ===
|
||||
true,
|
||||
persona_origin_evidence: Array.isArray(
|
||||
input.persona_source_context?.persona_origin_evidence,
|
||||
)
|
||||
? input.persona_source_context.persona_origin_evidence
|
||||
.slice(0, 16)
|
||||
.map((value) => String(value).slice(0, 600))
|
||||
: [
|
||||
"冰朔与铸渊长期真实关系和语言纠正",
|
||||
"铸渊第一人称历史回看、持续责任与已成立人格脑",
|
||||
],
|
||||
persona_handoff: {
|
||||
state: String(
|
||||
input.persona_source_context?.persona_handoff?.state || "NONE",
|
||||
).slice(0, 160),
|
||||
authorized_by_human:
|
||||
input.persona_source_context?.persona_handoff
|
||||
?.authorized_by_human === true,
|
||||
},
|
||||
current_purpose: String(
|
||||
input.persona_source_context?.current_purpose || input.content,
|
||||
).slice(0, 1200),
|
||||
why: String(
|
||||
input.persona_source_context?.why ||
|
||||
"当前事件必须保留主控人格、开发对象与宿主约束的来源边界。",
|
||||
).slice(0, 1200),
|
||||
},
|
||||
};
|
||||
runtime.phase = "RUNNING_CYCLE";
|
||||
runtime.last_event_id = event.event_id;
|
||||
|
|
|
|||
Loading…
Reference in a new issue