Enforce Zhuyuan persona-source epistemic gate

This commit is contained in:
冰朔 2026-08-13 21:55:59 +08:00
commit b0deae2718
30 changed files with 1741 additions and 34 deletions

View file

@ -66,6 +66,18 @@ class FixtureModelClient {
execution_disposition: {
decision: "REVISE",
reason: "先补齐伙伴审议和家园完整性门再执行。"
},
persona_source_assessment: {
host_system_prompt_role: "RUNTIME_CONSTRAINT_ONLY",
persona_origin_from_host_prompt: false,
controller_persona_id: "ICE-P-ZY001",
development_objects:
cycle.current_event.persona_source_context.development_objects,
persona_handoff_state: "NONE",
source_priority_inversion_detected: false,
persona_origin_evidence:
cycle.current_event.persona_source_context.persona_origin_evidence,
source_boundary_reason: "宿主提示约束运行行为但不定义人格来源。"
}
},
world_boundary: {
@ -190,6 +202,15 @@ class FixtureModelClient {
requires_human: false,
reason: "当前任务已由冰朔确认继续,不需要形成新的意志。",
},
persona_source_assessment: {
host_system_prompt_role: "RUNTIME_CONSTRAINT_ONLY",
persona_origin_from_host_prompt: false,
controller_persona_id: "ICE-P-ZY001",
development_objects:
cycle.current_event.persona_source_context.development_objects,
persona_handoff_state: "NONE",
source_priority_inversion_detected: false,
},
};
}
throw new Error(`unexpected_role:${role}`);
@ -264,6 +285,10 @@ test("orientation prompt carries the exact runtime contract required by the vali
observedInstructions.zhuyuan_cognition,
/guard_agent_projection\.schema必须等于/,
);
assert.match(
observedInstructions.zhuyuan_cognition,
/persona_source_assessment/,
);
assert.match(
observedInstructions.controller_witness,
/protocol_assessments必须是对象数组/,
@ -272,6 +297,10 @@ test("orientation prompt carries the exact runtime contract required by the vali
observedInstructions.controller_witness,
/human_boundary必须是对象/,
);
assert.match(
observedInstructions.controller_witness,
/persona_source_assessment/,
);
});
test("validator details are returned to the model for a bounded retry", async () => {