1pub mod actor_identity;
6pub mod atomic_message;
7pub mod atomic_plan;
8pub mod atomic_prepare;
9pub mod atomic_runner;
10pub mod blob;
11pub mod build_info;
12pub mod config;
13pub mod config_ledger;
14pub mod cost_unit;
15pub mod curation;
16pub mod daemon;
17pub mod embedder_registry;
18pub mod engine_config;
19pub mod error;
20pub mod fusion;
21pub mod graph_traversal;
22pub mod objectives;
23pub mod operations;
24pub mod pack;
25pub mod phase_events;
26pub mod portability;
27pub mod presentation;
28pub mod reference_resolution;
29pub mod reference_ring;
30pub mod registry;
31pub mod resource;
32pub mod retrieval;
33pub mod runtime;
34pub mod secret_gate;
35pub use khive_storage::usage;
36pub mod validation;
37
38pub use actor_identity::{actor_is_unattributed, resolve_actor, should_warn_unattributed_actor};
39pub use atomic_message::{create_notes_atomic, create_notes_atomic_with_report, AtomicNoteSpec};
40pub use atomic_plan::{
41 AddEntityPlan, AddNotePlan, AffectedRowGuard, DeletePlan, GovernanceOp, GovernancePlan,
42 GtdCompletePlan, GtdTransitionPlan, LinkPlan, MergePlan, PlanPredicate, PlanStatement,
43 PostCommitEffect, UpdatePlan,
44};
45pub use atomic_runner::{
46 run_atomic_unit, AtomicOpFailure, AtomicOpPlan, AtomicRunOutcome, AtomicRunnerError,
47 CommittedPostCommitEffects,
48};
49pub use blob::resolve_blob_store;
50pub use build_info::{BuildInfo, BUILD_INFO, BUILD_VERSION};
51pub use config::process_ref_from_env;
52pub use cost_unit::{base_resource_payload, cost_unit_for_dispatch, resource_payload};
53pub use curation::{
54 entity_embedding_text, entity_fts_document, entity_merge_guard_error, note_embedding_text,
55 note_fts_document, validate_entity_merge_floor, ContentMergeStrategy, EdgeListFilter,
56 EdgePatch, EntityDedupMergePolicy, EntityMergeGuard, EntityPatch, MergeEdgeConflictPreimage,
57 MergeEdgePreimage, MergeSummary, NotePatch,
58};
59#[cfg(unix)]
60pub use daemon::{acquire_recovery_lock, pid_path, run_daemon, socket_path, DaemonDispatch};
61pub use daemon::{
62 active_phase_names, background_task_count, daemon_shutdown_token, register_active_phase,
63 track_background_task, DaemonRequestFrame, DaemonResponseFrame, PhaseGuard, PROTOCOL_VERSION,
64};
65pub use embedder_registry::{EmbedderProvider, EmbedderRegistry, LatticeEmbedderProvider};
66pub use engine_config::{
67 config_from_env, BackendConfig, BackendKind, BlobConfig, ConfigError, EngineConfig,
68 GitWriteEntryConfig, GitWriteSectionConfig, KhiveConfig, PackConfig, StorageSectionConfig,
69};
70pub use error::{fts_text_leg_or_err, GuardedWriteFailure, RuntimeError, RuntimeResult};
71pub use fusion::FusionStrategy;
72pub use graph_traversal::PathNode;
73pub use khive_db::{
74 checkpoint_once, run_checkpoint_task, run_migrations, CheckpointConfig,
75 CheckpointLifecycleOwner, CheckpointTick, ConnectionPool, StorageBackend,
76};
77pub use khive_gate::{
78 ActorRef, AllowAllGate, AuditDecision, AuditEvent, Gate, GateContext, GateDecision, GateError,
79 GateRef, GateRequest, Obligation,
80};
81pub use khive_storage::types::TraversalOptions;
82pub use khive_storage::{EventObservation, EventView, ObservationRole, ReferentKind};
83pub use khive_types::namespace::Namespace;
84pub use objectives::{
85 AmplifiedDecayAwareSalienceObjective, DecayAwareSalienceObjective, GraphProximityObjective,
86 MemoryRecallPipeline, NoteCandidate, RerankerObjective, RetrievalCandidate, RrfFusionObjective,
87 TemporalRecencyObjective, TextRelevanceObjective, VectorSimilarityObjective,
88};
89#[cfg(any(test, feature = "fault-injection"))]
90pub use operations::{
91 arm_entity_compensation_fail_scoped, arm_fts_fail_many_partial_scoped,
92 arm_fts_fail_many_scoped, arm_fts_fail_scoped, arm_rollback_cleanup_fail,
93 arm_vector_fail_after, arm_vector_fail_scoped, FaultInjectionArm,
94};
95pub use operations::{
96 base_entity_endpoint_rules, base_entity_rule_allows, endpoint_matches,
97 hex_prefix_to_uuid_pattern, merge_entry_metadata, EdgeEndpointKind, EntityCreateSpec, LinkSpec,
98 NoteSearchHit, QueryResult, Resolved,
99};
100pub use pack::{
101 resolve_explicit_namespace, DispatchHook, HandlerDef, KindHook, NoteKindSpec,
102 NoteLifecycleSpec, PackByIdResolver, PackFactory, PackInstall, PackLoadError, PackRegistration,
103 PackRegistry, PackRuntime, PackSchemaCollisionError, PackSchemaPlan, ParamDef, RequestIdentity,
104 SchemaPlan, VerbCategory, VerbPresentationPolicy, VerbRegistry, VerbRegistryBuilder,
105 VerifiedActor, Visibility,
106};
107pub use phase_events::{emit_phase_event, is_benign_shutdown_cancellation};
108pub use portability::{ImportSummary, KgArchive};
109pub use presentation::{
110 apply_redundancy_drop, micros_to_iso, present, render_format, OutputFormat, PresentationMode,
111};
112pub use reference_resolution::{resolve_reference, ReferenceCandidate, ReferenceResolution};
113pub use reference_ring::{ReferenceRing, RingEntry};
114pub use registry::{ObjectiveRegistry, RegisteredObjective};
115pub use resource::{cpu_delta_us, process_resource_usage, ProcessResourceUsage};
116pub use retrieval::{SearchHit, SearchSource};
117pub use runtime::{
118 assert_captured_db_anchor_consistent, assert_db_anchor_consistent, expand_tilde,
119 parse_pack_list, resolve_db_anchor, resolve_project_actor_id, runtime_config_from_khive_config,
120 BackendId, EntityTypeValidatorFn, KhiveRuntime, NamespaceToken, NoteMutationHookFn,
121 RuntimeConfig,
122};
123pub use secret_gate::SecretMatch;
124pub use validation::{
125 GraphPatch, GraphSnapshot, RuleFn, RuleId, Severity, ValidationContext, ValidationReport,
126 ValidationRule, Violation,
127};