feat: document role in query hits (#14 P2) #16

Merged
cflmy merged 1 commits from codex/issue-14-document-role into master 2026-11-30 17:11:13 +08:00
1 Commits
Author SHA1 Message Date
cflmy 98ed8e5c49 feat: expose document role in query hits
ci/woodpecker/pr/ci Pipeline was successful
Continue marqdo-knowledge#14 P2 with one additive, path-convention-derived
field on every query hit: role = entry (index.mq.md), index/log (OKF reserved
files), document (other .mq.md), concept (other .md), or unknown without a
source path.

This is navigation information for agents, not execution or authority: no new
metadata syntax, no extra source read, no second index. spec/knowledge.md
records the field and the path mapping; tests/query.rs compiles a real project
with all four roles; STATUS records implementation and test.

No release; schema_version stays 1 (additive optional-aware field).
2026-11-30 17:01:54 +08:00