"""Memory system (master §473-629): schema, hybrid retrieval, temporal
queries, and write control."""

from acr.memory.git_ingest import (
    CommitInfo,
    GitCommandError,
    read_commit,
    record_commit_as_decision,
)
from acr.memory.models import MemoryRecord, MemoryScope, MemoryStatus, MemoryType
from acr.memory.retrieval import RetrievedMemory, retrieve
from acr.memory.schemas import (
    DecisionPayload,
    FailurePayload,
    parse_decision_payload,
    parse_failure_payload,
)
from acr.memory.write_controller import (
    MemoryCandidate,
    WriteDecision,
    WriteEvaluation,
    apply,
    evaluate,
    remember,
    remember_decision,
    remember_failure,
)

__all__ = [
    "CommitInfo",
    "DecisionPayload",
    "FailurePayload",
    "GitCommandError",
    "MemoryCandidate",
    "MemoryRecord",
    "MemoryScope",
    "MemoryStatus",
    "MemoryType",
    "RetrievedMemory",
    "WriteDecision",
    "WriteEvaluation",
    "apply",
    "evaluate",
    "parse_decision_payload",
    "parse_failure_payload",
    "read_commit",
    "record_commit_as_decision",
    "remember",
    "remember_decision",
    "remember_failure",
    "retrieve",
]
