- build target/release/marqdo-knowledge in both tag-release lanes before the deterministic packager; beta.2 failed exactly at that missing step and produced no archive or Gitea release - package.py now fails with a corrective message instead of a traceback when the release binary is absent - bump the tool to 0.1.0-beta.3, add release notes and CHANGELOG entry and mark v0.1.0-beta.2 withdrawn; contracts and SQLite schema are unchanged - keep the full completed / NOT complete inventory and beta limitations unchanged
135 lines
6.2 KiB
Markdown
135 lines
6.2 KiB
Markdown
# marqdo-knowledge 0.1.0-beta.3
|
|
|
|
Release date: 2026-11-26
|
|
Release channel: **beta** (not a stable-version claim)
|
|
Platform: Linux x86_64 (glibc)
|
|
Supersedes: `0.1.0-beta.2` (whose tag-only release lane failed because the lane
|
|
did not build the tool release binary before packaging; the `v0.1.0-beta.2` tag
|
|
is withdrawn and must not be used).
|
|
|
|
Core CLI integration baseline: `cflmy/marqdo-cli` `3.0.0-rc.4`
|
|
(`4bbefc92449ee480c8a2c89b0308feb4cda8d0e7`)
|
|
|
|
Contract versions (unchanged from beta.1):
|
|
|
|
| Boundary | Version |
|
|
|---|---|
|
|
| `marqdo.cli-tool` | revision 1 |
|
|
| tool API revision | 1 |
|
|
| consumed `marqdo.analysis` | revision 3 (current closed shape) |
|
|
| SQLite schema | revision 1 |
|
|
| result/error envelope | schema_version 1 |
|
|
| OKF | 0.3 |
|
|
|
|
## Changes since beta.2 (CI release lane only)
|
|
|
|
- Woodpecker and GitHub tag-release lanes now run
|
|
`cargo build --release --locked` for the tool before invoking the deterministic
|
|
packager; beta.2 failed at this point and produced no archive.
|
|
- `tools/release/package.py` fails with a corrective message instead of a
|
|
traceback when the release binary is absent.
|
|
- No tool behaviour, CLI surface, contract or schema change.
|
|
|
|
Release evidence produced by the pipeline on this SHA:
|
|
|
|
- metadata consistency gate PASS;
|
|
- fmt/clippy/tests (including the real rc.4 Analysis integration) PASS;
|
|
- deterministic archive with `SOURCE_SHA`, `FILES.sha256`, `RELEASE_INFO.json`
|
|
and sidecar SHA-256;
|
|
- cold-install smoke through the real core CLI: archive checksum/manifest/
|
|
version verified, install -> help -> compile packaged example -> query ->
|
|
check (current, 0 errors) -> remove;
|
|
- Gitea prerelease for the tag with the archive and evidence assets attached
|
|
(recorded in `dist/gitea-release-evidence.json` by the release lane).
|
|
|
|
## What is complete in this beta
|
|
|
|
- `compile`, `check`, `query` exactly as documented in
|
|
[`0.1.0-beta.1.md`](0.1.0-beta.1.md): deterministic discovery and snapshot,
|
|
plain Markdown projection, the current public Analysis v3 adapter, unified
|
|
graph, one rebuildable SQLite projection, atomic rebuild and transactional
|
|
incremental update, stale-snapshot refusal, OKF v0.3 metadata recognition and
|
|
`check --okf`, exact/lexical/fuzzy/graph/semantic channels, weighted RRF,
|
|
bounded graph expansion, document/execution/hybrid slices.
|
|
- Explicit OpenAI-compatible semantic indexing/query with strict response
|
|
validation, content/model-digest reuse and all-or-nothing publication.
|
|
- Deterministic packaging, per-file manifest, release metadata, cold-install
|
|
smoke verification, Gitea prerelease publication and CI gates for formatting,
|
|
lints, tests, MSRV, real core Analysis integration and release metadata.
|
|
- Security defaults unchanged: no execution, root-confined filesystem access,
|
|
offline by default, credentials only from the environment, atomic
|
|
publication, no schema migration or foreign-database overwrite.
|
|
|
|
## What is NOT complete in this beta
|
|
|
|
These are explicit non-claims; see [`docs/STATUS.md`](../STATUS.md).
|
|
|
|
1. **Real-model semantic quality benchmark**: only protocol, validation,
|
|
storage, reuse and fusion are exercised (local mock). No pinned model was
|
|
run; no semantic Recall@10 claim is made.
|
|
2. **Specification §16 retrieval and performance gates**: frozen multi-domain
|
|
dataset, held-out queries, Recall/MRR/nDCG, latency/RSS/build-time and
|
|
incremental write-volume benchmarks are NOT RUN.
|
|
3. **Platforms**: Linux x86_64 only. Windows/macOS are untested and not claimed.
|
|
4. **Upstream batch Analysis interface (U01)**: the pinned core exposes
|
|
per-entry `check --emit`; this beta invokes it per `.mq.md` entry and merges
|
|
contexts conservatively.
|
|
5. **Incremental write granularity**: facts reuse avoids re-analysis for
|
|
plain-only edits, but projection rows are rewritten in one transaction; the
|
|
write-volume benchmark is unmeasured.
|
|
6. **OKF compile-time absolute links**: root-absolute links receive OKF
|
|
semantics only in `check --okf`; `compile` keeps Native semantics.
|
|
7. **Single-character CJK queries**: bounded probe with truncation reporting,
|
|
not an exhaustive scan.
|
|
8. **No migration**: schema revision changes require `compile --rebuild`.
|
|
9. **Cross-toolchain reproducibility**: the archive is reproducible from the
|
|
same commit, binary and toolchain; byte-identical reproduction across
|
|
different Rust toolchains is not claimed.
|
|
|
|
## Install and first run
|
|
|
|
```sh
|
|
# Install the release bundle through a compatible core CLI:
|
|
marqdo tool install ./dist/marqdo-knowledge-0.1.0-beta.3-x86_64-unknown-linux-gnu
|
|
marqdo knowledge --help
|
|
marqdo knowledge compile ./examples/mixed --json
|
|
marqdo knowledge query '归一化' --root ./examples/mixed
|
|
marqdo knowledge check ./examples/mixed --json
|
|
marqdo tool remove knowledge
|
|
```
|
|
|
|
The tool requires a compatible core `marqdo` (`MARQDO_API_REVISION=1`,
|
|
Analysis revision 3) when dispatched. Direct development invocation accepts
|
|
`--marqdo-bin PATH`.
|
|
|
|
## Compatibility and upgrade notes
|
|
|
|
- Beta.3 is a drop-in replacement for beta.1: same CLI surface, contracts and
|
|
SQLite schema revision.
|
|
- Existing beta.1 databases remain readable (schema revision 1 unchanged); a
|
|
rebuild is not required.
|
|
- Any future schema revision change requires `compile --rebuild`; there is no
|
|
automatic migration.
|
|
- A database not created by this tool is never overwritten.
|
|
- The archive and `SOURCE_SHA` identify the exact source commit; checksums prove
|
|
content integrity only, not publisher authentication.
|
|
|
|
## Security notes
|
|
|
|
Default operation is offline. The only network path is an explicitly configured
|
|
embedding endpoint (compile-time embedding options or `--semantic`). Remote
|
|
endpoints require HTTPS and explicit `--allow-remote-embedding`; loopback HTTP is
|
|
allowed for local compatible services. The API key is read from
|
|
`MARQDO_KNOWLEDGE_EMBEDDING_API_KEY` and is never stored, logged or printed.
|
|
Diagnostics never include source text, credentials or absolute paths.
|
|
|
|
## Evidence
|
|
|
|
- `docs/evidence/2026-11-26-implementation.md` — tests, real Analysis
|
|
integration and local cold install.
|
|
- `docs/STATUS.md` — implemented/tested vs NOT RUN matrix.
|
|
- `docs/ci.md`, `docs/releasing.md` — gates, non-gates and frozen-SHA procedure.
|
|
- Pipeline run, archive checksum, `FILES.sha256`, `RELEASE_INFO.json`,
|
|
`dist/smoke-evidence.json` and the Gitea prerelease record the same release
|
|
SHA.
|