后台 IA 收口修正:修复默认路由与降权页路由,收敛 AI 五层契约与文案

Workstream C/D/J 收口阶段的后台 IA 修正(前序结构性 stream 已合并,本轮只补残留缺口):

- [修复] page_display 默认路由失效:SECTION_DEFAULT_CHILDREN 键 'page_display'
  与分区 key 'page-display' 不匹配,attachSectionDefaultRoute 永不命中,
  /page-display 无默认落点。改键并指向 SchemaPage page-display-header-nav
  (stream-d §5.2 / CLAUDE.md 约束 #9)。
- [修复] shop/forum 概览页路由碰撞:shop-dashboard 用 /shop、forum-dashboard
  用 /forum,与分区根路由冲突并被 createSectionRedirectRoutes 抢先重定向,
  兼容导航项不可达。改为 /shop/dashboard、/forum/dashboard。
- [修复] AI 页虚假 schema 绑定:extensions-ai 声明了不存在的 section:'ai',
  违反五层契约。AI 属停用候选(stream-c §5.9,不扩写核心 schema),移除虚假
  绑定,改用自有 /ai/* 端点作为兼容能力。
- [文案] 收敛平台术语(stream-c §8):users-report「治理台账」→「用户限制状态
  管理」;「AI 子系统」→「AI 辅助(兼容)」。

验证:admin SPA 构建通过;节点级校验确认 10 个分区默认路由全部解析、无路由碰撞、
extensions-ai canonicalDomain/section 已清空。验收报告与兼容层状态表见 docs/
(本地内部文档,按 .gitignore 约定不入库)。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Fable 5 committed 2026-07-06 17:49:05 +08:00
1 parent 99ee3164f8
commit 17c24826c8
6 files changed
+13 -13

No files matched your search

+4 -4
View File
@@ -68,7 +68,7 @@ const COMPAT_PAGE_ORDER_INDEX = new Map(COMPAT_PAGE_ORDER.map((key, index) => [k
const SECTION_DEFAULT_CHILDREN = {
global: 'global-common',
page_display: 'page-display-homepage',
'page-display': 'page-display-header-nav',
'post-list': 'post-list-page',
permissions: 'permissions-comment',
users: 'users-auth',
@@ -161,9 +161,9 @@ const DEMOTED_PAGE_OVERRIDES = {
desc: '兼容保留扩展工具中心,避免与主工具区重复争夺主路径。',
},
'extensions-ai': {
label: 'AI 子系统(兼容)',
title: 'AI 子系统(兼容)',
desc: '兼容保留 AI 入口,不再进入 Zibll 主线后台路径。',
label: 'AI 辅助(兼容)',
title: 'AI 辅助(兼容)',
desc: '兼容保留 AI 内容辅助能力,不再进入 Zibll 主线后台路径。',
},
}