docs: internalize ecosystem repository development conventions #20

Merged
cflmy merged 1 commits from release/repository-conventions into main 2026-11-27 12:18:55 +08:00
Owner

范围(开发规范内化与防膨胀门禁)

把 marqdo#10 的职责模型、独立 CI 合同、制品/晋升要求与现有架构/开发/迁移权威整理为仓库级规范并落地到每个责任仓:

  • docs/REPOSITORY-CONVENTIONS.md:仓库准入、两层治理、职责矩阵、active 仓最低文件集、AGENTS 规范、独立 CI/CD、四种事实与 C2→B2→A2 晋升、单一事实源、防膨胀硬禁止清单、审核清单、例外记录。
  • 根 AGENTS.md/DEVELOPMENT.md/REPOSITORY-TASKS.md 链接规范;docs/templates/AGENTS.component.md 模板。
  • scripts/check-repo-conventions.py + 6 个集成测试:校验 active README/AGENTS 标记与根规范链接、真实 entry、planned 无 entry、根 catalog 不重复登记领域后代、叶子仓无第二 catalog/.gitmodules、.gitmodules 权威远端;纳入根 CI layout。
  • 各 active 子仓及已迁入实现的 extension 仓已合并带 <!-- marqdo:repo-conventions v1 --> 的本仓 AGENTS,修正 Web 领域/Design/Preview 的 stale planned 状态,并把规范提交(含 CLI docs commit)固定进根 gitlink。planned/空仓不批量生成模板。
  • 证据 docs/evidence/2026-11-27-repository-conventions.md。

验证(本地)

  • check-repo-conventions.py PASS(37 components);check-layout.py --checkouts PASS;完整集成测试 85 tests OK。
  • 根 CI candidate 为最终门禁。

说明

本 PR 只落仓库组织/开发规范与门禁,不实现 #10 的 CI/CD 工作流、发布索引、通知/reconcile 与平台 M0 实测;这些仍在 #10 逐项推进。

## 范围(开发规范内化与防膨胀门禁) 把 marqdo#10 的职责模型、独立 CI 合同、制品/晋升要求与现有架构/开发/迁移权威整理为仓库级规范并落地到每个责任仓: - `docs/REPOSITORY-CONVENTIONS.md`:仓库准入、两层治理、职责矩阵、active 仓最低文件集、AGENTS 规范、独立 CI/CD、四种事实与 C2→B2→A2 晋升、单一事实源、防膨胀硬禁止清单、审核清单、例外记录。 - 根 `AGENTS.md`/`DEVELOPMENT.md`/`REPOSITORY-TASKS.md` 链接规范;`docs/templates/AGENTS.component.md` 模板。 - `scripts/check-repo-conventions.py` + 6 个集成测试:校验 active README/AGENTS 标记与根规范链接、真实 entry、planned 无 entry、根 catalog 不重复登记领域后代、叶子仓无第二 catalog/.gitmodules、.gitmodules 权威远端;纳入根 CI layout。 - 各 active 子仓及已迁入实现的 extension 仓已合并带 `<!-- marqdo:repo-conventions v1 -->` 的本仓 AGENTS,修正 Web 领域/Design/Preview 的 stale planned 状态,并把规范提交(含 CLI docs commit)固定进根 gitlink。planned/空仓**不批量生成模板**。 - 证据 `docs/evidence/2026-11-27-repository-conventions.md`。 ## 验证(本地) - `check-repo-conventions.py` PASS(37 components);`check-layout.py --checkouts` PASS;完整集成测试 85 tests OK。 - 根 CI candidate 为最终门禁。 ## 说明 本 PR 只落仓库组织/开发规范与门禁,不实现 #10 的 CI/CD 工作流、发布索引、通知/reconcile 与平台 M0 实测;这些仍在 #10 逐项推进。
cflmy added 1 commit 2026-11-27 12:09:23 +08:00
Add the repository-level development conventions derived from marqdo#10 and the
existing architecture/development authorities, and enforce them:

- docs/REPOSITORY-CONVENTIONS.md: repository admission, two-level governance,
  responsibility matrix, minimum active-repository file set, AGENTS rules,
  independent CI/CD inputs, four facts and C2→B2→A2 promotion, single sources of
  truth, hard anti-bloat list, review checklist and exception records.
- Root AGENTS.md points to the conventions; docs/DEVELOPMENT.md and
  docs/REPOSITORY-TASKS.md link them; docs/templates/AGENTS.component.md is the
  per-repository template.
- scripts/check-repo-conventions.py + tests enforce active README/AGENTS
  marker and link, real entries, no planned entries, no duplicated domain
  descendants in the root catalog, no leaf second catalog/.gitmodules and
  canonical submodule remotes; added to the CI layout stage.
- Propagated tailored AGENTS.md to every active child repository and the
  implemented extension repositories, corrected stale Web planned/active facts,
  and pinned those convention commits (plus the CLI docs commit) in the root
  gitlinks. Planned/empty repositories intentionally receive no boilerplate.

Refs cflmy/marqdo#10
cflmy merged commit 0bf8a68cf5 into main 2026-11-27 12:18:55 +08:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cflmy/marqdo#20