Files
marqdo-knowledge 22c3d92b47
ci/woodpecker/push/main Pipeline was successful
CI / fmt + clippy + workspace tests (push) Waiting to run
CI / MSRV check (1.89) (push) Waiting to run
CI / real Analysis integration (pinned core CLI) (push) Waiting to run
ci/woodpecker/tag/main Pipeline failed
release: 0.1.0-beta.3 (fix beta.2 release lane)
- 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
2026-11-26 09:17:27 +08:00

75 lines
3.1 KiB
Markdown

# marqdo-knowledge
Deterministic, offline knowledge compiler for Markdown and Marqdo documents.
`marqdo-knowledge` turns a directory of existing `.md` / `.mq.md` files into a
single rebuildable SQLite projection: document structure, heading scopes,
links, imports, function identities and static calls. It is a separate CLI tool
dispatched by `marqdo` through the `marqdo.cli-tool` protocol; it never executes
knowledge, never fetches documents from the network and never rewrites source
files.
```sh
marqdo tool install ./dist/tool.json
cd my-knowledge
marqdo knowledge compile .
marqdo knowledge query '如何判断量子态是否合法' --kind function
marqdo knowledge query '概率归一化' --format markdown
marqdo knowledge check .
```
The only persistent artifact of normal use is `.marqdo/knowledge.sqlite`. It is
derived, can be deleted at any time and is rebuilt from the Markdown sources.
There is no project configuration file, no metadata sidecar, no node manifest
and no separate knowledge IR file.
## Release
Current release: **`0.1.0-beta.3`** (beta channel, Linux x86_64). See
[`CHANGELOG.md`](CHANGELOG.md) and
[`docs/releases/0.1.0-beta.3.md`](docs/releases/0.1.0-beta.3.md) for what is
included and what is explicitly NOT done. CI/CD configuration is described in
[`docs/ci.md`](docs/ci.md); the release procedure is in
[`docs/releasing.md`](docs/releasing.md).
The first stable-version gate is not claimed. The implemented vertical path is
compile/check/query over plain Markdown, Marqdo Analysis v3 and OKF v0.3, with a
single rebuildable SQLite projection, exact/lexical/fuzzy/graph/semantic
channels, slices and explicit opt-in embeddings. [`docs/STATUS.md`](docs/STATUS.md)
is the authoritative capability matrix including **NOT RUN** items (real-model
semantic quality, performance benchmarks, non-Linux platforms, release-archive
cold install). **Do not infer unimplemented behavior from design documents.**
## Building
```sh
cargo build --release --locked
cargo test --workspace --locked
```
The release candidate platform is Linux x86_64. The core CLI used for static
analysis is an external dependency: this tool calls `$MARQDO_BIN` (or the
explicit `--marqdo-bin` development override) with `check ENTRY --emit PATH`.
Plain `.md` documents are parsed by this tool's own CommonMark/GFM projection;
`.mq.md` documents always use the core CLI's current public Analysis contract
(`marqdo.analysis`, revision 3).
## Commands
```text
marqdo knowledge compile [ROOT] [--exclude GLOB ...] [--rebuild] [--json]
marqdo knowledge check [ROOT] [--okf] [--json]
marqdo knowledge query QUERY [--root ROOT] [--exact] [--kind KIND] [--limit N]
[--depth N] [--relation KIND ...] [--reverse] [--slice document|execution|hybrid]
[--format markdown|json] [--snapshot] [--semantic]
```
See [`spec/knowledge.md`](spec/knowledge.md) for the contract,
[`docs/architecture/OVERVIEW.md`](docs/architecture/OVERVIEW.md) for the
internal architecture and [`docs/evidence/`](docs/evidence/) for executed
evidence. Release verification: `MARQDO_BIN=/path/to/marqdo scripts/ci.sh release`.
## License
Apache-2.0. See [`LICENSE-APACHE`](LICENSE-APACHE).