Skip to main content

khive_pack_code/
lib.rs

1//! pack-code — code ontology pack for khive (ADR-085).
2//!
3//! Registers four concept subtypes (`module`, `function`, `datatype`,
4//! `interface`) via `khive-pack-kg`'s entity type registry, additive
5//! `EDGE_RULES` over the closed relation set, and the `finding` audit note
6//! kind. Currently contributes no verbs (ADR-085 D1; Amendment 2's accepted
7//! `code.ingest` source-ingest verb is unimplemented); `findings.json`
8//! ingest runs through the `kkernel code-ingest` admin CLI path, not an MCP
9//! wire surface (ADR-085 Amendment 3). In the default pack set as of
10//! Amendment 3, so the `finding` note kind is live on the production
11//! surface.
12
13mod error;
14mod hook;
15pub mod ingest;
16mod pack;
17pub(crate) mod vocab;
18
19pub use error::CodeIngestError;
20pub use ingest::{ingest_findings_json, CodeIngestBatch, CodeIngestOptions, CODE_INGEST_NAMESPACE};
21pub use pack::CodePack;