From 03a430fc78e551d1d9fbf4e16baab2fb0aded077 Mon Sep 17 00:00:00 2001 From: lanrtop Date: Thu, 2 Jul 2026 23:01:59 +0900 Subject: [PATCH] =?UTF-8?q?chore(blueprint):=20=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E4=B8=A4=E6=A1=A3=E5=88=B6=E8=A3=81=E5=86=B3=E2=80=94=E2=80=94?= =?UTF-8?q?/ship=20=E6=8C=89=E9=A1=B9=E7=9B=AE=E7=94=BB=E5=83=8F=E5=88=86?= =?UTF-8?q?=E6=A1=A3=E6=8A=95=E6=94=BE=EF=BC=8C=E9=80=89=E6=8B=A9=E8=BF=9B?= =?UTF-8?q?=E5=85=A5=E7=BD=AE=E4=BF=A1=E5=BA=A6=E4=BD=93=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .blueprint/modules/gitea-integration.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.blueprint/modules/gitea-integration.md b/.blueprint/modules/gitea-integration.md index 0ea4301..8f9aa25 100644 --- a/.blueprint/modules/gitea-integration.md +++ b/.blueprint/modules/gitea-integration.md @@ -124,6 +124,10 @@ Gitea push → POST /webhook/gitea/:project_id - complexity: M - acceptance: TBD —— remote 切换 + 推送,安全增量,不丢历史 +### 💭 /ship 泛化 + 工作流档位分发 +- status: concept +- notes: /ship 去 enterprise-system 硬编码(仓库路径从 git remote get-url origin 推导、分支模型可配置),进入增配档接入包成为可一键分发的能力;配套「基线档 push CI」workflow 模板(master push → typecheck + cargo test/vitest,远端强制测试补"测试烂在本地"的洞,产出 CI 状态数据即观测面首批 CI 燃料)。项目导师按画像提示升降档。 + ### 💭 PR 事件 ↔ 蓝图任务卡联动 - status: concept - depends: G3 @@ -180,6 +184,7 @@ Gitea push → POST /webhook/gitea/:project_id - **公网 Gitea + 内网炼境为标准拓扑(2026-07-02 裁决)**:观测面以 G6 出站轮询为主(每 10 分钟),webhook 仅作同网/有穿透场景的补充。理由:① 炼境 27190 端口(MCP 路由无鉴权)保持零公网暴露;② 飞轮是统计系统非监控系统,10 分钟延迟在天/周分析粒度下为零影响;③ /ship 在 enterprise-system 已实证全出站 API 可支撑完整 PR 流水线;④ 主动拉取更贴合风筝线"持线人"定位。若未来需秒级实时:云服务器 nginx 仅反代 /webhook/gitea/ 路径 + 内网穿透(备案,不建议) - 不用 frp 直接映射 27190:MCP Server 工具路由无鉴权,全端口暴露 = append_project_note 等工具裸奔公网 +- **工作流两档制(2026-07-02 裁决)**:/ship 完整 PR 流水线是"稳定剂"元素,有明确 scope(事故成本高:对外交付/生产系统)与 boundary(探索期高频迭代项目,PR 税会腰斩节奏——炼境自身单日 20+ commit 实证)。炼境不统一推广任何工作流,按项目画像分档:基线档=直推+lefthook+本地测试+push CI;增配档=/ship 全流水线(enterprise-system 为活样板)。升降档判据交给飞轮数据(返工率/CI 拦截率/review 有效率),工作流选择本身进入置信度体系。炼境自身升档时机:稳定使用期 或 飞轮阶段三需要 PR/review 数据 ## 复盘笔记