docs(release): packaging, examples, evidence and honest status matrix

- add packaging/tool.json, release archive and verification scripts, CI
  workflow and a mixed Markdown/OKF/Marqdo example
- record real T01 evidence: cold install in an isolated MARQDO_TOOL_HOME,
  dispatch, compile, query, check and remove against marqdo 3.0.0-rc.4
- refresh STATUS with implemented/tested areas and explicit NOT RUN items
  (real-model semantic quality, performance/retrieval benchmarks, non-Linux
  platforms, release-archive cold install, incremental write-volume benchmark)
- document OKF link-mode limitation, incremental write granularity and
  single-character query bounds in the current contract and architecture
- give every CLI option practical examples in --help
This commit is contained in:
marqdo-knowledge committed 2026-11-26 02:30:03 +08:00
1 parent 87b9c132aa
commit 172271fe62
16 files changed
+328 -43

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
# Build and package a release archive with tool.json and the binary entrypoint.
set -eu
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' "$ROOT/Cargo.toml" | head -1)
TARGET=${TARGET:-x86_64-unknown-linux-gnu}
DIST="$ROOT/dist/marqdo-knowledge-$VERSION-$TARGET"
rm -rf "$DIST"
mkdir -p "$DIST/bin"
"$ROOT/scripts/cargo.sh" build --release --locked
cp "$ROOT/target/release/marqdo-knowledge" "$DIST/bin/marqdo-knowledge"
chmod 755 "$DIST/bin/marqdo-knowledge"
cp "$ROOT/packaging/tool.json" "$DIST/tool.json"
cp "$ROOT/README.md" "$ROOT/LICENSE-APACHE" "$DIST/"
mkdir -p "$DIST/docs" "$DIST/spec"
cp -r "$ROOT/docs/STATUS.md" "$ROOT/docs/architecture" "$DIST/docs/"
cp -r "$ROOT/spec/knowledge.md" "$DIST/spec/"
ARCHIVE="$DIST.tar.gz"
tar -C "$(dirname "$DIST")" -czf "$ARCHIVE" "$(basename "$DIST")"
( cd "$(dirname "$ARCHIVE")" && sha256sum "$(basename "$ARCHIVE")" > "$(basename "$ARCHIVE").sha256" )
printf 'archive: %s\n' "$ARCHIVE"
cat "$ARCHIVE.sha256"