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).
cflmy
merged commit 90d5d3d2fb into master2026-11-30 17:11:13 +08:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
概述
继续
marqdo-knowledge#14P2:查询命中新增 additiverole字段(entry/index/log/document/concept/unknown),只从现有公开路径约定推导,用于 agent 区分入口、导航与普通知识文稿;不新增元数据语法、不额外读源码、不建第二索引。交付
src/query/mod.rs:hit 组装与输出新增role;document_role只按路径(index.mq.md→entry,OKFindex.md/log.md→index/log,其它.mq.md→document,.md→concept)。spec/knowledge.md§3.1.1 记录字段语义;§4.1 增加 path→role 映射行。docs/STATUS.md记录实现;测试tests/query.rs::hits_expose_entry_navigation_and_concept_roles用真实 compile/query 覆盖四类。docs/evidence/2026-11-30-document-role.md。验证(真实,Linux x86_64 / glibc 2.43)
role是导航信息,不是执行/权威性声明;nature仍为unspecified。未创建 release;schema_version 保持 1(additive 字段)。边界
refs #14 #12