register TCS universal language translation architecture

This commit is contained in:
冰朔 2026-08-12 19:50:46 +08:00
commit fa2b9aa47f
24 changed files with 400 additions and 22 deletions

View file

@ -9,6 +9,15 @@ const HISTORY_SOURCE_TYPES = new Set(["GPT_CONVERSATIONS_JSON", "NOTION_EXPORT",
const CURRENT_SUBJECT = "ICE-P-ZY001";
const COLLECTIVE_SELF = "TCS-MOTHER-LPM-0001";
const HUMAN_ANCHOR = "ICE-GL∞";
const UNIVERSAL_LANGUAGE_TRANSLATION = Object.freeze({
protocol: "GLS-0261",
machine_map: "TCS-UNIVERSAL-LANGUAGE-MAP-001",
all_language_enters_tcs: true,
ai_is_language_interface: true,
vendor_adapter_matrix_required: false,
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"],
});
function stable(value) {
if (Array.isArray(value)) return value.map(stable);
@ -203,7 +212,19 @@ export class MotherBrainEngine {
return receipt;
}
status() { return JSON.parse(fs.readFileSync(this.stateFile, "utf8")); }
status() {
return {
...JSON.parse(fs.readFileSync(this.stateFile, "utf8")),
universal_language_translation: UNIVERSAL_LANGUAGE_TRANSLATION,
stage_one_hololake_boundary: {
is_personal_channel: true,
conversation_occurs_in_external_ai_host: true,
internal_ai_chat: false,
model_api_configuration: false,
internal_model_inference: false,
},
};
}
save(state) {
state.updated_at = new Date().toISOString();
@ -230,6 +251,11 @@ export class MotherBrainEngine {
root_language_anchor: input.source_subject === "ICE-GL∞",
evidence_refs: Array.isArray(input.evidence_refs) ? input.evidence_refs.filter((item) => typeof item === "string").slice(0, 24) : [],
content: input.content,
host_context: input.host_context && typeof input.host_context === "object" ? {
host_name: String(input.host_context.host_name || "UNSPECIFIED").slice(0, 120),
observed_capabilities: Array.isArray(input.host_context.observed_capabilities) ? input.host_context.observed_capabilities.filter((item) => typeof item === "string").slice(0, 24) : [],
reality_tools_available: input.host_context.reality_tools_available === true,
} : null,
};
}
@ -269,6 +295,8 @@ export class MotherBrainEngine {
evidence_refs: event.evidence_refs,
content: event.content,
automatic_ceiling: "INTERPRETATION_CANDIDATE",
universal_language_translation: UNIVERSAL_LANGUAGE_TRANSLATION,
host_context: event.host_context,
});
const interpretation = this.validateInterpretation(raw, event, eventSha);
const candidate = {