You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v0.1.63: feat: compile a promoted knowledge unit into a SKILL.md (0.1.63)
每个 skill 都带 ## When to Use This Skill(来自 trigger)、## Inputs 和 ## Evidence:证据一节逐条写出 material_id、evidence_id、locator 和 material
的 revision,manifest 同时钉住单元 version、content_hash 与 verified_against。
换句话说,skill 说得出自己是从哪一版材料里长出来的。
三个目标各一份 golden 文件测试(tests/fixtures/skills/{codex,claude,dsh}/),加上
同名同字节、只写变化、候选/归档/证据失效/未知目标/目录冲突各一条拒绝对照,共 18 条。
New envoy knowledge compile <unit_id> --target codex|claude|dsh: render a promoted
knowledge unit into a SKILL.md the target runtime loads directly, plus a manifest.json, installed under .codex/skills/, .claude/skills/ or .dsh/skills/. Measured against all three runtimes, their skills need only name
and description; everything else is optional, so only those two are written (DSH
gets a metadata block pinning the unit identity), and one file reads in either place.
Compilation is a local, deterministic step: no model call, no unit mutation, no content_hash write-back. Compile the same unit twice and the bytes are identical,
with the second run reporting an empty written list. Artifacts land in skills/
beside the unit store, never inside knowledge-units/ — a derived thing and a fact
are stored separately.
Only a promoted unit compiles. A candidate answers needs_promotion, an archived
unit unit_archived, a locator edited after verification evidence_unresolved with
the problems listed, and a moved verification fingerprint verification_stale — a
file that will be read as an instruction is worse than missing when its citation is
broken.
Every skill carries ## When to Use This Skill (from trigger), ## Inputs, and ## Evidence: that section names each material_id, evidence_id, locator and the
material revision, while the manifest pins the unit version, content_hash and verified_against. A skill can therefore say which revision of which material it
grew out of.
One golden file per target (tests/fixtures/skills/{codex,claude,dsh}/), plus
same-bytes-on-recompile, write-only-changes, and one refusal case each for candidate,
archived, stale evidence, unknown target and directory conflict: 18 tests.
MCP envoy_knowledge gained compile (target / force), gated on skill_distillation independently of knowledge_units: being able to read and write
units does not mean being able to emit a skill.
Fixed the Markdown link discovery in tests/test_repo_consistency.py: it walked every .md in the working tree, so a local virtualenv, an ignored tmp/ scratch directory
and an extracted package each had their own README checked as repository docs, and a
broken link there failed on this machine only (fixable only by deleting local files).
Discovery now uses git ls-files: a file git does not carry is not the repository's
test's business.