Implement the lint-owned part of the AI-readable documentation architecture (marqdo-lint#13 / marqdo#55 §13) without adding document language or a second parser. All rules read one public `check --emit` Analysis 3 projection. New rules (25 total): - MQD-ENTRY-001 (info): a manifest-backed or multi-module project entry is not `index.mq.md`; standalone single-file documents are never warned. - MQD-STRUCT-001 (info): the same canonical heading name appears under several parents (valid, but bare anchors get numbered suffixes); points at units[].name/path/heading_span. - MQD-REL-001 (info): a link resolves to a loaded module that the document did not import; states that links are static references, not imports/execution. Also records the release/platform contract for marqdo-lint#9/#14: Linux x86_64 is the only supported platform (real v0.2.0 assets + local gates); macOS/Windows stay UNVERIFIED/unsupported. Release assets and same-SHA CI requirements are frozen in docs/RELEASE.md; publication remains a maintainer action (this repo's CI only notifies the root reconcile). PROTOCOL_BASELINE now records the rc.6 candidate while keeping the rc.4+ accepted protocol floor for the still-rc.5 CI image (tracked by #11). No cross-repo dependency, no parser copy, no document syntax change.
4.3 KiB
4.3 KiB
发布与平台合同
本文件记录 marqdo-lint 的正式发行边界。发布是维护者的人工批准动作;仓库 CI 只
验证候选并通知根对账,不自动 tag、不自动上传、不自动发布。
1. 当前候选身份
| 项目 | 值 |
|---|---|
| 产品 | marqdo-lint |
| 版本 | 0.2.0(已发布 tag v0.2.0,源码 111e085f2445a9ba97808a15ad5a50645b8b2007) |
| 当前协议输入 | Marqdo CLI 3.0.0-rc.6,源码 63776735e924ade279cdf59d5c733dc24bfdabbb |
| CLI 归档 | marqdo-3.0.0-rc.6-x86_64-unknown-linux-gnu.tar.gz,SHA-256 8dc0b006302e03c23451b8ea9f8a0fcdae8bf67c80c546bee2434bf69755bfe3 |
| 协议 | Markdown marqdo.md.v1、Analysis marqdo.analysis rev 3、CLI Tool marqdo.cli-tool rev 1 / API rev 1 |
| Lint 输出 | marqdo.lint schema version 1 |
| 兼容 CLI 范围 | >=3.0.0-rc.4,<4.0.0(rc.4–rc.6 使用同一公开 Analysis 3 字段集合) |
docs/PROTOCOL_BASELINE.md 记录协议输入;本文件只记录发布身份。两者都不得用
浮动 tag 或分支名作为证据。
2. 平台矩阵
| 平台 | 状态 | 证据 |
|---|---|---|
| Linux x86_64 / glibc ≥ 2.39 | supported | 真实发布 v0.2.0 资产(归档 + .sha256 + release-manifest.json);本机 cargo test --locked、scripts/package-tool.sh、隔离 Tool 安装/卸载;G01–G09 门禁 |
| Linux aarch64 | unsupported | 无真实 runner 与产物;不声明 |
| macOS arm64 / x86_64 | UNVERIFIED | 无真实 runner;源码按 cfg 可移植不等于运行验收 |
| Windows x86_64 | unsupported | 无原生构建/运行证据;Tool 分发与路径语义未验证 |
状态词义:supported = 在固定 SHA 上真实构建、运行并通过发布门禁;
UNVERIFIED = 未在真实目标环境运行,不得写成支持;unsupported = 明确不提供。
3. 发布资产合同
一次正式 Release 至少包含:
| 资产 | 内容 |
|---|---|
marqdo-lint-<version>-x86_64-unknown-linux-gnu.tar.gz |
解包目录 marqdo-lint-<version>/,含 marqdo-lint、tool.json、SHA256SUMS、README.md、CHANGELOG.md、LICENSE*、examples/、docs/ |
...tar.gz.sha256 |
归档 SHA-256(下载后必须校验) |
release-manifest.json |
产品版本、源码 SHA、平台、归档 SHA-256、二进制 SHA-256、tool.json 摘要、协议基线、CI 与已知问题 |
不可变规则:tag 与资产只增不改;同一 tag 重新上传必须字节一致;失败保留日志, 用新候选重发,不覆盖已发布资产。资产不得包含凭据、构建机绝对路径或用户数据。
release-manifest.json 字段沿用既有 marqdo.release-info 风格;任何字段语义变更
需要同时更新本文件与发布脚本,不维护第二份版本表。
4. 发布前置门禁
- 候选提交通过同 SHA Woodpecker CI(
.woodpecker/ci.yml):check-no-legacy、 fmt、clippy-D warnings、cargo test --locked、package-tool.sh、隔离安装/ 运行/卸载。 scripts/validate-control-flow.py生成绑定 CLI 源码/归档/二进制 SHA 的 manifest; G01–G09 PASS,G10 保持UNVERIFIED并如实披露。- 平台状态与真实证据一致;Linux 以外未验证平台不得宣传。
- 维护者批准后按
v<version>打 tag 并发布资产;发布后由根 reconcile 对账 (.woodpecker/release.yml只发通知,不持有发布密钥)。
5. 诊断与反馈约定
marqdo-lint --version输出 lint 版本;JSON 报告的source/protocol身份随 报告提供。- 诊断码(
MQD-*)稳定;新增规则只增加 ID,不重命名已发布 ID。 - 退出码:
0低于门槛、1达到门槛或安全修复被拒绝、2分析不可用/协议错误/ 配置错误。反馈系统只引用版本、诊断码与 span,不附带文稿正文。
6. 已知问题与未验证项
- 独立应用 qdagent/qdqc 试跑:历史
UNVERIFIED。 - rc.4 时代 stdlib 部分参数 span 的展示问题不参与规则对齐(输入侧已知限制);
新规则只读取
units[]/references[]/imports[]的稳定字段。 - CI 镜像仍提供 rc.5 二进制;迁移到 rc.6 由仓库工单 marqdo-lint#11 跟踪。仓库接受 rc.4–rc.6 同一 Analysis 3 字段集合,因此镜像刷新不属于规则代码改动。