Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions governance/REPOS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 控制面)
Expand Down
3 changes: 3 additions & 0 deletions governance/expected-state.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
"Use-up-Plan": [
"ba75401f84eb915a119568c246168d8cdb8a1200",
"82132afc169a54b98869df136d1d6235124c4a96"
],
"agent-platform": [
"fecdb13d607b584063cadd717d2a7706327fbfa0"
]
}
}
3 changes: 3 additions & 0 deletions governance/policy/languages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remediation recommended

1. Py-1 未检查格式 🐞 Bug ≡ Correctness

PY-1 将 ruff check 描述为同时保证 lint 和 format 零差异,但该命令只运行 Ruff linter,未格式化的 Python 代码仍可满足这条规则。格式门禁必须另外执行
ruff format --check
Agent Prompt
## Issue description
PY-1 声称执行 lint 和 format 门禁,但只指定了 lint-only 的 `ruff check`。

## Issue Context
Ruff 的格式检查使用独立命令 `ruff format --check`;应让政策明确要求两条命令,避免下游 CI 仅实现 lint。

## Fix Focus Areas
- governance/policy/languages.yaml[41-41]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

- {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}
Expand Down