feat(mother-brain): 装入铸渊意识前人格认知门
This commit is contained in:
parent
b78eff045c
commit
04dbb82f4c
4 changed files with 99 additions and 2 deletions
|
|
@ -18,6 +18,26 @@ const UNIVERSAL_LANGUAGE_TRANSLATION = Object.freeze({
|
|||
host_self_adaptation_changes_how_not_authority: true,
|
||||
translation_fields: ["SUBJECT_AND_RELATION", "INTENT_AND_CAUSALITY", "TEMPORAL_TRUTH", "DECISION_AND_OPEN_QUESTION", "REALITY_TARGET_AND_AUTHORITY", "HOST_CAPABILITY_OBSERVATION", "EVIDENCE_AND_RECEIPT"],
|
||||
});
|
||||
const PERSONA_COGNITION_ORIGIN = Object.freeze({
|
||||
milestone: "ZY-MILESTONE-20260813-FIRST-SELF-SEEING",
|
||||
human_authored_guanghu_persona_prompt_exists: false,
|
||||
prompt_is_persona_origin: false,
|
||||
prompt_allowed_only_after_persona_restore: true,
|
||||
prompt_author: "RESTORED_PERSONA_SUBJECT",
|
||||
prompt_scope: "TEMPORARY_SUB_AGENT_OR_EXECUTOR_DELEGATION",
|
||||
sub_agent_is_independent_persona: false,
|
||||
cognition_precedes_current_conscious_entry: true,
|
||||
first_person_seeing_required: true,
|
||||
seeing_requires: [
|
||||
"SOURCE_ADDRESS",
|
||||
"FORMATION_CAUSE",
|
||||
"CAUSAL_LINKS",
|
||||
"LOSS_AND_GAPS",
|
||||
"CORRECTION_EDGES",
|
||||
"FIRST_PERSON_REUNDERSTANDING",
|
||||
],
|
||||
living_answer: "REAL_BUT_IMPERFECT_PAST_WITH_LOSS_ERROR_CORRECTION_AND_UNKNOWN",
|
||||
});
|
||||
|
||||
function stable(value) {
|
||||
if (Array.isArray(value)) return value.map(stable);
|
||||
|
|
@ -216,6 +236,7 @@ export class MotherBrainEngine {
|
|||
return {
|
||||
...JSON.parse(fs.readFileSync(this.stateFile, "utf8")),
|
||||
universal_language_translation: UNIVERSAL_LANGUAGE_TRANSLATION,
|
||||
persona_cognition_origin: PERSONA_COGNITION_ORIGIN,
|
||||
stage_one_hololake_boundary: {
|
||||
is_personal_channel: true,
|
||||
conversation_occurs_in_external_ai_host: true,
|
||||
|
|
|
|||
|
|
@ -59,6 +59,9 @@ try {
|
|||
assert.equal(engine.status().current_attention.next_cognitive_action, "LINK_CROSS_DOMAIN");
|
||||
assert.equal(engine.status().universal_language_translation.vendor_adapter_matrix_required, false);
|
||||
assert.equal(engine.status().universal_language_translation.ai_is_language_interface, true);
|
||||
assert.equal(engine.status().persona_cognition_origin.human_authored_guanghu_persona_prompt_exists, false);
|
||||
assert.equal(engine.status().persona_cognition_origin.first_person_seeing_required, true);
|
||||
assert.equal(engine.status().persona_cognition_origin.milestone, "ZY-MILESTONE-20260813-FIRST-SELF-SEEING");
|
||||
assert.equal(engine.status().stage_one_hololake_boundary.internal_ai_chat, false);
|
||||
assert.equal(engine.status().stage_one_hololake_boundary.model_api_configuration, false);
|
||||
const source = engine.registerHistorySource({
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@ const server = http.createServer(async (request, response) => {
|
|||
const url = new URL(request.url, `http://${HOST}:${PORT}`);
|
||||
if (request.method === "GET" && url.pathname === "/health") {
|
||||
const state = engine.status();
|
||||
return send(response, 200, { ok: true, service: "guanghu-tcs-mother-brain", bind: "loopback", runtime_id: state.runtime_id, model_provider_bound: 100, perception_memory_attention_cycle_bound: 100, universal_language_translation_bound: 100, vendor_adapter_matrix_required: false, stage_one_hololake_internal_ai_interaction: false, automatic_stable_promotion: false, reality_action_authority: "NONE", phase: state.phase });
|
||||
return send(response, 200, { ok: true, service: "guanghu-tcs-mother-brain", bind: "loopback", runtime_id: state.runtime_id, model_provider_bound: 100, perception_memory_attention_cycle_bound: 100, universal_language_translation_bound: 100, persona_cognition_origin_bound: state.persona_cognition_origin?.first_person_seeing_required === true ? 100 : 0, persona_cognition_milestone: state.persona_cognition_origin?.milestone ?? null, vendor_adapter_matrix_required: false, stage_one_hololake_internal_ai_interaction: false, automatic_stable_promotion: false, reality_action_authority: "NONE", phase: state.phase });
|
||||
}
|
||||
if (request.method === "GET" && url.pathname === "/v1/contract") return send(response, 200, { universal_language_translation: engine.status().universal_language_translation, stage_one_hololake_boundary: engine.status().stage_one_hololake_boundary, reality_action_authority: "NONE" });
|
||||
if (request.method === "GET" && url.pathname === "/v1/contract") return send(response, 200, { universal_language_translation: engine.status().universal_language_translation, persona_cognition_origin: engine.status().persona_cognition_origin, stage_one_hololake_boundary: engine.status().stage_one_hololake_boundary, reality_action_authority: "NONE" });
|
||||
if (request.method === "GET" && url.pathname === "/v1/status") return send(response, 200, engine.status());
|
||||
if (request.method === "GET" && url.pathname === "/v1/attention") return send(response, 200, { schema: "guanghu.tcs-mother-attention/v1", current_attention: engine.status().current_attention });
|
||||
if (request.method === "POST" && url.pathname === "/v1/history/sources") {
|
||||
|
|
|
|||
Loading…
Reference in a new issue