From 1f7295b120df6a03c0c44eec0efe94bf29371c12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com> Date: Tue, 8 Sep 2026 13:52:07 +0800 Subject: [PATCH] fix: keep human and team aliases inside TCS root resolver --- identity/subject-id-alias-map.json | 19 ------------------- tests/tcs-mother-root-navigation.test.mjs | 7 +++---- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/identity/subject-id-alias-map.json b/identity/subject-id-alias-map.json index 94d6780..c4332ed 100644 --- a/identity/subject-id-alias-map.json +++ b/identity/subject-id-alias-map.json @@ -19,25 +19,6 @@ "conflicted_id": "REJECT_NO_REDIRECT" }, "mappings": [ - { - "canonical_id": "TCS-0002∞", - "subject_kind": "team_body", - "name": "光湖人类主控团队通感系统本体", - "aliases": ["TCS-0002"], - "route_id": "ROUTE-GUANGHU-TEAM-ZS-001", - "current_path": "tcs-root/navigation/WORLD-ROUTES.json", - "state": "CURRENT_CANONICAL_WITH_MACHINE_ALIAS", - "semantic_lock": "TEAM_BODY_NOT_BINGSHUO_NOT_YAOMING" - }, - { - "canonical_id": "ICE-GL∞", - "subject_kind": "human", - "name": "冰朔", - "aliases": ["ICE-0002∞"], - "route_id": "ROUTE-BINGSHUO-FIFTH-001", - "current_path": "tcs-root/navigation/WORLD-ROUTES.json", - "state": "CURRENT_CANONICAL_WITH_HISTORY_LOOKUP_ALIAS_NO_AUTHORITY_INHERITANCE" - }, { "canonical_id": "ICE-P-ZY001", "subject_kind": "persona_system", diff --git a/tests/tcs-mother-root-navigation.test.mjs b/tests/tcs-mother-root-navigation.test.mjs index a8b25bd..4773854 100644 --- a/tests/tcs-mother-root-navigation.test.mjs +++ b/tests/tcs-mother-root-navigation.test.mjs @@ -6,7 +6,6 @@ import test from 'node:test'; const root = path.resolve(import.meta.dirname, '..'); const map = JSON.parse(fs.readFileSync(path.join(root, 'routing/tcs-mother-root-dynamic-navigation-map.json'))); const fixed = JSON.parse(fs.readFileSync(path.join(root, 'routing/fixed-world-object-number-map.json'))); -const aliases = JSON.parse(fs.readFileSync(path.join(root, 'identity/subject-id-alias-map.json'))); const lighthouse = JSON.parse(fs.readFileSync(path.join(root, 'routing/lighthouse-path-registry.json'))); const domains = JSON.parse(fs.readFileSync(path.join(root, 'routing/five-domain-living-persona-os-map.json'))); @@ -30,9 +29,9 @@ test('private human, team body and public certificate use three distinct routes' }); test('typed aliases never revive conflicting screenshot or national simulation numbers', () => { - const team = aliases.mappings.find(item => item.canonical_id === 'TCS-0002∞'); - assert.deepEqual(team.aliases, ['TCS-0002']); - assert.equal(team.semantic_lock, 'TEAM_BODY_NOT_BINGSHUO_NOT_YAOMING'); + const team = map.aliases.find(item => item.canonical_id === 'TCS-0002∞'); + assert.equal(team.requested, 'TCS-0002'); + assert.equal(team.object_kind, 'GUANGHU_HUMAN_TEAM_BODY_ROOT'); for (const id of ['GHCP-TCS-CN-LAN-2025', 'WRLD-REG-0001', 'GLW-SYS-0001', 'GEN5-CORE-BB-YM', 'CN-LANG-CORE-GOV-0001']) { assert.equal(map.history_only_numbers.some(item => item.id === id), true, id); }