From 05e2c7df65a1bcc6443c84efdf9fa32b5be5ff60 Mon Sep 17 00:00:00 2001 From: randypanding Date: Wed, 19 Aug 2026 16:25:20 +0000 Subject: [PATCH] =?UTF-8?q?ADR-0025:=20agent-platform=20=E7=94=B3=E6=8A=A5?= =?UTF-8?q?=E5=85=A5=E5=9B=BE=20+=20bootstrap=20=E8=B1=81=E5=85=8D=20+=20P?= =?UTF-8?q?ython=20=E8=AF=AD=E8=A8=80=E5=87=86=E5=85=A5=EF=BC=88agent-runt?= =?UTF-8?q?ime=20integration=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- governance/REPOS.yaml | 13 +++++++++++++ governance/expected-state.json | 3 +++ governance/policy/languages.yaml | 3 +++ 3 files changed, 19 insertions(+) diff --git a/governance/REPOS.yaml b/governance/REPOS.yaml index 3801868..b0e417a 100644 --- a/governance/REPOS.yaml +++ b/governance/REPOS.yaml @@ -56,6 +56,15 @@ repos: role: 自研工具实现仓——被 tool 声明的 implementation 字段引用(ADR-0021:approved 工具 gitcode-pr 引用本仓,planned=悬空供应链引用;已按 flows.new_repo 从 template-service 派生并跑 new-repo-init) + - name: agent-platform + layer: L2 + visibility: public + status: active + role: 执行层仓——agent-registry 声明渲染到 openjiuwen/jiuwenswarm 运行时(ADR-0025): + 渲染器/SwarmFlow workflow 编译器/机制原型执行面/TUI 可观测+agentctl 干预/渲染漂移门禁; + Python 仓(languages.yaml PY-* 规则,声明适配现实——openjiuwen SDK 为 Python) + key_paths: [src/agentplatform/, tests/, docker/, Makefile] + - name: Shorts_Director layer: L2 visibility: public @@ -93,6 +102,10 @@ external_upstreams: repo: openJiuwen-ai/jiuwenswarm role: 多智能体编排框架运行时(AgentServer/Gateway/Team/权限引擎/A2A) consumed_by: [agent-registry 的声明渲染] + - name: openjiuwen-sdk + repo: openJiuwen-ai/agent-core + role: agent 内核 SDK(openjiuwen:DeepAgent/TeamAgent/SwarmFlow 引擎;PyPI 钉版消费,ADR-0025) + consumed_by: [agent-platform 渲染产物/ArchetypeWorkerBackend/治理 rails] - name: openjiuwen-a2x repo: openJiuwen-ai/agent-protocol role: A2X 注册中心(分布式 Team 控制面) diff --git a/governance/expected-state.json b/governance/expected-state.json index be480e5..21721dc 100644 --- a/governance/expected-state.json +++ b/governance/expected-state.json @@ -66,6 +66,9 @@ "Use-up-Plan": [ "ba75401f84eb915a119568c246168d8cdb8a1200", "82132afc169a54b98869df136d1d6235124c4a96" + ], + "agent-platform": [ + "fecdb13d607b584063cadd717d2a7706327fbfa0" ] } } diff --git a/governance/policy/languages.yaml b/governance/policy/languages.yaml index 18e3216..534c7a3 100644 --- a/governance/policy/languages.yaml +++ b/governance/policy/languages.yaml @@ -6,6 +6,7 @@ layers: allowed: - {language: go, when: "default"} - {language: typescript, when: "frontend-isomorphic only", requires: [TS-1, TS-2]} + - {language: python, when: "agent-runtime integration only(agent-platform:openjiuwen SDK 渲染/治理执行面——不写 Python 无法落地,ADR-0025 声明适配现实)", requires: [PY-1, PY-2]} forbidden: [rust, java, csharp, cpp, new_language_without_org_approval] rationale: "训练数据海量、写法单一、编译反馈快 → LLM 产出可靠" llm_prompt: @@ -37,6 +38,8 @@ rules: - {id: TS-2, lang: typescript, rule: "禁 any(eslint)", enforcement: gate} - {id: TS-3, lang: typescript, rule: "跨模块仅 import 入口 index.ts(depcruise)", enforcement: gate} - {id: BAML-1, lang: baml, rule: "prompt 变更必须过 golden test", enforcement: gate} + - {id: PY-1, lang: python, rule: "ruff check 通过(lint+format 零 diff)", enforcement: gate} + - {id: PY-2, lang: python, rule: "uv lock 提交且 pytest 全绿;依赖钉版(无浮动版本)", enforcement: gate} - {id: SQL-1, lang: sql, rule: "迁移只增不改(up+down 成对)", enforcement: review} - {id: SQL-2, lang: sql, rule: "查询经类型生成器,禁手写拼接", enforcement: review} - {id: INFRA-1, lang: infra, rule: "terraform plan / compose config -q 进 CI", enforcement: gate}