docs+chore: 孤儿表清零——README移除pipeline_versions/llm死表条目+治理清单办结(DROP见m0027,编号按并行会话占用重排);git rm models/pipeline_versions.json(页面08-28已删0行);两处SKILL.md会话表指引sd_conversations→pipeline_conversations(旧表m0027 DROP)

This commit is contained in:
yumoqing 2026-09-10 19:06:09 +08:00
parent e6856ce16d
commit f8b370b958
4 changed files with 9 additions and 89 deletions

View File

@ -15,14 +15,14 @@
|---|------|
| pipelines | 产线定义 |
| pipeline_steps | 产线步骤(含 deps 依赖) |
| pipeline_versions | 产线版本快照 |
| llm | 大模型配置 |
| sd_projects | 软件项目定义2026-09-10 自 pipeline-sdlc 迁入,跨产线共享) |
| sd_project_role_models | 项目角色模型配置(同上迁入;下拉 codes 指 sd_role 字典 + llm_model(status=active) |
| pipeline_deliverables | 产线交付物(同上迁入;主要写入方 pipeline-bidding |
| pipeline_user_memory | 跨会话持久记忆2026-09-10 多租户:加 org_id/user_id 归属列key 掺租户维度,迁移 m0023 |
| pipeline_tool_policies | 工具作用域策略2026-09-10 五级作用域 org/pipeline/role/project 的 allow/deny 微调,迁移 m0028 |
已移除2026-09-10 孤儿表清零):`pipeline_versions`(页面 08-28 已删、0 行models 定义删除+DROP 见 m0027`llm`(模型管理收敛 pipeline-llm 后停用8 行已确认无损迁移DROP 见 m0027
## 跨产线共享资源wwwroot/api/
三张迁入表配套 15 个 api dspy 与手写角色模型页(`wwwroot/sd_project_role_models/`
@ -31,11 +31,11 @@ git 跟踪、勿被 xls2ui 覆盖。sdlc 侧页面消费 `get_project_options
### 已知表治理清单2026-09-10 审计)
- `pipeline_conversations`孤儿表——有真实读写pipeline-service agent_loop_v2 的 sor.C
落盘、驾驶舱 v2 历史加载),但**全平台无 models JSON 定义**,建表靠历史残留,
新库部署会缺表。待补 models 定义(归属 pipeline-service 或 core 待定)。
- `sd_conversations`:死表——pipeline-sdlc 有 models 定义,但 2026-08-01 后全平台零写,
仅存 SELECT/DELETE/孤儿巡检引用。驾驶舱 v2 已改用 pipeline_conversations。待删除决议
全部办结2026-09-10 批评会决议,用户认可):
- `pipeline_conversations`:孤儿表→已归籍 pipeline-servicemodels 定义 b8a2aea + collation 统一 m0022)。
- `sd_conversations`:死表→models 定义已删、project_capability 4 处引用已清、DROP 见 m002732 行备份后删)。
- 其余 10 张孤儿/死表一次清零5 张归籍补定义bid_analysis_history、bid_cost_benefit→biddingpipeline_agent_instances、pipeline_agent_settings、pipeline_project_agents→service4 张死表 DROP + 权限清理见 m0027非破坏的 collation/索引收敛在 m0026pipeline_deploy_ledger 为 dmig 自建台账豁免table_doctor 白名单)
## 安装

View File

@ -1,80 +0,0 @@
{
"summary": [
{
"name": "pipeline_versions",
"title": "产线发布记录表",
"primary": [
"id"
],
"catelog": "entity"
}
],
"fields": [
{
"name": "id",
"title": "id",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "pipeline_id",
"title": "产线ID",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "version",
"title": "版本号",
"type": "str",
"length": 20,
"nullable": "no"
},
{
"name": "publish_status",
"title": "发布状态",
"type": "str",
"length": 20,
"nullable": "no",
"default": "pending"
},
{
"name": "published_by",
"title": "发布人",
"type": "str",
"length": 32
},
{
"name": "published_at",
"title": "发布时间",
"type": "timestamp",
"nullable": "no"
},
{
"name": "changelog",
"title": "变更说明",
"type": "text"
},
{
"name": "config_snapshot",
"title": "配置快照JSON",
"type": "text"
},
{
"name": "created_at",
"title": "创建时间",
"type": "timestamp",
"nullable": "no"
}
],
"indexes": [
{
"name": "idx_versions_pipeline",
"idxtype": "index",
"idxfields": [
"pipeline_id"
]
}
]
}

View File

@ -148,7 +148,7 @@ mysql -h127.0.0.1 -utest -ptest123 pipeline -e "SELECT ..."
```
表外键易踩坑:`pipeline_tasks`/`pipeline_agent_questions`**tenant_id**(不是 project_id
`pipeline_deliverables` 用 project_id`sd_conversations` 用 iteration_id
`pipeline_deliverables` 用 project_id会话回放表是 `pipeline_conversations`iteration_id 列存 project_id另有 session_id/pipeline_id 隔离键;旧表 `sd_conversations` 已于 2026-09-10 DROP
questions 表用 `status` 不是 `state`。完整对照 + "审核超时"死循环诊断 + 指令落地核查 recipe
`references/db-diagnostics.md`

View File

@ -129,7 +129,7 @@ async def _save_ctx(sor, uid, pid):
## Data Scoping
- Conversations: `WHERE created_by=$uid` (user-scoped, not project-scoped — `sd_conversations` has no project_id)
- Conversations: `pipeline_conversations` — user-scoped via `created_by`,另有 session_id多tab/pipeline_id产线隔离键iteration_id 列存 project_id历史语义名。旧表 sd_conversations 已 DROP2026-09-10
- Projects: org-scoped via `org_id`
## Bricks Integration