feat: offline build-info and release platform matrix (#9) #10

Merged
cflmy merged 2 commits from codex/issue-9-8-buildinfo-and-release into master 2026-11-30 12:12:25 +08:00
Owner

概述

实现 marqdo#56 在 Prove 责任仓的发行工程切片(#9),并复核 #5/#7 边界;不改变证明语义、bundle schema 或 Tool 协议。

交付

  1. 离线 build-info 诊断(#9 / marqdo#56 §9.2)
    • marqdo-prove --build-info 输出 marqdo.build-info v1:产品/版本、构建内嵌源码 SHA(dev 为 null)、平台、协议 revision(Analysis 3 / CLI Tool API 1 / proof schema 1)、固定 Lean 4.36 + Mathlib 身份与后端发现契约。
    • 不打开文稿、不启动 Lean、不联网、不输出绝对路径或凭据(单测强制)。
    • build.rs 在 release 构建嵌入 MARQDO_BUILD_SOURCE_SHA,把报告绑定到 tag commit。
  2. 发布/平台合同(#9)
    • docs/RELEASE.md 新增 §2.1:Linux x86_64 为 supported beta;Linux aarch64 unsupported;macOS/Windows UNVERIFIED;明确“打包通过 ≠ 证明验收”,Lean 验收只在专用后端 runner。
    • 上游输入更新为 rc.6 candidate;README 记录诊断入口。
  3. #5/#7/#8 复核:仓库 CI 无发布/持密钥步骤(发布是本地人工动作),建议 #5 关单;公开 rc.6 归档消费与 Lean replay 在本环境 UNVERIFIED。

验证(真实,Linux x86_64 / glibc 2.43)

cargo fmt --all -- --check                                        PASS
cargo clippy --all-targets --locked -- -D warnings                PASS
cargo test --locked                                               96 passed, 0 failed, 11 ignored (Lean e2e, backend absent)
MARQDO_BUILD_SOURCE_SHA=4e02400… sh scripts/package-tool.sh <out> PASS
marqdo tool install <bundle>/tool.json                            PASS
marqdo prove --build-info                                         PASS(source_sha=4e024002…, linux/x86_64, protocols 3/1/1)
marqdo tool remove prove                                          PASS

证据:docs/evidence/2026-11-30-buildinfo-and-release-matrix.md。

未验证:Lean 证明搜索/独立 replay(无固定后端)、macOS/Windows 原生、公开 rc.6 归档(#7)、正式 beta.2 release。本 PR 不创建 tag/release。

边界

  • 只改 tools/prove;无新跨仓依赖;无 parser/合同复制;未改证明语义、bundle 或 Tool 协议。

refs #9 #8 #5 #7

## 概述 实现 `marqdo#56` 在 Prove 责任仓的发行工程切片(#9),并复核 #5/#7 边界;不改变证明语义、bundle schema 或 Tool 协议。 ## 交付 1. **离线 build-info 诊断**(#9 / marqdo#56 §9.2) - `marqdo-prove --build-info` 输出 `marqdo.build-info` v1:产品/版本、构建内嵌源码 SHA(dev 为 null)、平台、协议 revision(Analysis 3 / CLI Tool API 1 / proof schema 1)、固定 Lean 4.36 + Mathlib 身份与后端发现契约。 - 不打开文稿、不启动 Lean、不联网、不输出绝对路径或凭据(单测强制)。 - `build.rs` 在 release 构建嵌入 `MARQDO_BUILD_SOURCE_SHA`,把报告绑定到 tag commit。 2. **发布/平台合同**(#9) - `docs/RELEASE.md` 新增 §2.1:Linux x86_64 为 supported beta;Linux aarch64 unsupported;macOS/Windows UNVERIFIED;明确“打包通过 ≠ 证明验收”,Lean 验收只在专用后端 runner。 - 上游输入更新为 rc.6 candidate;README 记录诊断入口。 3. **#5/#7/#8 复核**:仓库 CI 无发布/持密钥步骤(发布是本地人工动作),建议 #5 关单;公开 rc.6 归档消费与 Lean replay 在本环境 UNVERIFIED。 ## 验证(真实,Linux x86_64 / glibc 2.43) ```text cargo fmt --all -- --check PASS cargo clippy --all-targets --locked -- -D warnings PASS cargo test --locked 96 passed, 0 failed, 11 ignored (Lean e2e, backend absent) MARQDO_BUILD_SOURCE_SHA=4e02400… sh scripts/package-tool.sh <out> PASS marqdo tool install <bundle>/tool.json PASS marqdo prove --build-info PASS(source_sha=4e024002…, linux/x86_64, protocols 3/1/1) marqdo tool remove prove PASS ``` 证据:`docs/evidence/2026-11-30-buildinfo-and-release-matrix.md`。 未验证:Lean 证明搜索/独立 replay(无固定后端)、macOS/Windows 原生、公开 rc.6 归档(#7)、正式 beta.2 release。本 PR 不创建 tag/release。 ## 边界 - 只改 tools/prove;无新跨仓依赖;无 parser/合同复制;未改证明语义、bundle 或 Tool 协议。 refs #9 #8 #5 #7
cflmy added 2 commits 2026-11-30 12:04:18 +08:00
Deliver the prove-owned release-engineering slice of marqdo-prove#9 (with #5/#7
boundary review) without changing proof semantics.

- `marqdo-prove --build-info` emits one offline `marqdo.build-info` v1 document:
  product/version, build-embedded source commit (null for dev builds),
  platform, protocol revisions (Analysis 3, CLI Tool API 1, proof schema 1) and
  the pinned Lean 4.36/Mathlib identity plus backend discovery contract. No
  document is opened, no Lean process starts, no network/paths/credentials.
- `build.rs` embeds `MARQDO_BUILD_SOURCE_SHA`; release builds can bind the
  report to the exact tag commit.
- docs/RELEASE.md records the platform matrix (Linux x86_64 supported beta,
  macOS/Windows UNVERIFIED/unsupported), the honest "package build is not proof
  acceptance" rule, and the rc.6 candidate as upstream input. README documents
  the diagnostics entry point.
- New unit test fixes the schema, protocol revisions, backend pin and the
  no-path/no-secret rule.

No new cross-repo dependency; no proof semantics or bundle schema change.
cflmy merged commit 931b421ba7 into master 2026-11-30 12:12:25 +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-prove#10