zeph_memory/graph/ingest/mod.rs
1// SPDX-FileCopyrightText: 2026 Andrei G <bug-ops>
2// SPDX-License-Identifier: MIT OR Apache-2.0
3
4//! Knowledge-ingest subsystem for `zeph-memory` (spec-067).
5//!
6//! Provides:
7//! - The idempotency ledger ([`IngestLedger`]) used by `zeph knowledge ingest` to skip
8//! unchanged inputs (Phase 1 / FR-012, INV-5).
9//! - Document and provenance types ([`IngestDocument`], [`IngestSourceKind`]) used by
10//! the graph-sink batch API (Phase 2 / FR-020..028).
11//! - Source adapters ([`IngestSourceAdapter`], [`SubagentJsonl`], [`ClaudeCodeJsonl`],
12//! [`CodexJsonl`]) that convert raw source material into validated [`IngestDocument`]
13//! values.
14//! - Progress and report types ([`IngestProgress`], [`IngestReport`], [`ImportBatchId`])
15//! for the `SemanticMemory::ingest_documents` call site.
16//! - The tech-doc extraction prompt ([`prompt::TECH_DOC_SYSTEM_PROMPT`]) selected by
17//! [`IngestSourceKind::system_prompt`].
18
19pub mod adapter;
20pub mod document;
21pub mod ledger;
22pub mod prompt;
23pub mod report;
24
25pub use adapter::{
26 ClaudeCodeJsonl, CodexJsonl, IngestSourceAdapter, SubagentJsonl, TranscriptEntry,
27};
28pub use document::{IngestDocument, IngestSourceKind};
29pub use ledger::{BatchIdResolution, IngestLedger, LedgerEntry};
30pub use report::{HubDegree, ImportBatchId, IngestFailure, IngestProgress, IngestReport};