From f8b370b9587062121e61c9cf0e44f9c6f0f43796 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 10 Sep 2026 19:06:09 +0800 Subject: [PATCH] =?UTF-8?q?docs+chore:=20=E5=AD=A4=E5=84=BF=E8=A1=A8?= =?UTF-8?q?=E6=B8=85=E9=9B=B6=E2=80=94=E2=80=94README=E7=A7=BB=E9=99=A4pip?= =?UTF-8?q?eline=5Fversions/llm=E6=AD=BB=E8=A1=A8=E6=9D=A1=E7=9B=AE+?= =?UTF-8?q?=E6=B2=BB=E7=90=86=E6=B8=85=E5=8D=95=E5=8A=9E=E7=BB=93(DROP?= =?UTF-8?q?=E8=A7=81m0027,=E7=BC=96=E5=8F=B7=E6=8C=89=E5=B9=B6=E8=A1=8C?= =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E5=8D=A0=E7=94=A8=E9=87=8D=E6=8E=92);git=20r?= =?UTF-8?q?m=20models/pipeline=5Fversions.json(=E9=A1=B5=E9=9D=A208-28?= =?UTF-8?q?=E5=B7=B2=E5=88=A00=E8=A1=8C);=E4=B8=A4=E5=A4=84SKILL.md?= =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E8=A1=A8=E6=8C=87=E5=BC=95sd=5Fconversations?= =?UTF-8?q?=E2=86=92pipeline=5Fconversations(=E6=97=A7=E8=A1=A8m0027=20DRO?= =?UTF-8?q?P)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 ++-- models/pipeline_versions.json | 80 ------------------- .../all/pipeline-sdlc-workflow/SKILL.md | 2 +- .../SKILL.md | 2 +- 4 files changed, 9 insertions(+), 89 deletions(-) delete mode 100644 models/pipeline_versions.json diff --git a/README.md b/README.md index fb24829..7f8df04 100644 --- a/README.md +++ b/README.md @@ -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-service(models 定义 b8a2aea + collation 统一 m0022)。 +- `sd_conversations`:死表→models 定义已删、project_capability 4 处引用已清、DROP 见 m0027(32 行备份后删)。 +- 其余 10 张孤儿/死表一次清零:5 张归籍补定义(bid_analysis_history、bid_cost_benefit→bidding;pipeline_agent_instances、pipeline_agent_settings、pipeline_project_agents→service),4 张死表 DROP + 权限清理见 m0027(非破坏的 collation/索引收敛在 m0026),pipeline_deploy_ledger 为 dmig 自建台账豁免(table_doctor 白名单)。 ## 安装 diff --git a/models/pipeline_versions.json b/models/pipeline_versions.json deleted file mode 100644 index 0931201..0000000 --- a/models/pipeline_versions.json +++ /dev/null @@ -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" - ] - } - ] -} diff --git a/skills_library/all/pipeline-sdlc-workflow/SKILL.md b/skills_library/all/pipeline-sdlc-workflow/SKILL.md index a0632ce..ebc1b94 100644 --- a/skills_library/all/pipeline-sdlc-workflow/SKILL.md +++ b/skills_library/all/pipeline-sdlc-workflow/SKILL.md @@ -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`。 diff --git a/skills_library/all/software-development__pipeline-agent-architecture/SKILL.md b/skills_library/all/software-development__pipeline-agent-architecture/SKILL.md index c6f4fd9..2f8c8bf 100644 --- a/skills_library/all/software-development__pipeline-agent-architecture/SKILL.md +++ b/skills_library/all/software-development__pipeline-agent-architecture/SKILL.md @@ -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 已 DROP(2026-09-10) - Projects: org-scoped via `org_id` ## Bricks Integration