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
feat(skills): skill_propose drafts with provenance, taint, gate and meaning dedup #592
Skills should grow from real work (owner corrections, dead ends resolved, repeated workflows) like Hermes, but self-written skills give no benefit on average (SkillsBench), can carry laundered backdoors (SkillJack), and duplicate quickly.
Proposed solution
Per docs/skills-registry-design.md §4.4, §6.3:
skill_propose (Write tier) creates a draft, never loadable, with provenance (source session ids, trigger, model).
Gate: lint (frontmatter, one procedure, 2–3 modules max, size cap, no incident-log shape), secret scan (SecretSet), injection patterns, taint if the source session consumed untrusted content (web, webhook, MCP results, third-party skills).
Meaning dedup via uteke embeddings (local ONNX or OpenAI-compatible base_url): ≥0.92 → propose a patch to the existing skill; 0.80–0.92 → propose a references/ file or an umbrella; <0.80 → new; similar but contradictory → conflict, shown side by side. Verdict by the curator profile (light tier) or a laya choice; owner approves. Thresholds recalibrated on our library.
Embedding hygiene: one embedder per store (record its id, re-embed on change); embed frontmatter + main procedure and each reference separately (embor truncates above ~2048 tokens).
Promotion: git commit, approved hash, index in uteke. Revoking a poisoned source lists and revokes derived skills.
Alternatives considered
Hermes-style direct writes with an optional approval gate (owner chose propose-only); auto-promotion after an eval (rejected for now).
Are you willing to contribute the implementation?
Yes, I can do it
Before submitting
I searched existing issues and didn't find a duplicate
Done in #656 (gate, draft store, taint and dedup bands), #657 (skill_propose and tole skills drafts) and #658 (promote and revoke).
Known gaps, by design: CLI faces (run, chat, mission) record no session id in a draft's provenance yet because they build tools before the session exists; run_command and read_file do not taint a draft; patch and reference verdicts are folded in by hand rather than applied automatically.
Activity
fix(core): block hidden Unicode in skill drafts and strip it before p…
feat(core): skill draft gate, store, taint and dedup bands (#592 part…
fix(core): taint survives a resume and covers outside-text tools (#592)
fix(core): recompute the tool taint from the session's entries every …
feat(cli): skill_propose tool and tole skills drafts (#592 part 2) (#657
fix(cli): approve only the confirmed SKILL.md and refuse a symlinked …
test(cli): drop a needless borrow flagged by newer clippy (#592)
feat(cli): tole skills drafts promote and revoke (#592 part 3) (#658)
ajianaz commentedon Nov 13, 2026
Done in #656 (gate, draft store, taint and dedup bands), #657 (
skill_proposeandtole skills drafts) and #658 (promoteandrevoke).Known gaps, by design: CLI faces (run, chat, mission) record no session id in a draft's provenance yet because they build tools before the session exists;
run_commandandread_filedo not taint a draft; patch and reference verdicts are folded in by hand rather than applied automatically.