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.
2.7 KiB
2.7 KiB
协议基线
marqdo-lint 只读取 Marqdo 可执行文件通过公开协议写出的数据;不链接核心
Rust crate,也不读取核心私有文件。
当前冻结核心
| 项目 | 固定值 |
|---|---|
| 当前候选产品版本 | 3.0.0-rc.6 |
| 当前候选源码提交 | 63776735e924ade279cdf59d5c733dc24bfdabbb |
| 当前候选 Linux x86_64 归档 SHA-256 | 8dc0b006302e03c23451b8ea9f8a0fcdae8bf67c80c546bee2434bf69755bfe3 |
| 上一正式验证输入(v0.2.0 发布证据) | rc.4 452e9a32bd9e40dba427d4180691c58bab74449e,归档 SHA-256 9c3f166b5e5b8840d39d10019074e4e1c42432fc23e26c69670e64fdcf4e15d8 |
| Analysis schema SHA-256(rc.4 基线) | 03929300cec53bb29309a933f74c1aa807943bfd7dbecc80cf4f7f54d037eb30 |
| Markdown Profile | marqdo.md.v1 |
| Analysis | marqdo.analysis,revision 3(当前字段集合) |
| 外部工具 | marqdo.cli-tool,revision 1 |
| Lint 输出 | marqdo.lint,schema version 1 |
版本门槛是 SemVer 预发布范围 >=3.0.0-rc.4,<4.0.0。rc.4 之前的核心虽然也
可能写 schema_version: 3,但字段集合不同,当前 Lint 明确拒绝这些旧制品。
rc.4–rc.6 使用同一公开 Analysis 3 字段集合;当前候选是 rc.6,而 CI 镜像仍提供
rc.5 二进制(迁移由 marqdo-lint#11
跟踪),版本门槛在镜像刷新前保持 rc.4 以兼容已验证输入。
唯一静态边界
- 普通检查只执行一次
check ENTRY --json --emit PATH。modules[].document是 canonical Markdown AST 投影,modules[].source是唯一可信源码。 inspect不再进入 Lint 的机器路径。需要人工调试时由用户直接运行核心。--refs只在用户显式要求核验未导入本地目标时使用。它会改变诊断与 Analysis 字节,不能作为 run/call 的 Observation 绑定。- 每个 span 都是对应
modules[].source中的半开 UTF-8 字节偏移。读取 document、units、references、calls、resources 之前先校验sha256(source) == source_digest。 - Tool manifest 固定声明
requires: {api_revision: 1, analysis: 3};核心只 注入MARQDO_BIN与MARQDO_API_REVISION=1。
失败状态
complete:公开 Analysis 与 artifact source 已通过协议校验。analysis_incomplete:check失败或 alignment 不唯一。Lint 返回退出码2,不得输出“检查完成”。- 旧制品、错误 revision、无效模块身份、摘要不符、越界或非 UTF-8 边界的
span 都是协议错误,返回退出码
2,并提示重新生成 Analysis、重装 Tool、 重建 lint。
历史核心验收记录保留在 VALIDATION.md 的“历史”小节,不参与 当前门禁。