Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
regional-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d566fdf7
authored
Aug 21, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
docs: gate project knowledge graph migration
1 parent
d6e7c5b3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
0 deletions
docs/migrations/project-knowledge-graph/api-inventory.md
docs/migrations/project-knowledge-graph/manifest.json
docs/migrations/project-knowledge-graph/test-acceptance.md
docs/migrations/project-knowledge-graph/api-inventory.md
0 → 100644
View file @
d566fdf
# 项目知识图谱迁移接口清单
## 来源
-
项目:dj-car-boutique-work-wechat
-
提交:e4fc97927e631208fb33af77ac47ea38892026fc
## 命令接口
| 接口 | 输入 | 输出/行为 |
|---|---|---|
|
`npm run knowledge:build`
| 当前仓库 | 重建稳定图谱和 Markdown 索引 |
|
`npm run knowledge:check`
| 当前仓库 | 只读比较生成物,漂移时非零退出 |
|
`npm run impact -- --keyword <value>`
| 1–5 个关键词 | 返回上下游、测试、文档、风险和证据 |
|
`npm run test:affected -- --list --format json`
| Git 变更集 | 返回 none/docs-only/targeted/full 计划 |
|
`npm test`
| 无 | 运行全部离线测试,Live 默认跳过 |
## 图谱契约
顶层字段固定为
`schemaVersion`
、
`nodes`
、
`edges`
、
`unresolved`
、
`stats`
。每条边必须包含
`from`
、
`to`
、
`type`
、
`confidence`
和文件行列证据。
docs/migrations/project-knowledge-graph/manifest.json
0 → 100644
View file @
d566fdf
{
"id"
:
"project-knowledge-graph"
,
"title"
:
"项目知识图谱与增量测试迁移"
,
"sourceProject"
:
"dj-car-boutique-work-wechat@e4fc97927e631208fb33af77ac47ea38892026fc"
,
"affectedPaths"
:
[
"components/orderPromptPop/orderMerchantContext.helpers.js"
,
"package.json"
,
"project.config.json"
,
"README.md"
,
"docs"
,
"scripts"
,
"tests"
],
"interfaces"
:
[
"npm run knowledge:build"
,
"npm run knowledge:check"
,
"npm run impact"
,
"npm run test:affected"
,
"npm test"
],
"tests"
:
[
{
"id"
:
"migration-readiness-contract"
,
"file"
:
"tests/migration-readiness/checkMigrationReadiness.test.mjs"
,
"level"
:
"contract"
,
"expectedBefore"
:
"pass"
,
"status"
:
"pass"
},
{
"id"
:
"upload-exclusions-contract"
,
"file"
:
"tests/migration-readiness/uploadExclusions.test.mjs"
,
"level"
:
"contract"
,
"expectedBefore"
:
"pass"
,
"status"
:
"pass"
}
],
"baseline"
:
{
"command"
:
"git rev-parse --short 5d7d57032ad31517c56fb4f53a00b01e1905728b"
,
"result"
:
"5d7d570"
},
"apiInventory"
:
"docs/migrations/project-knowledge-graph/api-inventory.md"
,
"acceptance"
:
"docs/migrations/project-knowledge-graph/test-acceptance.md"
,
"verification"
:
{
"commands"
:
[
{
"command"
:
"node scripts/run-node-tests.mjs tests/knowledge-graph tests/project-governance tests/order-lifecycle/liveProfiles.test.mjs tests/order-lifecycle/e2e/liveCleanup.test.mjs"
,
"status"
:
"pass"
},
{
"command"
:
"npm run knowledge:check"
,
"status"
:
"pass"
},
{
"command"
:
"npm test"
,
"status"
:
"pass"
}
]
}
}
docs/migrations/project-knowledge-graph/test-acceptance.md
0 → 100644
View file @
d566fdf
# 项目知识图谱迁移验收
| ID | 验收项 | Pre | Post |
|---|---|---|---|
| KG-001 | migration readiness contract | pass | pass |
| KG-002 | existing merchant search contract | fail: park name is not searched | pass |
| KG-003 | knowledge graph fixture contracts | absent | pass |
| KG-004 | all 71 app pages are indexed | probe only | pass |
| KG-005 | generated artifacts are byte-stable | absent | pass |
| KG-006 | affected selection escalates shared/cross-domain/unresolved changes | absent | pass |
| KG-007 | Live profiles contain no credential literals and default to skipped | absent | pass |
| KG-008 | full offline suite | blocked by KG-002 | pass |
| KG-009 | knowledge artifacts remain outside upload package | docs/scripts/tests pass; .agents absent | pass |
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment