Files
marqdo-lint/AGENTS.md
T
marqdo-norms aa0bdac7de
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/pr/main Pipeline was successful
docs: adopt the ecosystem repository development conventions
Add the repository AGENTS.md boundary and anti-bloat rules required by
marqdo docs/REPOSITORY-CONVENTIONS.md, with the marker and canonical link so
scripts/check-repo-conventions.py can enforce it.
2026-11-27 11:36:17 +08:00

38 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!-- marqdo:repo-conventions v1 -->
# AGENTS.md — lint
全局规范唯一来源:[marqdo 仓库开发规范](https://git.cflmy.cn/cflmy/marqdo/src/branch/main/docs/REPOSITORY-CONVENTIONS.md)。本文件只写本仓边界,不复制全局规范或合同正文。
## 1. 本仓定位与唯一权威
- catalog ID:`lint`;父级:根;角色:tool;状态:active。
- 职责/本仓拥有:面向 `.mq.md` 的静态阅读质量检查与显式修复建议
- 本仓不拥有:Markdown/语言 parser、CLI 核心、修复跨仓源码
- 权威输入/合同:一次 `check --emit` 的公开 Analysis 3(`modules[].document/source`)
## 2. 必做 / 禁止
| 必做 | 禁止 |
| --- | --- |
| 只在本仓职责内修改,先开本仓工单 | 实现其它仓库功能,复制 parser/实现/合同 |
| 用真实 CLI/制品与独立期望测试 | mock、字符串检查或原型冒充真实验收/PASS |
| 依赖使用固定 SHA/摘要与显式输入 | 依赖父仓 checkout、兄弟仓相对路径、浮动分支 |
| 未运行写 `UNVERIFIED` | 伪造 entry/版本/CI 徽章/gitlink/发布资产 |
| 记录 SHA、制品摘要、平台、命令、退出码 | 提交密钥、凭证、构建产物或本地绝对路径 |
| 跨仓变更走 C2 → B2 → A2 晋升 | 自动 tag/release/合并,或直接改父仓/兄弟仓 |
- 不新增第二 catalog/manifest/lock/版本表/发布流程;不为单功能拆仓或建空壳仓。
- 不在本仓登记其它仓库后代路径;治理树最多两级 gitlink。
## 3. 构建、测试与证据
- CI/验收入口:`scripts/package-tool.sh`(非交互、失败非零、不打印秘密、只写声明输出;构建与发布权限分离)。
- 输入与依赖:一次 `check --emit` 的公开 Analysis 3(`modules[].document/source`)
- 交付:Tool bundle + `tool.json` 与安装/运行/卸载证据
- 证据:候选 SHA、依赖/制品 SHA-256、平台/工具链、命令与退出码、日志位置、测试范围;FAIL/UNVERIFIED 不得写成 PASS。
## 4. 工单路由
- Analysis 字段/协议 → `marqdo-cli`;规则/诊断 → 本仓。
- 不复制 parser,不按 label/heuristics 重解文档。