Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
917c12e760 | ||
|
|
6e88100089 | ||
|
|
d8fa201b28 |
No files matched your search
@@ -0,0 +1,23 @@
|
|||||||
|
# Unified Woodpecker CI for a Rust Marqdo Tool.
|
||||||
|
#
|
||||||
|
# One published `marqdo-ci-rust` image contains the pinned toolchain and the
|
||||||
|
# released CLI/Bundle (`MARQDO_BIN`, `MARQDO_STDLIB_DIR` preset); the lane only
|
||||||
|
# runs this repository's own checks. No per-run rustup/apt/CLI download.
|
||||||
|
when:
|
||||||
|
event: [push, pull_request, manual]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
test:
|
||||||
|
image: git.cflmy.cn/cflmy/marqdo-ci-rust:3.0.0-rc.5
|
||||||
|
environment:
|
||||||
|
MARQDO_BIN: /opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/marqdo
|
||||||
|
MARQDO_STDLIB_DIR: /opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/stdlib
|
||||||
|
MARQDO_TEST_BIN: /opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/marqdo
|
||||||
|
MARQDO_TOOL_HOME: /tmp/marqdo-tool-home
|
||||||
|
commands:
|
||||||
|
- python3 tools/ci/test_release_metadata.py
|
||||||
|
- cargo fmt --all -- --check
|
||||||
|
- cargo clippy --workspace --all-targets --locked -- -D warnings
|
||||||
|
- cargo test --workspace --locked
|
||||||
|
- cargo build --release --locked
|
||||||
|
- target/release/marqdo-knowledge --help
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
<!-- marqdo:repo-conventions v1 -->
|
||||||
|
# AGENTS.md — knowledge
|
||||||
|
|
||||||
|
全局规范唯一来源:[marqdo 仓库开发规范](https://git.cflmy.cn/cflmy/marqdo/src/branch/main/docs/REPOSITORY-CONVENTIONS.md)。本文件只写本仓边界,不复制全局规范或合同正文。
|
||||||
|
|
||||||
|
## 1. 本仓定位与唯一权威
|
||||||
|
|
||||||
|
- catalog ID:`knowledge`;父级:根;角色:tool;状态:active。
|
||||||
|
- 职责/本仓拥有:确定性离线知识编译/检索与文档投影
|
||||||
|
- 本仓不拥有:Markdown/语言 parser、CLI 核心、其它业务实现
|
||||||
|
- 权威输入/合同:CLI 公开 Analysis 3;`MARQDO_BIN` 与项目输入
|
||||||
|
|
||||||
|
## 2. 必做 / 禁止
|
||||||
|
|
||||||
|
| 必做 | 禁止 |
|
||||||
|
| --- | --- |
|
||||||
|
| 只在本仓职责内修改,先开本仓工单 | 实现其它仓库功能,复制 parser/实现/合同 |
|
||||||
|
| 用真实 CLI/制品与独立期望测试 | mock、字符串检查或原型冒充真实验收/PASS |
|
||||||
|
| 依赖使用固定 SHA/摘要与显式输入 | 依赖父仓 checkout、兄弟仓相对路径、浮动分支 |
|
||||||
|
| 未运行写 `UNVERIFIED` | 伪造 entry/版本/CI 徽章/gitlink/发布资产 |
|
||||||
|
| 记录 SHA、制品摘要、平台、命令、退出码 | 提交密钥、凭证、构建产物或本地绝对路径 |
|
||||||
|
| 跨仓变更走 C2 → B2 → A2 晋升 | 自动 tag/release/合并,或直接改父仓/兄弟仓 |
|
||||||
|
|
||||||
|
- 不新增第二 catalog/manifest/lock/版本表/发布流程;不为单功能拆仓或建空壳仓。
|
||||||
|
- 不在本仓登记其它仓库后代路径;治理树最多两级 gitlink。
|
||||||
|
|
||||||
|
## 3. 构建、测试与证据
|
||||||
|
|
||||||
|
- CI/验收入口:`scripts/ci.sh`(非交互、失败非零、不打印秘密、只写声明输出;构建与发布权限分离)。
|
||||||
|
- 输入与依赖:CLI 公开 Analysis 3;`MARQDO_BIN` 与项目输入
|
||||||
|
- 交付:Tool bundle + `tool.json` 与知识投影验收证据
|
||||||
|
- 证据:候选 SHA、依赖/制品 SHA-256、平台/工具链、命令与退出码、日志位置、测试范围;FAIL/UNVERIFIED 不得写成 PASS。
|
||||||
|
|
||||||
|
## 4. 工单路由
|
||||||
|
|
||||||
|
- 公共协议/字段缺失 → `marqdo-cli`;检索/投影语义 → 本仓。
|
||||||
|
- 不把知识检索做成第二套文档 parser。
|
||||||
+10
-2
@@ -7,7 +7,14 @@ must not be claimed as passing.
|
|||||||
## Release state
|
## Release state
|
||||||
|
|
||||||
- Channel: **beta** (`0.1.0-beta.3`), Linux x86_64. Not a stable claim.
|
- Channel: **beta** (`0.1.0-beta.3`), Linux x86_64. Not a stable claim.
|
||||||
- Release notes: [`releases/0.1.0-beta.3.md`](releases/0.1.0-beta.3.md).
|
- Release: <https://git.cflmy.cn/cflmy/marqdo-knowledge/releases/tag/v0.1.0-beta.3>
|
||||||
|
(prerelease; tag commit `3edad237cfa92fc59822cfa13dd5480c3fac6532`; published
|
||||||
|
archive SHA-256
|
||||||
|
`feaa99701c01123c6eab3e804226dbb4096c3272b1e4f917c421233948198c55`).
|
||||||
|
- Release notes: [`releases/0.1.0-beta.3.md`](releases/0.1.0-beta.3.md);
|
||||||
|
release evidence: [`evidence/2026-11-26-beta.3-release.md`](evidence/2026-11-26-beta.3-release.md).
|
||||||
|
- `v0.1.0-beta.2` was withdrawn (release lane failed before packaging); its tag
|
||||||
|
was deleted.
|
||||||
- CI/CD: [`.woodpecker/main.yml`](../.woodpecker/main.yml),
|
- CI/CD: [`.woodpecker/main.yml`](../.woodpecker/main.yml),
|
||||||
[`.github/workflows/ci.yml`](../.github/workflows/ci.yml) and
|
[`.github/workflows/ci.yml`](../.github/workflows/ci.yml) and
|
||||||
[`scripts/ci.sh`](../scripts/ci.sh); procedure in [`ci.md`](ci.md) and
|
[`scripts/ci.sh`](../scripts/ci.sh); procedure in [`ci.md`](ci.md) and
|
||||||
@@ -58,7 +65,8 @@ must not be claimed as passing.
|
|||||||
| Windows/macOS native testing | Release candidate platform is Linux x86_64 only. |
|
| Windows/macOS native testing | Release candidate platform is Linux x86_64 only. |
|
||||||
| Upstream batch `--documents` Analysis interface (U01) | Current upstream exposes per-entry `check --emit`; this tool invokes it per `.mq.md` entry and merges contexts, as the specification permits for the development stage. |
|
| Upstream batch `--documents` Analysis interface (U01) | Current upstream exposes per-entry `check --emit`; this tool invokes it per `.mq.md` entry and merges contexts, as the specification permits for the development stage. |
|
||||||
| Release archive native install on other platforms | Archive was built and cold-installed on Linux x86_64 only. |
|
| Release archive native install on other platforms | Archive was built and cold-installed on Linux x86_64 only. |
|
||||||
| CI provider run URL for this beta | The pipeline configuration is committed; no external Woodpecker/GitHub run URL is recorded in this workspace. Local lanes were executed on the release SHA. |
|
| Automatic CI publication of the Gitea release | The Woodpecker instance did not inject the repository token into tag pipelines; the tag lane records build/smoke evidence and a publish-skipped notice, and the prerelease was published from the same tagged SHA by a reviewed local invocation. |
|
||||||
|
| GitHub Actions run for this beta | The GitHub workflow is committed but this workspace has no GitHub remote/run; the Woodpecker lane is the executed CI evidence. |
|
||||||
| Version-freeze reproducibility of `RELEASE_INFO.json` | It contains build metadata (`built_at_utc`, rustc/cargo versions); the archive SHA is recorded by the pipeline, not reproducible byte-for-byte from the same commit. |
|
| Version-freeze reproducibility of `RELEASE_INFO.json` | It contains build metadata (`built_at_utc`, rustc/cargo versions); the archive SHA is recorded by the pipeline, not reproducible byte-for-byte from the same commit. |
|
||||||
| Incremental write-granularity benchmark | Incremental compiles reuse facts (no re-analysis for plain-only edits) but rewrite the projection inside one transaction; the specification's write-count benchmark has not been run. |
|
| Incremental write-granularity benchmark | Incremental compiles reuse facts (no re-analysis for plain-only edits) but rewrite the projection inside one transaction; the specification's write-count benchmark has not been run. |
|
||||||
|
|
||||||
|
|||||||
+11
@@ -43,6 +43,17 @@ recording a new Analysis fixture artifact.
|
|||||||
| release build | `cargo build --release --locked` |
|
| release build | `cargo build --release --locked` |
|
||||||
| deterministic package + cold install | `python3 tools/release/package.py ... && python3 tools/release/smoke.py --archive ...` |
|
| deterministic package + cold install | `python3 tools/release/package.py ... && python3 tools/release/smoke.py --archive ...` |
|
||||||
|
|
||||||
|
## Forge publication from the tag lane
|
||||||
|
|
||||||
|
The tag-only release lane builds and smoke-tests the deterministic archive and
|
||||||
|
then invokes `tools/release/publish-gitea.py` when `GITEA_TOKEN` is present in
|
||||||
|
the step environment. If the Woodpecker instance does not inject repository
|
||||||
|
secrets into tag pipelines, the lane prints a `publish: skipped` notice, keeps
|
||||||
|
the build/smoke evidence, and the prerelease is published from the same tagged
|
||||||
|
SHA by a reviewed local invocation with the token read from a local-only
|
||||||
|
environment file. Never put the token in the repository, pipeline config, logs
|
||||||
|
or documentation.
|
||||||
|
|
||||||
## Not gated by CI (explicit non-claims)
|
## Not gated by CI (explicit non-claims)
|
||||||
|
|
||||||
- Real-model semantic quality benchmark (§8.3/§16) — needs a pinned model and
|
- Real-model semantic quality benchmark (§8.3/§16) — needs a pinned model and
|
||||||
|
|||||||
@@ -0,0 +1,107 @@
|
|||||||
|
# Evidence: 0.1.0-beta.3 beta release
|
||||||
|
|
||||||
|
Date: 2026-11-26 (Asia/Shanghai)
|
||||||
|
Release channel: **beta** (not a stable-version claim)
|
||||||
|
Platform: Linux x86_64
|
||||||
|
Tool version: `0.1.0-beta.3`
|
||||||
|
Source/tag commit: `3edad237cfa92fc59822cfa13dd5480c3fac6532`
|
||||||
|
Tag: `v0.1.0-beta.3` (annotated)
|
||||||
|
|
||||||
|
Core CLI baseline: `cflmy/marqdo-cli` `3.0.0-rc.4`
|
||||||
|
(`4bbefc92449ee480c8a2c89b0308feb4cda8d0e7`), Analysis revision 3.
|
||||||
|
|
||||||
|
Contracts: `marqdo.cli-tool` revision 1, tool API revision 1, consumed Analysis
|
||||||
|
revision 3, SQLite schema revision 1, result/error envelope schema_version 1,
|
||||||
|
OKF 0.3.
|
||||||
|
|
||||||
|
## Published release
|
||||||
|
|
||||||
|
- Release URL:
|
||||||
|
<https://git.cflmy.cn/cflmy/marqdo-knowledge/releases/tag/v0.1.0-beta.3>
|
||||||
|
- Gitea release id: 76, `prerelease: true`, `draft: false`
|
||||||
|
- Assets uploaded and verified through the Gitea API:
|
||||||
|
- `marqdo-knowledge-0.1.0-beta.3-x86_64-unknown-linux-gnu.tar.gz` (3,838,786 bytes)
|
||||||
|
- `marqdo-knowledge-0.1.0-beta.3-x86_64-unknown-linux-gnu.tar.gz.sha256`
|
||||||
|
- `RELEASE_INFO.json`
|
||||||
|
- `FILES.sha256`
|
||||||
|
- `smoke-evidence.json`
|
||||||
|
- Published archive SHA-256:
|
||||||
|
`feaa99701c01123c6eab3e804226dbb4096c3272b1e4f917c421233948198c55`
|
||||||
|
- Published archive `source_sha`: `3edad237cfa92fc59822cfa13dd5480c3fac6532`
|
||||||
|
|
||||||
|
## CI/CD evidence
|
||||||
|
|
||||||
|
Tag-only Woodpecker pipeline **#11**: **success** on commit `3edad237`.
|
||||||
|
|
||||||
|
- Pipeline: <https://ci.cflmy.cn/repos/4/pipeline/11>
|
||||||
|
- Lanes: `test` (metadata consistency, fmt, clippy `-D warnings`, locked
|
||||||
|
workspace tests), `minimum-rust` (1.89 check), `core-analysis` (builds the
|
||||||
|
pinned core CLI and runs the real Analysis integration tests), `release`
|
||||||
|
(locked release build, deterministic package, cold-install smoke).
|
||||||
|
- CI-produced archive SHA-256 (same source commit, CI build environment):
|
||||||
|
`358acbb2279740b35dd800764ac649b7a122e4940c7209ad99c306c12e55642c`
|
||||||
|
- CI smoke result: `smoke: OK`; packaged example compile 5 documents, query
|
||||||
|
4 hits, check database current with 0 errors.
|
||||||
|
|
||||||
|
Local gates on the same source commit:
|
||||||
|
|
||||||
|
- `python3 tools/ci/test_release_metadata.py`: PASS.
|
||||||
|
- `cargo fmt --all -- --check`: clean.
|
||||||
|
- `cargo clippy --workspace --all-targets --locked -- -D warnings`: clean.
|
||||||
|
- `cargo test --workspace --locked` with the real rc.4 core binary:
|
||||||
|
139 passed / 0 failed.
|
||||||
|
- `cargo build --release --locked`: clean.
|
||||||
|
- Local deterministic package and `tools/release/smoke.py` against the real
|
||||||
|
core CLI: `smoke: OK` (checksum/manifest/version, install, help, compile,
|
||||||
|
query, check, remove).
|
||||||
|
|
||||||
|
The CI archive and the published local archive are different byte streams
|
||||||
|
because they were built in different build environments, but both record the
|
||||||
|
same `SOURCE_SHA` and the same tool/contract versions. The published asset and
|
||||||
|
its checksum are the authoritative artifact for this release; the CI archive SHA
|
||||||
|
is recorded for traceability only.
|
||||||
|
|
||||||
|
## Publication path and known infrastructure limitation
|
||||||
|
|
||||||
|
This Woodpecker instance (3.20.1) did not inject the repository `GITEA_TOKEN`
|
||||||
|
secret into tag pipelines, neither as an implicit repo secret nor through an
|
||||||
|
explicit `environment.from_secret` mapping. The tag lane therefore keeps the
|
||||||
|
deterministic package and cold-install smoke as its CI evidence and records a
|
||||||
|
`publish: skipped` notice instead of failing. The Gitea prerelease was published
|
||||||
|
from the same tagged source commit by a reviewed local invocation of
|
||||||
|
`tools/release/publish-gitea.py`; the token was read from the local-only
|
||||||
|
`.secrets/release.env` (git-ignored) and never printed or committed.
|
||||||
|
|
||||||
|
The pipeline is configured to publish automatically when the secret injection
|
||||||
|
becomes available; no source or release change is required for that.
|
||||||
|
|
||||||
|
## Withdrawn tag
|
||||||
|
|
||||||
|
`v0.1.0-beta.2` was withdrawn and its remote tag deleted. Its tag-only release
|
||||||
|
lane failed before packaging because the lane did not build the tool release
|
||||||
|
binary; no archive or Gitea release was produced for it. Do not use that tag.
|
||||||
|
|
||||||
|
## Reproduction
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# From the tagged commit, with a compatible core CLI:
|
||||||
|
python3 tools/ci/test_release_metadata.py
|
||||||
|
cargo fmt --all -- --check
|
||||||
|
cargo clippy --workspace --all-targets --locked -- -D warnings
|
||||||
|
MARQDO_TEST_BIN=/path/to/marqdo cargo test --workspace --locked
|
||||||
|
cargo build --release --locked
|
||||||
|
python3 tools/release/package.py \
|
||||||
|
--source-sha "$(git rev-parse HEAD)" \
|
||||||
|
--version "$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -1)"
|
||||||
|
MARQDO_BIN=/path/to/marqdo python3 tools/release/smoke.py \
|
||||||
|
--archive "dist/marqdo-knowledge-0.1.0-beta.3-x86_64-unknown-linux-gnu.tar.gz"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Not evidence for
|
||||||
|
|
||||||
|
- Real-model semantic retrieval quality (protocol mock only).
|
||||||
|
- Specification §16 retrieval/performance gates, latency/RSS/build-time or
|
||||||
|
incremental write-volume benchmarks.
|
||||||
|
- Windows/macOS platform support.
|
||||||
|
- Upstream batch Analysis interface (per-entry `check --emit` is used).
|
||||||
|
- Byte-identical archive reproducibility across different build environments.
|
||||||
@@ -30,7 +30,7 @@ Contract versions (unchanged from beta.1):
|
|||||||
traceback when the release binary is absent.
|
traceback when the release binary is absent.
|
||||||
- No tool behaviour, CLI surface, contract or schema change.
|
- No tool behaviour, CLI surface, contract or schema change.
|
||||||
|
|
||||||
Release evidence produced by the pipeline on this SHA:
|
Release evidence produced for this SHA:
|
||||||
|
|
||||||
- metadata consistency gate PASS;
|
- metadata consistency gate PASS;
|
||||||
- fmt/clippy/tests (including the real rc.4 Analysis integration) PASS;
|
- fmt/clippy/tests (including the real rc.4 Analysis integration) PASS;
|
||||||
@@ -39,8 +39,8 @@ Release evidence produced by the pipeline on this SHA:
|
|||||||
- cold-install smoke through the real core CLI: archive checksum/manifest/
|
- cold-install smoke through the real core CLI: archive checksum/manifest/
|
||||||
version verified, install -> help -> compile packaged example -> query ->
|
version verified, install -> help -> compile packaged example -> query ->
|
||||||
check (current, 0 errors) -> remove;
|
check (current, 0 errors) -> remove;
|
||||||
- Gitea prerelease for the tag with the archive and evidence assets attached
|
- Gitea prerelease for the tag with the archive and evidence assets attached;
|
||||||
(recorded in `dist/gitea-release-evidence.json` by the release lane).
|
see the Evidence section below for URLs and checksums.
|
||||||
|
|
||||||
## What is complete in this beta
|
## What is complete in this beta
|
||||||
|
|
||||||
@@ -129,6 +129,19 @@ Diagnostics never include source text, credentials or absolute paths.
|
|||||||
integration and local cold install.
|
integration and local cold install.
|
||||||
- `docs/STATUS.md` — implemented/tested vs NOT RUN matrix.
|
- `docs/STATUS.md` — implemented/tested vs NOT RUN matrix.
|
||||||
- `docs/ci.md`, `docs/releasing.md` — gates, non-gates and frozen-SHA procedure.
|
- `docs/ci.md`, `docs/releasing.md` — gates, non-gates and frozen-SHA procedure.
|
||||||
- Pipeline run, archive checksum, `FILES.sha256`, `RELEASE_INFO.json`,
|
- Gitea prerelease:
|
||||||
`dist/smoke-evidence.json` and the Gitea prerelease record the same release
|
<https://git.cflmy.cn/cflmy/marqdo-knowledge/releases/tag/v0.1.0-beta.3>
|
||||||
SHA.
|
(release id 76, `prerelease: true`) with the archive, sidecar checksum,
|
||||||
|
`RELEASE_INFO.json`, `FILES.sha256` and `smoke-evidence.json` attached.
|
||||||
|
- Source/tag commit `3edad237cfa92fc59822cfa13dd5480c3fac6532`; published
|
||||||
|
archive SHA-256
|
||||||
|
`feaa99701c01123c6eab3e804226dbb4096c3272b1e4f917c421233948198c55`.
|
||||||
|
- CI tag pipeline #11 success:
|
||||||
|
<https://ci.cflmy.cn/repos/4/pipeline/11>; CI archive SHA-256
|
||||||
|
`358acbb2279740b35dd800764ac649b7a122e4940c7209ad99c306c12e55642c`
|
||||||
|
(different build environment, same `SOURCE_SHA`).
|
||||||
|
- Full record: [`docs/evidence/2026-11-26-beta.3-release.md`](../evidence/2026-11-26-beta.3-release.md).
|
||||||
|
- Note: this Woodpecker instance does not inject repository secrets into tag
|
||||||
|
pipelines, so the tag lane records build/smoke evidence and a
|
||||||
|
`publish: skipped` notice; the prerelease was published from the same tagged
|
||||||
|
SHA by a reviewed local invocation of `tools/release/publish-gitea.py`.
|
||||||
Reference in new issue
Block a user