Commit Graph
27 Commits
Author SHA1 Message Date
marqdo-knowledge d8fa201b28 docs(release): record 0.1.0-beta.3 publication evidence
CI / real Analysis integration (pinned core CLI) (push) Waiting to run
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
- add docs/evidence/2026-11-26-beta.3-release.md: tag/source commit, Gitea
  release URL and assets, published archive SHA-256, CI tag pipeline #11
  success and its archive SHA, local 139-test gate results, withdrawn beta.2
  tag, and the explicit secret-injection limitation with the reviewed local
  publish path
- link the release/evidence from docs/STATUS.md, the beta.3 release notes and
  docs/ci.md; keep the NOT RUN inventory unchanged
- record the local release/CI bookkeeping in the git-ignored .secrets notes
2026-11-26 09:59:32 +08:00
marqdo-knowledge 3edad237cf ci: only print publish evidence when the release was published
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/push/main Pipeline was successful
ci/woodpecker/tag/main Pipeline was successful
The tag lane keeps its deterministic build/smoke evidence even when the forge
secret is not injected; guard the final evidence print so the lane does not fail
on a skipped publication.
v0.1.0-beta.3
2026-11-26 09:46:47 +08:00
marqdo-knowledge 636c9bf14c ci: keep the tag lane green when the forge secret is not injected
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/push/main Pipeline was successful
ci/woodpecker/tag/main Pipeline failed
This Woodpecker instance does not expose repo secrets to tag pipelines even
with an explicit environment.from_secret mapping. The release lane now records
that fact and keeps the deterministic package/smoke evidence as the CI result;
publishing the prerelease from the same tagged SHA is a separate local step
(tools/release/publish-gitea.py, token only from the environment).
2026-11-26 09:40:59 +08:00
marqdo-knowledge 6fbbaea7ce ci: map the Gitea token into the release step explicitly
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/push/main Pipeline was successful
ci/woodpecker/tag/main Pipeline failed
Woodpecker does not auto-inject repo secrets into steps; map GITEA_TOKEN with
environment.from_secret so tools/release/publish-gitea.py can create the
prerelease and upload assets. The lane still fails closed with an actionable
message when the secret is absent.
2026-11-26 09:27:57 +08:00
marqdo-knowledge 22c3d92b47 release: 0.1.0-beta.3 (fix beta.2 release lane)
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
- 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
marqdo-knowledge 81b553f4df chore: ignore local-only release credentials
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/push/main Pipeline was successful
ci/woodpecker/tag/main Pipeline failed
The .secrets/ directory holds the local Gitea/Woodpecker release credentials
and must never be committed or pushed.
2026-11-26 09:11:59 +08:00
marqdo-knowledge 155d40393c ci: publish the beta prerelease to Gitea from the tag lane
- fetch the pinned core CLI from git.cflmy.cn in Woodpecker instead of relying
  on GitHub access from the internal runner
- add tools/release/publish-gitea.py: idempotent create/update of the
  prerelease for the tag and upload of archive, checksum, FILES.sha256,
  RELEASE_INFO.json and smoke evidence; token only from the environment
- the tag-only Woodpecker lane now publishes through that script and fails
  closed when the GITEA_TOKEN repo secret is missing
2026-11-26 09:11:34 +08:00
marqdo-knowledge 97a1706317 fix(release): create parent directories for staged documentation files
docs/STATUS.md, docs/ci.md and docs/releasing.md live below docs/, so the
staging copy needs an explicit parent mkdir.
2026-11-26 09:07:03 +08:00
marqdo-knowledge 7a39a88d17 chore: remove committed Python bytecode caches
These were accidentally staged by the release-tooling commit; __pycache__ is
now ignored.
2026-11-26 09:06:24 +08:00
marqdo-knowledge 1893e73445 chore: ignore Python bytecode caches from release tooling 2026-11-26 09:06:21 +08:00
marqdo-knowledge be8370321f fix(release): do not require a repository-root tool.json
The bundle manifest is copied from packaging/tool.json; keep it out of the
generic copy list so packaging no longer fails before staging.
2026-11-26 09:06:18 +08:00
marqdo-knowledge 2316af66f4 release: 0.1.0-beta.2 (release engineering)
- bump the tool to 0.1.0-beta.2; contracts and SQLite schema are unchanged
  from beta.1 (api_revision 1, analysis 3, schema 1, OKF 0.3)
- add detailed beta.2 release notes and CHANGELOG entry: deterministic archive
  and manifest, smoke evidence, metadata gate, CI/CD alignment; tool behaviour
  is unchanged and beta.1 remains a valid pre-release tag
- keep the complete / explicitly NOT complete inventory, compatibility,
  security and evidence sections; document that remote publication and the
  benchmark/real-model/platform gaps are still NOT RUN
- update README, STATUS and the public contract to the beta.2 release line
2026-11-26 09:05:29 +08:00
marqdo-knowledge 835f61dc01 ci: align release tooling with the upstream deterministic pipeline
- add tools/release/package.py: sorted, commit-timestamped, uid/gid-normalised
  deterministic archive; refuses dirty trees, source-SHA mismatch and stale
  versions; emits SOURCE_SHA, FILES.sha256 and RELEASE_INFO.json with binaries,
  protocol revisions, core baseline and manifest digest
- add tools/release/smoke.py: verifies checksum/manifest/source/version then
  cold-installs the archive through a real core CLI into an isolated
  MARQDO_TOOL_HOME and exercises help/compile/query/check/remove, writing smoke
  evidence
- add tools/ci/test_release_metadata.py: single CI gate for version/fact
  consistency across Cargo files, tool.json, spec, CHANGELOG, release notes,
  README and CI configuration
- Woodpecker and GitHub pipelines now run the metadata gate and use the Python
  packager/smoke test in the tag-only release lane; shell release scripts are
  thin wrappers; docs/ci.md and docs/releasing.md document gates and non-gates
2026-11-26 09:05:27 +08:00
marqdo-knowledge 85458c1d93 release: 0.1.0-beta.1
First beta. This is not a stable claim.

- bump the tool version to 0.1.0-beta.1 in Cargo.toml/Cargo.lock,
  packaging/tool.json and the public contract; no protocol/schema revision
  changes (api_revision 1, analysis 3, sqlite schema 1)
- add CHANGELOG.md and docs/releases/0.1.0-beta.1.md with a detailed
  completed / explicitly NOT completed inventory, compatibility, security,
  install and upgrade notes
- record the beta platform claim (Linux x86_64 only) and the CI/CD pointers in
  README and docs/STATUS.md, keeping real-model semantic quality, §16
  retrieval/performance gates, non-Linux platforms, upstream batch Analysis,
  incremental write-volume and OKF absolute-link compile semantics as NOT RUN
  or documented limitations
2026-11-26 09:01:16 +08:00
marqdo-knowledge d8d439e6d7 ci: add CI/CD pipelines and deterministic release tooling
Modeled on cflmy/marqdo-cli:
- Woodpecker pipeline with fmt/clippy/tests, MSRV 1.89 lane, a lane that builds
  the pinned core CLI and runs the real Analysis integration tests, and a
  tag-only release lane
- GitHub Actions mirror with the same gates plus artifact upload and
  prerelease publication
- scripts/ci.sh local lanes (test/minimum/core/release/all)
- package-release.sh now refuses a dirty tree or SOURCE_SHA mismatch, runs a
  locked release build and records SOURCE_SHA, RELEASE_INFO.json and SHA-256
- verify-release.sh cold-installs the archive into an isolated MARQDO_TOOL_HOME
  and runs the documented install/help/compile/query/check/remove smoke path
- docs/ci.md and docs/releasing.md document gates, explicit non-gates and the
  beta freeze/tag procedure
2026-11-26 09:01:13 +08:00
marqdo-knowledge 66be3e4464 docs(evidence): record release archive cold install
- build the locked release archive (tool.json + bin + docs/spec) and record its
  SHA-256
- cold install that archive with the real marqdo rc.4 CLI in an isolated
  MARQDO_TOOL_HOME: dispatch --help, compile the mixed example, query, check and
  remove all succeeded
- mark the archive lane verified on Linux x86_64 and keep other platforms
  explicitly NOT RUN; dist/ is a build artifact and is git-ignored
2026-11-26 02:32:44 +08:00
marqdo-knowledge 172271fe62 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
2026-11-26 02:30:03 +08:00
marqdo-knowledge 87b9c132aa feat(embedding): explicit OpenAI-compatible semantic channel
- add a transport client for one current backend protocol with loopback http,
  TLS-only remote endpoints, explicit remote consent, disabled redirects,
  bounded timeout/batch/payload/response/dimension and no credential in URLs
- validate responses strictly (count, index order, dimension, finite values,
  non-zero norm, mixed-model rejection) and abort publication when any vector
  is missing so a mixed index is never stored
- embed search units in the same transaction that writes the projection, with
  content-digest/model-digest guarded reuse for incremental compiles; the
  build metadata records endpoint/model/revision/dimension/distance/chunking
- add the semantic query channel behind explicit --semantic using an exact
  cosine scan with a bounded vector budget; default queries stay completely
  offline even when vectors exist
- add a local mock-server integration test proving protocol handling,
  cross-vocabulary recall, offline default behaviour, remote consent rules and
  all-or-nothing failure; real-model quality remains NOT RUN and is not claimed
2026-11-26 02:26:37 +08:00
marqdo-knowledge 514d9fbd4c feat(query): exact, lexical, fuzzy, graph and slice query surface
- exact channel resolves canonical ids, aliases and unique exact names only;
  multiple exact names are returned as candidates, never silently chosen
- lexical channel uses weighted FTS5 BM25 over CJK-bigram segmented fields and
  reports the matching field; fuzzy channel recalls via the gram index with
  bounded edit distance, CJK single-character and prefix fallbacks for typos
  whose bigrams do not overlap
- weighted RRF fuses per-node ranks (exact 1.5, lexical/fuzzy/semantic 1.0) and
  bounded graph expansion follows references both ways, contains children,
  calls/imports in their direction with --relation/--reverse, depth decay and
  explicit truncation; --kind filters after expansion
- document/execution/hybrid slices share one plan+materialise traversal, skip
  ancestor duplication, include module context for execution imports, report
  external/dynamic gaps, enforce the 32 KiB budget on UTF-8 boundaries and keep
  exact source text with path/span provenance
- stale databases are refused unless --snapshot is explicit; query never
  compiles implicitly and emits the single result envelope with honest
  channels/truncated/diagnostics
- add end-to-end query tests for CJK recall, typo recall, exact/ambiguous ids,
  kind filtering, graph neighbours, slices, staleness, missing database,
  no-result honesty and explicit semantic-config failure
2026-11-26 01:46:17 +08:00
marqdo-knowledge 66f3e168c4 feat(compiler): end-to-end compile and check orchestration
- resolve scope, discover exact snapshot, project plain Markdown, run real
  Analysis for .mq.md entries, cross-check module source bytes, merge contexts
  and reject uncovered/invalid Marqdo documents
- collect referenced local assets and known-missing paths before linking so a
  missing file is distinguished from an unindexed/excluded one
- incremental plan by content-digest change set: unchanged documents reuse
  digest-guarded facts; any .mq.md/manifest/lock/core-identity change triggers
  the conservative full re-analysis; plain-only edits never invoke Analysis
- no-op compiles preserve the stored snapshot and generation; rebuilds
  increment the generation and atomically replace the artifact
- recheck every source digest immediately before publishing, never mixing
  snapshots, and refuse to publish graphs with blocking diagnostics
- check validates sources, references, Analysis coverage, database structure
  and currentness, writes nothing and exits 1 for definite broken links
- add end-to-end tests for plain-only compile without a core binary, mixed
  real-Analysis compile, incremental/rebuild/no-op, stale database and broken
  links
2026-11-26 01:21:29 +08:00
marqdo-knowledge cca8fbdab1 feat(storage): one rebuildable SQLite projection with derived indexes
- add schema revision 1 with application id, singleton build row, documents,
  nodes, aliases, edges, contexts, inputs, diagnostics, search_units,
  FTS5 search_fts, grams and embeddings tables; spans and resolved-target
  invariants are enforced by CHECK constraints and foreign_keys=ON
- full rebuild stages a private database in the target directory and renames
  it atomically after source recheck and quick_check; a foreign or symlinked
  database is refused, never overwritten
- incremental publish replaces the projection inside one transaction, so
  readers see the old or the new complete snapshot and failures roll back to
  the last successful artifact
- store exact UTF-8 source bytes and digest-guarded normalised facts for the
  incremental re-analysis cache; inputs are content digests, never mtimes
- build one search unit per structural node/chunk with CJK bigram FTS
  segmentation, weighted FTS fields and bounded 2/3-gram fuzzy rows
- add read-only store API (nodes, aliases, edges, units, FTS/gram candidates,
  exact-name lookup, embeddings, diagnostics, integrity, currentness) and
  integration tests for publish/read/search/incremental/foreign-db safety
2026-11-26 01:10:39 +08:00
marqdo-knowledge 1871ded5ed feat(graph): unified node/edge graph with exact reference resolution
- add one Node/one Edge model over canonical JSON-tuple keys; root units map to
  their document node and Exec unit/function nodes are the same node
- build contains tree, statement and resource nodes, asset nodes and inert
  external nodes; keep every repeated link occurrence as its own edge
- resolve ordinary links relative to the source document with exactly one
  percent decode, fragment rules, numbered anchors, exact canonical-name
  fallback and explicit missing/ambiguous/not_loaded/out_of_scope/invalid states
- never re-bind a resolved upstream Marqdo target; preserve not_loaded and
  resolve it in root scope only through exact anchor/name rules; surface
  interface conflicts when upstream and knowledge mappings disagree
- map imports and calls to real nodes or explicit external/unresolved edges;
  builtin/plugin targets stay external symbols, never fabricated functions
- add deterministic logical digest and tests for contains, externals, repeated
  occurrences, ambiguity, anchors and missing-path distinctions
2026-11-26 00:49:53 +08:00
marqdo-knowledge 59d5afe10b feat(analysis): consume the current public Analysis v3 contract
- add the process boundary for the core CLI: explicit MARQDO_BIN/--marqdo-bin
  only (never PATH), argv-only invocation of check ENTRY --emit, bounded
  timeout, private temp artifact, exit checks and absolute-path sanitisation
- deserialize every Analysis record with closed serde shapes and validate
  semantic invariants that JSON Schema cannot express: identities, source
  digests, UTF-8 spans, unit tree/order/mode ancestry, anchors, functions and
  signatures, references states, calls, resources, diagnostics and budgets
- validate statement/expression trees structurally with depth and span checks
- convert accepted modules into DocumentFacts, preserving honest upstream
  reference states and one node per Exec unit/function
- merge modules across entry contexts only when identity and source agree,
  otherwise report knowledge.analysis_context_conflict
- add the real rc.4 Analysis positive fixture (with provenance and regeneration
  script), tamper negative tests and optional real-binary integration tests
2026-11-26 00:29:19 +08:00
marqdo-knowledge 682717a610 feat(document): normalized AST and plain Markdown projection
- add the closed normalized AST shape shared by the plain projection and
  upstream Analysis, with required-attribute, UTF-8 span and depth validation
- parse plain .md with pinned comrak 1.0.0 fixed options (GFM tables,
  footnotes, task lists, strikethrough, autolink, dollar math, front matter)
- convert parser line/column positions to exact half-open byte spans and keep
  BOM/CRLF/CJK byte identity
- build heading units (complete section spans, parents, occurrence-indexed
  duplicate paths), fixed-rule anchors, raw link facts and searchable blocks
- parse front matter as bounded YAML to JSON with alias/depth/size rejection
  while preserving the raw literal; plain @exec text stays inert
- add shared DocumentFacts vocabulary with serde caching shape
2026-11-26 00:11:30 +08:00
marqdo-knowledge f2f3b38eca feat(discovery): deterministic source snapshot with explicit boundaries
- resolve explicit dir/file roots, reject symlink roots and unsafe --exclude
  globs; keep the database at <root>/.marqdo/knowledge.sqlite
- walk without following symlinks, skip .git/.marqdo/target/node_modules and
  hidden entries, sort by byte-wise root-relative path
- read exact UTF-8 bytes with per-file/total/document budgets and digest
  based source-change detection before publishing
- record marqdo.yaml/marqdo.lock and referenced local assets as inputs;
  asset digests are bounded and never full-text indexed
- add validate_relative_path/resolve_link_path/safe_join primitives with
  traversal, drive/UNC, NUL and escape tests
2026-11-25 22:29:42 +08:00
marqdo-knowledge 430f950631 chore: bootstrap marqdo-knowledge crate, CLI surface and architecture docs
- pin Rust 2021 / MSRV 1.89 and exact dependency versions
- add typed model vocabulary (UTF-8 spans, canonical JSON-array node keys,
  node/edge/state enums, digest helpers) with unit tests
- add deterministic diagnostics and unified error/exit semantics (0/1/2)
- add the three-command clap surface with strict argument validation
- record the single-derived-artifact decision, architecture overview and
  current public contract; STATUS lists real evidence only
2026-11-25 22:24:51 +08:00
cflmy fbca63b972 init 2026-11-25 09:11:56 +08:00