Govern knowledge refinery

From Mountain-Nomad-BC/Pacify-X · View interactive version

Govern knowledge refinery is an AI agent skill from the GitHub repository Mountain-Nomad-BC/Pacify-X. Inventory and admit untrusted knowledge sources, classify semantic novelty, plan non-destructive merges, audit graph coherence, simulate retrieval, and stage approval-bound proposals without writing canon. Use when adding or reconciling knowledge, skills, workflows, formulas, registries, or research

How to use this skill

Skill file

Govern Knowledge Refinery

  1. Inventory the full source with portable relative paths, byte/hash bounds, rejected symlinks, and redacted secret finding codes. Use the existing non-extracting archive inventory before any archive extraction.
  2. Treat license detection as evidence requiring review, never as an automatic legal decision.
  3. Extract candidates into existing PACIFY-X artifact/task/capability contracts. Record malformed structured inputs separately; do not silently downgrade them to generic text.
  4. Compare identifiers, aliases, structured fields, mechanisms, inputs/outputs, failure modes, invariants, conflicts, negative applicability, evidence, validation, and graph neighborhood.
  5. Assign exactly one of DUPLICATE, ENRICH, VARIANT, CONFLICT, SUPERSEDE, NOVEL, or REVIEW to each candidate. Abstain to REVIEW for close targets or insufficient confidence.
  6. Produce exactly one merge action per decision. Merge plans are proposals and perform no canonical writes.
  7. Audit graph endpoints, duplicate/self edges, provenance state, dependencies, supersession cycles, orphans, and suggested-edge review state.
  8. Reuse canonical capability routing for retrieval simulation, dependency closure, negative matches, authority, safety, budgets, and deterministic tie-breaking.
  9. Calibrate only on separated train and holdout corpora. Reject weight proposals that degrade holdout objectives or forbidden-hit controls.
  10. Stage an approved, hash-bound proposal inside the commissioned project. Canonical apply remains the isolated project control-plane and release-gate responsibility.
  11. Preserve all source, plan, review, graph-diff, test, and rollback evidence. Never hard-delete.

Read runtime contract before admitting, classifying, calibrating, or staging knowledge.

NSAI single-object library mode

When the source is the governed NSAI library:

  1. Treat each canonical JSON file as one object and validate its schema, semantic invariants, expected path and source provenance before indexing.
  2. Validate all object relationships against the complete library; reject dangling or duplicate object identities.
  3. Keep knowledge/nsai/index.json derived-only. Rebuild it from canonical object files and require a second identical build before accepting deterministic closure.
  4. Do not convert runtime/private learned knowledge directly into source-tree NSAI canon. It must pass the normal candidate/review/promotion and release path first.
  5. Preserve authority_granted: false semantics for knowledge objects; knowledge describes mechanisms and evidence, it does not grant runtime effects.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.