mempill-core 0.2.0

Core engine for mempill — a bi-temporal, append-only claim store with a deterministic adjudication gate and oracle resolution for temporally-correct AI-agent memory
Documentation
#![allow(missing_docs)]
//! ExtractorPort — stochastic proposer port.
//!
//! Host-implemented. `extract()` returns proposals only.
//! The deterministic core decides all dispositions — the extractor never commits.

use mempill_types::ClaimProposal;

/// Stochastic extractor port. Host-implemented.
///
/// `extract()` returns proposals; the deterministic core (reconciler + adjudication gate)
/// decides all dispositions. No stochastic output can commit directly.
pub trait ExtractorPort: Send + Sync + 'static {
    type Error: std::error::Error + Send + Sync + 'static;

    fn extract(
        &self,
        raw_content: &str,
        context: &str,
    ) -> Result<Vec<ClaimProposal>, Self::Error>;
}