Skip to content

feat(skills): skill_propose drafts with provenance, taint, gate and meaning dedup #592

Closed

Description

@ajianaz

What problem does this solve?

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

Activity

  1. added
    enhancement
    on Nov 11, 2026
  2. ajianaz commented on Nov 13, 2026

    @ajianaz
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions