fix: keep human and team aliases inside TCS root resolver
This commit is contained in:
parent
c78e90e1e4
commit
1f7295b120
2 changed files with 3 additions and 23 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue